summaryrefslogtreecommitdiffstats
path: root/tools/apicheck/src/com/android/apicheck/MethodInfo.java
diff options
context:
space:
mode:
Diffstat (limited to 'tools/apicheck/src/com/android/apicheck/MethodInfo.java')
-rw-r--r--tools/apicheck/src/com/android/apicheck/MethodInfo.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/apicheck/src/com/android/apicheck/MethodInfo.java b/tools/apicheck/src/com/android/apicheck/MethodInfo.java
index 2994460..86e20de 100644
--- a/tools/apicheck/src/com/android/apicheck/MethodInfo.java
+++ b/tools/apicheck/src/com/android/apicheck/MethodInfo.java
@@ -145,6 +145,12 @@ public class MethodInfo implements AbstractMethodInfo {
consistent = false;
}
+ if (mIsSynchronized != mInfo.mIsSynchronized) {
+ Errors.error(Errors.CHANGED_SYNCHRONIZED, mInfo.position(),
+ "Method " + mInfo.qualifiedName() + " has changed 'synchronized' qualifier from " + mIsSynchronized + " to " + mInfo.mIsSynchronized);
+ consistent = false;
+ }
+
for (String exec : mExceptions) {
if (!mInfo.mExceptions.contains(exec)) {
// exclude 'throws' changes to finalize() overrides with no arguments