diff options
author | Yohann Roussel <yroussel@google.com> | 2015-03-18 10:37:31 +0100 |
---|---|---|
committer | Yohann Roussel <yroussel@google.com> | 2015-03-19 11:26:07 +0000 |
commit | 3a2129db18d560fd1412d9736cf3dfe7873236c6 (patch) | |
tree | 666c1bec825b96ebbc146a53b1666a86d48add41 /jack | |
parent | 1b82947155738507cdebb03827a535d554f29cbd (diff) | |
download | toolchain_jack-3a2129db18d560fd1412d9736cf3dfe7873236c6.tar.gz toolchain_jack-3a2129db18d560fd1412d9736cf3dfe7873236c6.tar.bz2 toolchain_jack-3a2129db18d560fd1412d9736cf3dfe7873236c6.zip |
Clear warnings of InputJackLibrary
Change-Id: I6d682a1b5291d0c0f79a0431f4faba8aa1f29c66
Diffstat (limited to 'jack')
-rw-r--r-- | jack/src/com/android/jack/library/InputJackLibrary.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/jack/src/com/android/jack/library/InputJackLibrary.java b/jack/src/com/android/jack/library/InputJackLibrary.java index 895d8796..65a62e5c 100644 --- a/jack/src/com/android/jack/library/InputJackLibrary.java +++ b/jack/src/com/android/jack/library/InputJackLibrary.java @@ -18,6 +18,7 @@ package com.android.jack.library; import com.android.jack.Jack; import com.android.jack.jayce.JayceProperties; +import com.android.sched.util.findbugs.SuppressFBWarnings; import com.android.sched.util.location.Location; import com.android.sched.util.log.LoggerFactory; @@ -38,7 +39,7 @@ import javax.annotation.Nonnull; public abstract class InputJackLibrary extends CommonJackLibrary implements InputLibrary { @Nonnull - protected static Logger logger = LoggerFactory.getLogger(); + protected static final Logger logger = LoggerFactory.getLogger(); @Nonnegative private final int minorVersion; @@ -90,9 +91,15 @@ public abstract class InputJackLibrary extends CommonJackLibrary implements Inp return location; } + /* + * Ignore: "Inconsistent synchronization". All synchronization is handled by ensureJayceLoaded and + * once loaded jayceReaderConstructor never change again. + */ + @SuppressFBWarnings("IS2_INCONSISTENT_SYNC") @Nonnull public final Constructor<?> getJayceReaderConstructor() throws LibraryFormatException { ensureJayceLoaded(); + assert jayceReaderConstructor != null; return jayceReaderConstructor; } |