<nb> public class QualifiedModeSetSequence {
 for ( QualifiedMode qMode : qModes ) {
 req . modes . setMode ( qMode . mode , true ) ;
 }
 +
 SINGLE
 + SINGLE
 SINGLE
 +
 for ( QualifiedMode qMode : qModes ) {
 if ( qMode . mode == TraverseMode . BICYCLE ) {
 if ( qMode . qualifiers . contains ( Qualifier . RENT ) ) {
 <nb> public class StateData implements Cloneable {
 nonTransitMode = TraverseMode . CAR ;
 else if ( modes . getCustomMotorVehicle ( ) )
 nonTransitMode = TraverseMode . CUSTOM_MOTOR_VEHICLE ;
 - else if ( modes . getWalk ( ) )
 - nonTransitMode = TraverseMode . WALK ;
 else if ( modes . getBicycle ( ) )
 nonTransitMode = TraverseMode . BICYCLE ;
 + else if ( modes . getWalk ( ) )
 + nonTransitMode = TraverseMode . WALK ;
 else
 nonTransitMode = null ;
 }

add comment set nontransit mode using a less arbitrary order of precendence


<nb> class WebViewFactory {
 SINGLE
 private static final String DEFAULT_WEBVIEW_FACTORY = STRING0 ;
 private static final String CHROMIUM_WEBVIEW_FACTORY =
 - STRING1 ;
 + STRING2 ;
 private static final String CHROMIUM_WEBVIEW_JAR = STRING3 ;

 private static final String LOGTAG = STRING4 ;


<nb> public interface LivingEntity extends Entity {
 COMMENT
 COMMENT
 public Vehicle getVehicle ( ) ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public int getRemainingAir ( ) ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public void setRemainingAir ( int ticks ) ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public int getMaximumAir ( ) ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public void setMaximumAir ( int ticks ) ;
 }

Added getRemainingAir setRemainingAir getMaximumAir setMaximumAir on LivingEntity


<nb> public abstract class ListAdapterWithProgress < T > extends BaseAdapter {
 return isLoadingData && position == data . size ( ) ;
 }

 - public List < T > getData ( ) {
 + public ArrayList < T > getData ( ) {
 return data ;
 }

explicitly return an ArrayList so that one doesn t have to cast it when putting it in a Bundle


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public class LocalChannel extends AbstractChannel {
 - SINGLE
 private final ThreadLocal < Boolean > delivering = new ThreadLocal < Boolean > ( ) {
 @ override
 protected Boolean initialValue ( ) {


<nb> public class LocalTachyonCluster {
 private TachyonMaster mMaster = null ;

 private TachyonWorker mWorker = null ;
 - SINGLE
 - SINGLE

 private long mWorkerCapacityBytes ;
 private String mTachyonHome ;
 <nb> public class LocalTachyonCluster {

 private List < TachyonFS > mClients = new ArrayList < TachyonFS > ( ) ;

 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 -
 public LocalTachyonCluster ( long workerCapacityBytes ) {
 - SINGLE
 - SINGLE
 mWorkerCapacityBytes = workerCapacityBytes ;
 }


<nb> public class VcsContextFactoryImpl implements VcsContextFactory {

 @ override
 @ notnull
 - public FilePath createFilePathOn ( @ notnull final File file ) {
 - VirtualFile vf = LocalFileSystem . getInstance ( ) . findFileByIoFile ( file ) ;
 - return vf != null ? createFilePathOn ( vf ) : createFilePath ( file . getPath ( ) , file . isDirectory ( ) ) ;
 + public FilePath createFilePathOn ( @ notnull File file ) {
 + String path = file . getPath ( ) ;
 + VirtualFile vf = LocalFileSystem . getInstance ( ) . findFileByPath ( path ) ;
 + return createFilePath ( path , vf != null ? vf . isDirectory ( ) : file . isDirectory ( ) ) ;
 }

 @ override

use the given path and detect only isDirectory


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class DeepLearningVsNeuralNet extends TestUtil {
 }
 }

 - SINGLE
 + @ ignore
 + @ test
 public void compare ( ) throws Exception {
 final long seed = NUMBER0 ;
 Random rng = new Random ( seed ) ;


<nb> public abstract class DependencyResolver {
 } else {
 attributes = new ArrayList < > ( ) ;
 attributes . addAll ( rule . getRuleClassObject ( ) . getAttributes ( ) ) ;
 - if ( aspect != null ) {
 - attributes . addAll ( aspect . getAttributes ( ) . values ( ) ) ;
 - }
 + attributes . addAll ( aspect . getAttributes ( ) . values ( ) ) ;
 }

 ImmutableSortedKeyListMultimap . Builder < Attribute , LabelAndConfiguration > result =

Remove extraneous check in DependencyResolver


<nb> public class ShadowActivityManager {

 private String backgroundPackage ;
 private ActivityManager . MemoryInfo memoryInfo ;
 + private int memoryClass ;

 @ implementation
 public List < ActivityManager . RunningTaskInfo > getRunningTasks ( int maxNum ) {
 <nb> public class ShadowActivityManager {
 this . memoryInfo = memoryInfo ;
 }

 + @ implementation
 + public int getMemoryClass ( ) {
 + return memoryClass ;
 + }
 +
 + public void setMemoryClass ( int memoryClass ) {
 + this . memoryClass = memoryClass ;
 + }
 +
 @ implements ( ActivityManager . MemoryInfo . class )
 public static class ShadowMemoryInfo {
 public boolean lowMemory ;


<nb> public class PsiClassUtil {
 public static boolean isRunnableClass ( final PsiClass aClass , final boolean mustBePublic , boolean mustNotBeAbstract ) {
 if ( aClass instanceof PsiAnonymousClass ) return false ;
 if ( aClass . isInterface ( ) ) return false ;
 - if ( mustBePublic && ! aClass . hasModifierProperty ( PsiModifier . PUBLIC ) ) return false ;
 + if ( mustBePublic && ! aClass . hasModifierProperty ( PsiModifier . PUBLIC ) ) {
 + if ( mustNotBeAbstract || ! aClass . hasModifierProperty ( PsiModifier . ABSTRACT ) ) {
 + return false ;
 + }
 + }
 if ( aClass . hasModifierProperty ( PsiModifier . PRIVATE ) ) return false ;
 if ( mustNotBeAbstract && aClass . hasModifierProperty ( PsiModifier . ABSTRACT ) ) return false ;
 return aClass . getContainingClass ( ) == null || aClass . hasModifierProperty ( PsiModifier . STATIC ) ;

don t check public modifier for abstract classes cause inheritors would be checked for actual runnable


<nb> public final class ActFmSyncService {
 return ;

 try {
 - JSONObject result = actFmInvoker . invoke ( STRING0 , STRING1 , tagData . getValue ( TagData . REMOTE_ID ) ) ;
 + JSONObject result = actFmInvoker . invoke ( STRING0 , STRING1 , tagData . getValue ( TagData . REMOTE_ID ) , STRING2 , token ) ;
 JSONArray ordering = result . optJSONArray ( STRING3 ) ;
 if ( ordering == null )
 return ;


<nb> public class WebView extends AbsoluteLayout
 nativeHideCursor ( ) ;
 }

 + if ( keyCode == KeyEvent . KEYCODE_PAGE_UP ) {
 + pageUp ( false ) ;
 + return true ;
 + }
 +
 + if ( keyCode == KeyEvent . KEYCODE_PAGE_DOWN ) {
 + pageDown ( false ) ;
 + return true ;
 + }
 +
 if ( keyCode >= KeyEvent . KEYCODE_DPAD_UP
 && keyCode <= KeyEvent . KEYCODE_DPAD_RIGHT ) {
 SINGLE


<nb> public class TexturePacker {
 }
 }
 }
 - System . out . println ( width + STRING0 + height ) ;
 if ( width == maxWidth && height == maxHeight ) break ;
 if ( bestComparator != null ) break ;
 if ( settings . pot ) {


<nb> public abstract class GraphGeneratorSupport {
 this . dir = dir ;
 }

 + public String getImagePrefix ( ) {
 + return imagePrefix ;
 + }
 +
 + public void setImagePrefix ( String imagePrefix ) {
 + this . imagePrefix = imagePrefix ;
 + }
 +
 public String getRoutesText ( CamelContext context ) throws IOException {
 List < RouteDefinition > routes = context . getRouteDefinitions ( ) ;
 routeGroupMap = createRouteGroupMap ( routes ) ;


<nb> public class AnimatedSprite extends TiledSprite implements TimeConstants {
 }

 public void animate ( final long pFrameDurationEach , final int pLoopCount , final IAnimationListener pAnimationListener ) {
 - final long [ ] frameDurations = new long [ this . getTextureRegion ( ) . getTileCount ( ) - NUMBER0 ] ;
 + final long [ ] frameDurations = new long [ this . getTextureRegion ( ) . getTileCount ( ) ] ;
 Arrays . fill ( frameDurations , pFrameDurationEach ) ;
 this . animate ( frameDurations , pLoopCount , pAnimationListener ) ;
 }

Fixed little index bug animating one frame less than it should when using the simpel constructors


<nb> public class ConnectivityService extends IConnectivityManager . Stub
 private static final int EVENT_APPLY_GLOBAL_HTTP_PROXY = NUMBER0 ;

 COMMENT
 - COMMENT
 - COMMENT
 - private static final int EVENT_SEND_STICKY_BROADCAST_INTENT = NUMBER1 ;
 -
 - COMMENT
 COMMENT
 COMMENT
 private static final int EVENT_PROXY_HAS_CHANGED = NUMBER2 ;
 <nb> public class ConnectivityService extends IConnectivityManager . Stub
 handleDeprecatedGlobalHttpProxy ( ) ;
 break ;
 }
 - case EVENT_SEND_STICKY_BROADCAST_INTENT : {
 - Intent intent = ( Intent ) msg . obj ;
 - sendStickyBroadcast ( intent ) ;
 - break ;
 - }
 case EVENT_PROXY_HAS_CHANGED : {
 handleApplyDefaultProxy ( ( ProxyInfo ) msg . obj ) ;
 break ;


<nb> public class HttpUploadServerHandler extends SimpleChannelUpstreamHandler {
 private static final InternalLogger logger =
 InternalLoggerFactory . getInstance ( HttpUploadServerHandler . class ) ;

 - private volatile HttpRequest request ;
 + private HttpRequest request ;

 - private volatile boolean readingChunks ;
 + private boolean readingChunks ;

 private final StringBuilder responseContent = new StringBuilder ( ) ;

Remove volatile on two fields that don t need it


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 COMMENT
 COMMENT
 - public interface HierarchicalEclipseProject extends HierarchicalProject {
 + public interface HierarchicalEclipseProject extends HierarchicalProject , HierarchicalElement {
 COMMENT
 COMMENT
 COMMENT

Changed HierarchicalEclipseProject to extend HierarchicalElement to pick up non deprecated getName etc methods


<nb> public class SecurityAuthorityImpl implements SecurityAuthority {
 if ( reasonCode == WRONG_PASSWORD )
 {
 errorMessage
 - = Messages . getI18NString ( STRING0 ) . getText ( ) ;
 + = Messages . getI18NString ( STRING0 ,
 + new String [ ] { userCredentials . getUserName ( ) ,
 + realm } ) . getText ( ) ;
 }
 else if ( reasonCode == WRONG_USERNAME )
 {
 errorMessage
 - = Messages . getI18NString ( STRING0 ) . getText ( ) ;
 + = Messages . getI18NString ( STRING0 ,
 + new String [ ] { userCredentials . getUserName ( ) ,
 + realm } ) . getText ( ) ;
 }

 AuthenticationWindow loginWindow = null ;

Missing username and server name parameters in error text in the Authentication window


<nb> public class VfsUtil extends VfsUtilCore {
 while ( src . getParent ( ) != commonAncestor ) {
 buffer . append ( STRING0 ) . append ( separatorChar ) ;
 src = src . getParent ( ) ;
 - assert src != null ;
 }
 }
 buffer . append ( getRelativePath ( dst , commonAncestor , separatorChar ) ) ;


<nb> public class SpringLiquibase implements InitializingBean , BeanNameAware , Resourc
 }

 private String adjustClasspath ( String file ) {
 - return isClasspathPrefixPresent ( parentFile ) && ! isPrefixPresent ( file )
 + return isPrefixPresent ( parentFile ) && ! isPrefixPresent ( file )
 ? ResourceLoader . CLASSPATH_URL_PREFIX + file
 : file ;
 }

 - public boolean isClasspathPrefixPresent ( String file ) {
 - return file . startsWith ( ResourceLoader . CLASSPATH_URL_PREFIX ) ;
 - }
 -
 public boolean isPrefixPresent ( String file ) {
 if ( file . startsWith ( STRING0 ) ||
 file . startsWith ( STRING1 ) ||


<nb>
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 +
 package NAMESPACE ;

 import NAMESPACE ;


<nb> public class JiveGlobals {
 }
 }

 + if ( messengerHome == null ) {
 + try {
 + messengerHome = new File ( STRING0 ) . getCanonicalPath ( ) ;
 + if ( ! new File ( messengerHome , STRING1 ) . exists ( ) ) {
 + messengerHome = null ;
 + }
 + }
 + catch ( IOException e ) {
 + e . printStackTrace ( ) ;
 + }
 + }
 +
 SINGLE
 if ( messengerHome == null ) {
 failedLoading = true ;

Added check for messengerHome in startup dir


<nb> public class RCFile {
 }
 if ( codec != null ) {
 IOUtils . closeStream ( decompressBuffer ) ;
 - CodecPool . returnDecompressor ( valDecompressor ) ;
 + if ( valDecompressor != null ) {
 + SINGLE
 + CodecPool . returnDecompressor ( valDecompressor ) ;
 + valDecompressor = null ;
 + }
 }
 }

 <nb> public class RCFile {
 currentValue . close ( ) ;
 if ( decompress ) {
 IOUtils . closeStream ( keyDecompressedData ) ;
 - CodecPool . returnDecompressor ( keyDecompressor ) ;
 + if ( keyDecompressor != null ) {
 + SINGLE
 + CodecPool . returnDecompressor ( keyDecompressor ) ;
 + keyDecompressor = null ;
 + }
 }
 }

multiple threads can use the same decompressor Mikhail Bautin via Ashutosh Chauhan


<nb> public class DeepLearningProstateTest extends TestUtil {
 try {
 pred = model2 . score ( valid ) ;
 SINGLE
 - Assert . assertTrue ( model2 . testJavaScoring ( valid , pred , FLOAT0 ) ) ;
 + Assert . assertTrue ( model2 . testJavaScoring ( valid , pred , FLOAT1 ) ) ;

 hex . ModelMetrics mm = hex . ModelMetrics . getFromDKV ( model2 , valid ) ;
 double error = NUMBER0 ;
 <nb> public class DeepLearningProstateTest extends TestUtil {
 else {
 Frame pred = model2 . score ( valid ) ;
 SINGLE
 - Assert . assertTrue ( model1 . testJavaScoring ( frame , pred , FLOAT0 ) ) ;
 + Assert . assertTrue ( model1 . testJavaScoring ( frame , pred , FLOAT1 ) ) ;
 pred . delete ( ) ;
 }
 Log . info ( STRING0 + count + STRING1 ) ;


<nb> public class NameUtil {
 ) {
 int c = data [ offset ] & NUMBER0 ;
 if ( ( c & NUMBER1 ) == NUMBER1 ) {
 - c = ( ( c & NUMBER2 ) < < NUMBER3 ) + data [ offset + NUMBER4 ] ;
 + c = ( ( c & NUMBER2 ) < < NUMBER3 ) + ( data [ offset + NUMBER4 ] & NUMBER0 ) ;
 if ( jumps . contains ( c ) ) {
 throw new IllegalStateException ( STRING0 ) ;
 }


<nb> public class HystrixTimer {
 COMMENT
 protected void startThreadIfNeeded ( ) {
 SINGLE
 - if ( executor . get ( ) == null ) {
 + while ( executor . get ( ) == null || ! executor . get ( ) . isInitialized ( ) ) {
 if ( executor . compareAndSet ( null , new ScheduledExecutor ( ) ) ) {
 SINGLE
 executor . get ( ) . initialize ( ) ;
 <nb> public class HystrixTimer {

 private static class ScheduledExecutor {
 private volatile ScheduledThreadPoolExecutor executor ;
 + private volatile boolean initialized ;

 COMMENT
 COMMENT
 <nb> public class HystrixTimer {
 }

 } ) ;
 + initialized = true ;
 }

 public ScheduledThreadPoolExecutor getThreadPool ( ) {
 return executor ;
 }
 +
 + public boolean isInitialized ( ) {
 + return initialized ;
 + }
 }

 public static interface TimerListener {
 <nb> public class HystrixTimer {

 }
 }
 - }
 + }

Made HystrixTimer initialization thread safe


<nb> public final class ActivityThread {
 @ override
 public void dumpDbInfo ( final FileDescriptor fd , final String [ ] args ) {
 if ( mSystemThread ) {
 - SINGLE
 - SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + final ParcelFileDescriptor dup ;
 + try {
 + dup = ParcelFileDescriptor . dup ( fd ) ;
 + } catch ( IOException e ) {
 + Log . w ( TAG , STRING0 + fd . getInt$ ( ) ) ;
 + return ;
 + }
 +
 AsyncTask . THREAD_POOL_EXECUTOR . execute ( new Runnable ( ) {
 @ override
 public void run ( ) {
 - dumpDatabaseInfo ( fd , args ) ;
 + dumpDatabaseInfo ( dup . getFileDescriptor ( ) , args ) ;
 + IoUtils . closeQuietly ( dup ) ;
 }
 } ) ;
 } else {

Duplicate file descriptor when dumping asynchronously


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;

 COMMENT
 COMMENT
 <nb> public final class Base64 {
 }

 int len43 = len * NUMBER0 / NUMBER1 ;
 - ByteBuf dest = Unpooled . buffer (
 + ByteBuf dest = src . alloc ( ) . buffer (
 len43 +
 ( len % NUMBER1 > NUMBER2 ? NUMBER0 : NUMBER2 ) + SINGLE
 ( breakLines ? len43 / MAX_LINE_LENGTH : NUMBER2 ) ) . order ( src . order ( ) ) ; SINGLE
 <nb> public final class Base64 {
 byte [ ] DECODABET = decodabet ( dialect ) ;

 int len34 = len * NUMBER1 / NUMBER0 ;
 - ByteBuf dest = Unpooled . buffer ( len34 ) . order ( src . order ( ) ) ; SINGLE
 + ByteBuf dest = src . alloc ( ) . buffer ( len34 ) . order ( src . order ( ) ) ; SINGLE
 int outBuffPosn = NUMBER2 ;

 byte [ ] b4 = new byte [ NUMBER0 ] ;

Use the allocator of the src ByteBuf to allocate the new ByteBuf


<nb> public class SwipeDismissBehavior < V extends View > extends CoordinatorLayout . Beha

 @ override
 public void onViewReleased ( View child , float xvel , float yvel ) {
 - SINGLE
 - final ViewParent parent = child . getParent ( ) ;
 - if ( parent != null ) {
 - parent . requestDisallowInterceptTouchEvent ( false ) ;
 - }
 -
 final int childWidth = child . getWidth ( ) ;
 int targetLeft ;
 boolean dismiss = false ;

Don t call requestDisallowInterceptTouchEvent false


<nb> public class ProjectAdministrationTest {

 Selenese selenese = Selenese
 . builder ( )
 - . setHtmlTestsInClasspath ( STRING0 ,
 + . setHtmlTestsInClasspath ( STRING1 ,
 STRING2
 ) . build ( ) ;
 orchestrator . executeSelenese ( selenese ) ;

Fix selenium id in ProjectAdministrationTest


<nb> public class NiftyPreviewPanel extends PanelView {
 audioRenderer ,
 guiViewPort ) ;
 nifty = niftyDisplay . getNifty ( ) ;
 - de . lessvoid . nifty . tools . resourceloader . ResourceLoader . addResourceLocation ( new FileSystemLocation ( new File ( pm . getAssetFolderName ( ) ) ) ) ;

 SINGLE
 guiViewPort . addProcessor ( niftyDisplay ) ;


<nb> public class HttpResourceAccessor implements ExternalResourceAccessor {
 return false ;
 }

 - private ExternalResource findCachedResourceBySha1 ( String source , LocallyAvailableResourceCandidates candidates ) {
 - String checksumType = STRING0 ;
 - String checksumUrl = source + STRING1 ;
 -
 - HashValue sha1 = downloadSha1 ( checksumUrl ) ;
 - if ( sha1 == null ) {
 - LOGGER . info ( STRING2 , checksumType , checksumUrl ) ;
 - } else {
 - LocallyAvailableResource locallyAvailable = candidates . findByHashValue ( sha1 ) ;
 - if ( locallyAvailable != null ) {
 - return new LocallyAvailableExternalResource ( source , locallyAvailable ) ;
 - }
 -
 - LOGGER . info ( STRING3 , checksumType , checksumUrl ) ;
 - }
 - return null ;
 - }
 -
 private HashValue getChecksumFor ( String source ) {
 String checksumUrl = source + STRING1 ;
 return downloadSha1 ( checksumUrl ) ;


<nb> public final class Label implements Comparable < Label > , Serializable , SkylarkPrin
 COMMENT
 @ override
 public String toString ( ) {
 + return getCanonicalForm ( ) ;
 + }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public String getCanonicalForm ( ) {
 return packageIdentifier . getRepository ( ) + STRING0 + packageIdentifier . getPackageFragment ( )
 + STRING1 + name ;
 }

Add an explicit way to get the canonical string representation of a Label


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - @ suppresswarnings ( STRING0 )
 public class AccumulatingReducer extends MapReduceBase implements Reducer < Text , Text , Text , Text > {
 static final String VALUE_TYPE_LONG = STRING1 ;
 static final String VALUE_TYPE_FLOAT = STRING2 ;
 <nb> public final class BlockMaster extends MasterBase implements ContainerIdGenerabl
 return o . getAddress ( ) ;
 }
 } ;
 - @ suppresswarnings ( STRING3 )
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class WebInterfaceGeneralServlet extends HttpServlet {
 getServletContext ( ) . getRequestDispatcher ( STRING4 ) . forward ( request , response ) ;
 }

 - @ suppresswarnings ( STRING3 )
 @ override
 protected void doPost ( HttpServletRequest request , HttpServletResponse response )
 throws ServletException , IOException {

SMALLFIX Remove useless warning suppressions


<nb> public final class MoreExecutors {
 COMMENT
 COMMENT
 public static ListeningExecutorService sameThreadExecutor ( ) {
 - return new SameThreadExecutorService ( ) ;
 + return new DirectExecutorService ( ) ;
 }

 SINGLE
 - private static class SameThreadExecutorService
 + private static class DirectExecutorService
 extends AbstractListeningExecutorService {
 COMMENT
 COMMENT

Rename SameThreadExecutorService to DirectExecutorService


<nb> public final class Downsampler {
 String sourceMimeType = options . outMimeType ;

 int orientation = getOrientation ( is ) ;
 - int degreesToRotate = TransformationUtils . getExifOrientationDegrees ( getOrientation ( is ) ) ;
 + int degreesToRotate = TransformationUtils . getExifOrientationDegrees ( orientation ) ;

 options . inPreferredConfig = getConfig ( is , decodeFormat ) ;
 if ( options . inPreferredConfig != Bitmap . Config . ARGB_8888 ) {

Reuse the orientation information instead of parsing the stream again


<nb> public class ManagementSecurityAutoConfiguration {
 @ configuration
 @ conditionalonexpression ( STRING0 )
 @ conditionalonmissingbean ( WebSecurityConfiguration . class )
 + @ conditionalonwebapplication
 @ enablewebsecurity
 protected static class WebSecurityEnabler extends AuthenticationManagerConfiguration {
 }

Activate WebSecurityEnabler only for web applications


<nb> import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 - import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 import static NAMESPACE ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;


<nb> public class LinuxSandboxedStrategyTestCase {

 OptionsParser optionsParser =
 OptionsParser . newOptionsParser ( ExecutionOptions . class , SandboxOptions . class ) ;
 - optionsParser . parse ( STRING0 , STRING1 ) ;

 EventBus bus = new EventBus ( ) ;

Remove debug flags from LinuxSandboxedStrategyTestCase as they were causing LocalLinuxSandboxedStrategyTest to fail due to unexpected lines in the output


<nb> public abstract class GenericDAO < T extends AbstractModel > {

 public void saveOrUpdate ( Collection < ? extends AbstractModel > models ) {
 Session session = em . unwrap ( Session . class ) ;
 + int i = NUMBER0 ;
 for ( AbstractModel model : models ) {
 session . saveOrUpdate ( model ) ;
 + if ( i % NUMBER1 == NUMBER2 ) {
 + session . flush ( ) ;
 + session . clear ( ) ;
 + }
 }
 }


<nb> class ErrorPositionComparator implements Comparator < SingleProofreadingError > {
 } else {
 if ( match1 . aSuggestions . length != NUMBER0 && match2 . aSuggestions . length != NUMBER0
 && match1 . aSuggestions . length != match2 . aSuggestions . length ) {
 - return ( ( Integer ) ( match1 . aSuggestions . length ) )
 - . compareTo ( match2 . aSuggestions . length ) ;
 + return Integer . compare ( match1 . aSuggestions . length , match2 . aSuggestions . length ) ;
 }
 }
 return match1 . aRuleIdentifier . compareTo ( match2 . aRuleIdentifier ) ;


<nb> public class RequestManagerImpl extends DebugProcessAdapterImpl implements Reque
 }

 private void addLocatableRequest ( FilteredRequestor requestor , EventRequest request ) {
 - if ( DebuggerSettings . SUSPEND_ALL . equals ( requestor . SUSPEND_POLICY ) ) {
 + if ( DebuggerSettings . SUSPEND_ALL . equals ( requestor . getSuspendPolicy ( ) ) ) {
 request . setSuspendPolicy ( EventRequest . SUSPEND_ALL ) ;
 }
 else {

ensure thread suspend policy for logging breakpoints


<nb>
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 +
 package NAMESPACE ;

 import static NAMESPACE ;

Added license header to Memory sampler test


<nb>
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 package NAMESPACE ;

 import NAMESPACE ;


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 @ converter
 - public class JaxpConverter {
 + public class XmlConverter {
 public static final String DEFAULT_CHARSET_PROPERTY = STRING0 ;

 public static String defaultCharset = ObjectHelper . getSystemProperty ( DEFAULT_CHARSET_PROPERTY , STRING1 ) ;
 <nb> public class JaxpConverter {
 }

 - public JaxpConverter ( ) {
 + public XmlConverter ( ) {
 }

 - public JaxpConverter ( DocumentBuilderFactory documentBuilderFactory ) {
 + public XmlConverter ( DocumentBuilderFactory documentBuilderFactory ) {
 this . documentBuilderFactory = documentBuilderFactory ;
 }

avoid svn issues so renamed to XmlConverter which is a bit of a better name anyway


<nb>
 - import NAMESPACE
 + import NAMESPACE ;

 class KotlinClassUsedFromJava {
 void test ( ) {
 - < caret > Test ( )
 + < caret > Test ( ) ;
 }
 }

 <nb>
 - import NAMESPACE
 + import NAMESPACE ;

 - class KotlinClassUsedFromJava {
 + class KotlinPackageClassUsedFromJava {
 void test ( ) {
 - < caret > TestingPackage . foo ( )
 + < caret > TestingPackage . foo ( ) ;
 }
 }


<nb> public class ClientRegressionWithMockNetworkTest extends HazelcastTestSupport {
 clientConfig . getNetworkConfig ( ) . setConnectionAttemptLimit ( NUMBER0 ) ;
 hazelcastFactory . newHazelcastClient ( clientConfig ) ;

 - Thread . sleep ( NUMBER0 ) ;
 -
 instance . shutdown ( ) ;

 - Thread . sleep ( NUMBER1 ) ;
 -
 hazelcastFactory . newHazelcastInstance ( ) ;

 - assertTrue ( latch . await ( NUMBER2 , TimeUnit . SECONDS ) ) ;
 + assertTrue ( latch . await ( NUMBER3 , TimeUnit . SECONDS ) ) ;
 }

Remove sleeps and increase latch timeout in ClientRegressionWithMockNetworkTest


<nb> public class ScriptRunner {
 if ( stopOnError ) {
 hasResults = statement . execute ( sql ) ;
 if ( throwWarning ) {
 + SINGLE
 + SINGLE
 SQLWarning warning = statement . getWarnings ( ) ;
 if ( warning != null ) {
 throw warning ;


<nb> public class LlcpSocket {
 throw new IOException ( ) ;
 }
 } catch ( RemoteException e ) {
 - Log . e ( TAG , STRING0 , e ) ;
 + Log . e ( TAG , STRING1 , e ) ;
 }

 return receivedLength ;


<nb> public class SingleSignOn extends ValveBase implements SessionListener {
 }
 Cookie cookie = null ;
 Cookie cookies [ ] = request . getCookies ( ) ;
 - if ( cookies == null ) {
 - cookies = new Cookie [ NUMBER0 ] ;
 - }
 - for ( int i = NUMBER0 ; i < cookies . length ; i ++ ) {
 - if ( Constants . SINGLE_SIGN_ON_COOKIE . equals ( cookies [ i ] . getName ( ) ) ) {
 - cookie = cookies [ i ] ;
 - break ;
 + if ( cookies != null ) {
 + for ( int i = NUMBER0 ; i < cookies . length ; i ++ ) {
 + if ( Constants . SINGLE_SIGN_ON_COOKIE . equals ( cookies [ i ] . getName ( ) ) ) {
 + cookie = cookies [ i ] ;
 + break ;
 + }
 }
 }
 if ( cookie == null ) {


<nb> public class ServletContextResource extends AbstractFileResolvingResource implem
 COMMENT
 @ override
 public File getFile ( ) throws IOException {
 - URL url = getURL ( ) ;
 - if ( ResourceUtils . isFileURL ( url ) ) {
 + URL url = this . servletContext . getResource ( this . path ) ;
 + if ( url != null && ResourceUtils . isFileURL ( url ) ) {
 SINGLE
 return super . getFile ( ) ;
 }

Handle non existent files in ServletContextResource


<nb> public abstract class RxRatpack {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

add javadoc example for RX Observable RS Publisher


<nb> public class Client implements Runnable {
 }
 if ( isDisposeRegistered ) {
 parent . unregisterMethod ( STRING0 , this ) ;
 + isDisposeRegistered = false ;
 }
 dispose ( ) ;
 }

Prevent possible duplicate deregistering


<nb> public class SQLiteDatabase extends SQLiteClosable {
 @ override
 protected void onAllReferencesReleased ( ) {
 if ( isOpen ( ) ) {
 - dbclose ( ) ;
 + SINGLE
 + close ( ) ;
 }
 }

 <nb> public class SQLiteDatabase extends SQLiteClosable {
 SINGLE
 closePendingStatements ( ) ;
 SINGLE
 - onAllReferencesReleased ( ) ;
 + dbclose ( ) ;
 if ( mConnectionPool != null ) {
 mConnectionPool . close ( ) ;
 }

when closing db close all pending statements also


<nb> public class Preference implements Comparable < Preference > {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 public SharedPreferences getSharedPreferences ( ) {
 if ( mPreferenceManager == null ) {
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public class PreferenceManager {
 <nb> import NAMESPACE ;
 & lt ; / PreferenceScreen & gt ; < / pre >
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public abstract class TwoStatePreference extends Preference {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public abstract class ConnectionProxy implements IHikariConnectionProxy
 checkClosed ( ) ;
 try {
 delegate . setCatalog ( catalog ) ;
 - isCatalogDirty = ! catalog . equals ( parentPool . catalog ) ;
 + isCatalogDirty = ( catalog != null && ! catalog . equals ( parentPool . catalog ) ) || ( catalog == null && parentPool . catalog != null ) ;
 }
 catch ( SQLException e ) {
 throw checkException ( e ) ;
 <nb> public abstract class ConnectionProxy implements IHikariConnectionProxy
 checkClosed ( ) ;
 try {
 delegate . setCatalog ( catalog ) ;
 - isCatalogDirty = ! catalog . equals ( parentPool . catalog ) ;
 + isCatalogDirty = ( catalog != null && ! catalog . equals ( parentPool . catalog ) ) || ( catalog == null && parentPool . catalog != null ) ;
 }
 catch ( SQLException e ) {
 throw checkException ( e ) ;


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public class BlurDialogEngine {
 + class BlurDialogEngine {

 COMMENT
 COMMENT
 <nb> public class BlurDialogEngine {
 COMMENT
 COMMENT
 COMMENT
 - public class BlurAsyncTask extends AsyncTask < Void , Void , Void > {
 + private class BlurAsyncTask extends AsyncTask < Void , Void , Void > {

 private Bitmap mBackground ;

 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public final class FastBlurHelper {
 + final class FastBlurHelper {

 COMMENT
 COMMENT


<nb> public class GoImportReference extends FileReference {
 @ notnull
 @ override
 protected ResolveResult [ ] innerResolve ( boolean caseSensitive ) {
 + if ( isFirst ( ) && isLast ( ) && STRING0 . equals ( getFileReferenceSet ( ) . getPathString ( ) ) ) {
 + SINGLE
 + return ResolveResult . EMPTY_ARRAY ;
 + }
 if ( isFirst ( ) ) {
 if ( STRING1 . equals ( getCanonicalText ( ) ) ) {
 PsiDirectory directory = getDirectory ( ) ;


<nb> public class Presence extends Packet {
 COMMENT
 COMMENT
 COMMENT
 - error ;
 + error ,
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + probe ,
 + ;

 COMMENT
 COMMENT


<nb> public final class Sequencer extends Animatable {
 COMMENT
 public void after ( long delay ) {
 SINGLE
 - Animator anim = new Animator ( delay , FLOAT0 , FLOAT1 ) ;
 - Node node = new Node ( anim ) ;
 - mNodes . add ( node ) ;
 - Dependency dependency = new Dependency ( node , Dependency . AFTER ) ;
 - mCurrentNode . addDependency ( dependency ) ;
 + after ( new Animator ( delay , FLOAT0 , FLOAT1 ) ) ;
 }

 }

Fix NPE in onAnimationEnd when using Sequencer after long


<nb> public class AddColumnExecutorTest extends AbstractExecuteTest {
 assertCorrect ( STRING0 , SQLiteDatabase . class ) ;
 assertCorrect ( STRING1 , PostgresDatabase . class , InformixDatabase . class , OracleDatabase . class , DerbyDatabase . class , HsqlDatabase . class , DB2Database . class , H2Database . class , CacheDatabase . class , FirebirdDatabase . class , MaxDBDatabase . class ) ;
 assertCorrect ( STRING2 , SybaseASADatabase . class ) ;
 - assertCorrect ( STRING1 , MySQLDatabase . class ) ;
 + assertCorrect ( STRING3 , MySQLDatabase . class ) ;
 assertCorrectOnRest ( STRING4 ) ;
 }


<nb> public class CustomIntro extends AppIntro {
 @ override
 public void init ( Bundle savedInstanceState ) {
 addSlide ( AppIntroFragment . newInstance ( STRING0 , STRING1 ,
 - R . drawable . ic_slide1 , R . color . material_blue_grey_800 ) ) ;
 + R . drawable . ic_slide1 , Color . parseColor ( STRING2 ) ) ) ;

 setBarColor ( Color . parseColor ( STRING3 ) ) ;
 setSeparatorColor ( Color . parseColor ( STRING2 ) ) ;


<nb> public class ZFrame
 for ( byte aData : data ) {
 if ( aData < NUMBER0 ) {
 isText = false ;
 + break ;
 }
 }
 if ( isText ) {

Break loop on finding the first non printable character


<nb> public class PublishArtifactToFileBuildOutcomeTransformer {
 }

 private String getDescription ( PublishArtifact artifact ) {
 - return String . format ( STRING0 , artifact . toString ( ) ) ;
 + return STRING1 . concat ( artifact . toString ( ) ) . concat ( STRING2 ) ;
 }

 private String getTypeIdentifier ( PublishArtifact artifact ) {


<nb> class Record {
 STRING0 ,
 STRING1 ,
 STRING2 ,
 + STRING3 ,
 + STRING4 ,
 STRING5 ,
 STRING6 ,
 + STRING7 ,
 + STRING8 ,
 + STRING9 ,
 + STRING10 ,
 + STRING11 ,
 + STRING12 ,
 + STRING13 ,
 + STRING14 ,
 + STRING15 ,
 + STRING16 ,
 + STRING17 ,
 + STRING18 ,
 } ;

 enum Type {

Fix the preloaded classes tool for JellyBean


<nb> final class AioSocketChannelConfig extends DefaultChannelConfig
 }

 @ override
 - @ suppresswarnings ( STRING0 )
 public < T > T getOption ( ChannelOption < T > option ) {
 if ( option == SO_RCVBUF ) {
 return ( T ) Integer . valueOf ( getReceiveBufferSize ( ) ) ;


<nb>

 package NAMESPACE ;

 - import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;


<nb> public class FromJsonDecoder {
 StartCustomPollRequestMessage msg = gson . fromJson ( message , StartCustomPollRequestMessage . class ) ;
 return msg ;
 } else {
 - System . out . println ( STRING0 + messageName + STRING1 ) ;
 + SINGLE
 return null ;
 }
 }


<nb> public class JavaGenerator implements CodeGenerator
 indent + STRING0 +
 indent + STRING1 +
 indent + STRING2 +
 + indent + STRING3 +
 indent + STRING4 +
 indent + STRING0 +
 indent + STRING5 +
 indent + STRING2 +
 + indent + STRING3 +
 indent + STRING6 +
 indent + STRING0 +
 indent + STRING7 +
 indent + STRING2 +
 + indent + STRING3 +
 indent + STRING8 +
 indent + STRING0 +
 indent + STRING9 +
 <nb> public class JavaGenerator implements CodeGenerator
 ) ) ;

 sb . append ( String . format (
 + indent + STRING3 +
 indent + STRING10 +
 indent + STRING0 +
 indent + STRING11 +


<nb> package NAMESPACE ;
 import static NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;


<nb> public class ClusterEventPeriodical extends Periodical {
 public void doRun ( ) {
 try {
 LOG . debug ( STRING0 , COLLECTION_NAME ) ;
 +
 final DBCursor < ClusterEvent > cursor = eventCursor ( nodeId ) ;
 + if ( LOG . isTraceEnabled ( ) ) {
 + LOG . trace ( STRING1 , cursor . explain ( ) ) ;
 + }
 +
 while ( cursor . hasNext ( ) ) {
 ClusterEvent clusterEvent = cursor . next ( ) ;
 LOG . trace ( STRING2 , clusterEvent ) ;

Log MongoDB query plan on TRACE level in ClusterEventPeriodical


<nb> public class FMLNetworkHandler
 {
 Map < String , ModContainer > mods = Loader . instance ( ) . getIndexedModList ( ) ;
 NetworkModHandler handler = findNetworkModHandler ( mods . get ( key ) ) ;
 - handler . setNetworkId ( value ) ;
 - networkIdLookup . put ( value , handler ) ;
 + if ( handler != null )
 + {
 + handler . setNetworkId ( value ) ;
 + networkIdLookup . put ( value , handler ) ;
 + }
 }

 public static void onClientConnectionToRemoteServer ( NetHandler netClientHandler , String server , int port , NetworkManager networkManager )


<nb> import NAMESPACE ;
 import NAMESPACE ;

 - public abstract interface MetaClass extends MOP {
 + public abstract interface MetaClass extends MetaObjectProtocol {
 COMMENT
 COMMENT
 COMMENT
 <nb>
 COMMENT
 package NAMESPACE ;

 - public interface MOP {
 + public interface MetaObjectProtocol {
 Class getTheClass ( ) ;
 Object invokeConstructor ( Object [ ] arguments ) ;
 Object invokeMethod ( Object object , String methodName , Object [ ] arguments ) ;


<nb> public class BaseSettingsApi {
 COMMENT
 COMMENT
 public void updateMetadata ( Map entries ) throws IOException {
 - if ( ! metadataFile . exists ( ) ) {
 - FileWriter writer = new FileWriter ( metadataFile ) ;
 - try {
 - new Properties ( )
 - . store ( writer ,
 - STRING0
 - + STRING1 ) ;
 - } finally {
 - writer . close ( ) ;
 - }
 - metadata = Metadata . getInstance ( metadataFile ) ;
 - }
 -
 - SINGLE
 -
 + Metadata metadata = Metadata . getCurrent ( ) ;
 for ( Object key : entries . keySet ( ) ) {
 final Object value = entries . get ( key ) ;
 if ( value != null )

fixed a bug updating the application metadata


<nb> public class NettyRatpackServer implements RatpackServer {
 }

 pipeline . addLast ( STRING0 , new HttpRequestDecoder ( NUMBER0 , NUMBER1 , NUMBER1 , false ) ) ;
 - pipeline . addLast ( STRING1 , new HttpObjectAggregator ( serverConfig . getMaxContentLength ( ) ) ) ;
 pipeline . addLast ( STRING2 , new HttpResponseEncoder ( ) ) ;
 + pipeline . addLast ( STRING1 , new HttpObjectAggregator ( serverConfig . getMaxContentLength ( ) ) ) ;
 pipeline . addLast ( STRING3 , new SmartHttpContentCompressor ( ) ) ;
 pipeline . addLast ( STRING4 , new ChunkedWriteHandler ( ) ) ;
 pipeline . addLast ( STRING5 , handlerAdapter ) ;

Put encoder before aggregator in NettyRatpackServer pipeline


<nb> public class Tethering extends INetworkManagementEventObserver . Stub {
 try {
 NetworkInfo info = service . getNetworkInfo ( ConnectivityManager . TYPE_MOBILE_DUN ) ;
 int msg ;
 - if ( info . isConnected ( ) == true ) {
 + if ( info != null && info . isConnected ( ) == true ) {
 msg = TetherMasterSM . CMD_CELL_DUN_ENABLED ;
 } else {
 msg = TetherMasterSM . CMD_CELL_DUN_DISABLED ;

Fix null pointer exception in connectivity service broadcast receiver


<nb> ViewPager . OnPageChangeListener , EditNoteActivity . UpdatesChangedListener {
 handler . postDelayed ( new Runnable ( ) {
 @ override
 public void run ( ) {
 - if ( mPager . getCurrentItem ( ) == TAB_VIEW_UPDATES )
 - setPagerHeightForPosition ( TAB_VIEW_UPDATES ) ;
 + updatesChanged ( ) ;
 }
 } , NUMBER0 ) ;
 }
 <nb> ViewPager . OnPageChangeListener , EditNoteActivity . UpdatesChangedListener {
 SINGLE
 @ override
 public void updatesChanged ( ) {
 - SINGLE
 + if ( mPager . getCurrentItem ( ) == TAB_VIEW_UPDATES )
 + setPagerHeightForPosition ( TAB_VIEW_UPDATES ) ;
 }

 SINGLE

Fixed a ui refresh bug when syncing task comments


<nb> public class ForgeHooksClient
 {
 if ( ! Objects . equal ( from , to ) || from == null )
 {
 - return false ;
 + return Objects . equal ( from , to ) ;
 }
 boolean changed = false ;
 if ( slot != - NUMBER0 )

Fixed emply hand not rendering in first person


<nb> public class ZooClient extends AbstractZooKeeperManager

 public void process ( WatchedEvent event )
 {
 + String path = event . getPath ( ) ;
 + msgLog . logMessage ( this + STRING0 + new Date ( ) + STRING1 + event
 + + STRING2 + path + STRING3 , true ) ;
 + if ( shutdown )
 + {
 + msgLog . logMessage ( this
 + + STRING4 ) ;
 + return ;
 + }
 try
 {
 - String path = event . getPath ( ) ;
 - msgLog . logMessage ( this + STRING0 + new Date ( ) + STRING1 + event + STRING2 + path + STRING3 , true ) ;
 if ( path == null && event . getState ( ) == Watcher . Event . KeeperState . Expired )
 {
 keeperState = KeeperState . Expired ;
 <nb> public class ZooClient extends AbstractZooKeeperManager
 {
 return storeId ;
 }
 -
 +
 @ override
 public String toString ( )
 {

ZooClient ignores events after being shutdown


<nb> public final class CheckDocsDoclet

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class TableDefinition extends BaseTableDefinition {
 typeBuilder . addMethod ( MethodSpec . methodBuilder ( STRING0 )
 . addAnnotation ( Override . class )
 . addModifiers ( Modifier . PUBLIC , Modifier . FINAL )
 - . addStatement ( STRING1 , QueryBuilder . quote ( autoIncrementDefinition . columnName ) )
 + . addStatement ( STRING1 , QueryBuilder . stripQuotes ( autoIncrementDefinition . columnName ) )
 . returns ( ClassName . get ( String . class ) ) . build ( ) ) ;
 }


<nb> public class NumberPicker extends LinearLayout {
 SINGLE
 mInputText . setRawInputType ( InputType . TYPE_CLASS_TEXT
 | InputType . TYPE_TEXT_FLAG_NO_SUGGESTIONS ) ;
 + SINGLE
 + SINGLE
 + if ( getMinValue ( ) >= displayedValues . length ) {
 + setMinValue ( NUMBER0 ) ;
 + }
 + if ( getMaxValue ( ) >= displayedValues . length ) {
 + setMaxValue ( displayedValues . length - NUMBER1 ) ;
 + }
 } else {
 mInputText . setRawInputType ( InputType . TYPE_CLASS_NUMBER ) ;
 }

NumberPicker should adjust min and max when displayed values are set


<nb> public final class ConformanceRules {
 || isWizDeclaration ( n ) ) {
 return ConformanceResult . CONFORMANCE ;
 }
 + SINGLE
 + SINGLE
 + SINGLE
 + Node enclosingScript = NodeUtil . getEnclosingScript ( n ) ;
 + if ( enclosingScript != null && enclosingScript . getBooleanProp ( Node . GOOG_MODULE ) ) {
 + return ConformanceResult . CONFORMANCE ;
 + }
 +
 JSDocInfo ownJsDoc = n . getFirstChild ( ) . getJSDocInfo ( ) ;
 if ( ownJsDoc != null && ownJsDoc . isConstructor ( ) ) {
 FunctionType functionType = n . getFirstChild ( )

Don t run the NoImplicitlyPublicDecls check on goog modules


<nb> public class NettyTransportChannel implements TransportChannel {
 channel . write ( buffer ) ;
 transportServiceAdapter . onResponseSent ( requestId , action , error ) ;
 }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public Channel getChannel ( ) {
 + return channel ;
 + }
 }

add getter for channel in NettyTransportChannel


<nb> public interface Context extends Registry {
 void render ( Object object ) throws NoSuchRendererException ;

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + default String header ( String name ) {
 + return getRequest ( ) . getHeaders ( ) . get ( name ) ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

added shortcut for getting header values


<nb> import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public class ChromeDevtoolsServer implements SimpleEndpoint {
 private static final String TAG = STRING0 ;

ChromeDevToolsServer java update link to debugger protocol


<nb> public class AceEditorIdleCommands
 } ;

 cow . set ( new ChunkOutputWidget (
 - StringUtil . makeRandomId ( NUMBER0 ) ,
 - StringUtil . makeRandomId ( NUMBER0 ) ,
 + STRING0 ,
 + STRING1 + StringUtil . makeRandomId ( NUMBER0 ) ,
 RmdChunkOptions . create ( ) ,
 ChunkOutputWidget . EXPANDED ,
 host ) ) ;

use blank document id prefix for chunk id


<nb> public class BlockIgniteEvent extends BlockEvent implements Cancellable {
 COMMENT
 COMMENT
 SPREAD ,
 - COMMENT
 - COMMENT
 - COMMENT
 - SLOW_SPREAD
 -
 }

 }

Removed SLOW_SPREAD from IgniteCause enum


<nb>

 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class PopupUpdateProcessor extends JBPopupAdapter {
 if ( windowEvent . asPopup ( ) . isVisible ( ) ) { SINGLE
 final LookupElement item = event . getItem ( ) ;
 if ( item != null ) {
 - updatePopup ( item . getObject ( ) ) ; SINGLE
 + updatePopup ( CompletionUtil . getTargetElement ( item ) ) ; SINGLE
 }
 } else {
 activeLookup . removeLookupListener ( this ) ; SINGLE

always show docs impls for physical elements


<nb> public abstract class CodegenTestCase extends UsefulTestCase {
 @ notnull
 protected String relativePath ( @ notnull File file ) {
 String stringToCut = STRING0 ;
 - assert file . getPath ( ) . startsWith ( stringToCut ) : STRING1 + file ;
 - return file . getPath ( ) . substring ( stringToCut . length ( ) ) ;
 + String systemIndependentPath = file . getPath ( ) . replace ( File . separatorChar , STRING2 ) ;
 + assert systemIndependentPath . startsWith ( stringToCut ) : STRING1 + file ;
 + return systemIndependentPath . substring ( stringToCut . length ( ) ) ;
 }

 @ notnull

Fix file separators in Codegen Tests on Windows


<nb> public class QueryFailureTest extends SystemTestBase {
 assertEquals ( CreateJobResponse . Status . OK , created . getStatus ( ) ) ;

 final String result = cli ( STRING0 , STRING1 , STRING2 ) ;
 - assertThat ( result , containsString ( STRING3 ) ) ;
 + assertThat ( result , containsString ( STRING4 ) ) ;
 }
 }


<nb> public class LwjglCanvas extends LwjglAbstractDisplay implements JmeCanvasContex
 COMMENT
 protected void destroyContext ( ) {
 if ( Display . isCreated ( ) ) {
 + try {
 + SINGLE
 + SINGLE
 + Display . setParent ( null ) ;
 + } catch ( LWJGLException ex ) {
 + logger . log ( Level . SEVERE , STRING0 , ex ) ;
 + }
 Display . destroy ( ) ;
 }


<nb> public class ImageManager {
 }

 private void handleException ( final Exception e ) {
 + if ( Log . isLoggable ( TAG , Log . DEBUG ) ) {
 + Log . d ( TAG , STRING0 , e ) ;
 + }
 mainHandler . post ( new Runnable ( ) {
 @ override
 public void run ( ) {

Add debug logging for exceptions loading images


<nb> public class WritableScopeImpl extends WritableScopeWithImports {

 if ( ! allDescriptorsDone ) {
 allDescriptorsDone = true ;
 +
 + SINGLE
 + changeLockLevel ( LockLevel . READING ) ;
 +
 allDescriptors . addAll ( getWorkerScope ( ) . getAllDescriptors ( ) ) ;
 for ( JetScope imported : getImports ( ) ) {
 allDescriptors . addAll ( imported . getAllDescriptors ( ) ) ;


<nb> public class LRUCache < K , V > {
 CacheEntry < K , V > value = cache . get ( key ) ;
 if ( value == null ) {
 long expires ;
 - if ( maxEntries == - NUMBER0 ) {
 + if ( maxAge == - NUMBER0 ) {
 expires = - NUMBER0 ;
 } else {
 expires = System . currentTimeMillis ( ) + maxAge ;


<nb> public class IpnbFileEditor extends UserDataHolderBase implements FileEditor , Te
 @ override
 public void beforeFileClosed ( @ notnull FileEditorManager source , @ notnull VirtualFile file ) {
 if ( ! new File ( file . getPath ( ) ) . exists ( ) ) return ;
 + final Document document = getEditor ( ) . getDocument ( ) ;
 + FileDocumentManager . getInstance ( ) . saveDocument ( document ) ;
 IpnbParser . saveIpnbFile ( myIpnbFilePanel ) ;
 file . refresh ( false , false ) ;
 }


<nb> final class RestHelper {
 }

 static String uriCast ( final Object value ) {
 + if ( value == null )
 + return STRING0 ;
 if ( value instanceof String )
 return STRING1 + RexsterTokens . STRING + STRING2 + value . toString ( ) + STRING3 ;
 else if ( value instanceof Integer )

Fixed failing test for RexsterGraph given Query changes


<nb> import NAMESPACE ;
 public class HawtDBAggregateLoadTest extends CamelTestSupport {

 private static final Log LOG = LogFactory . getLog ( HawtDBAggregateLoadTest . class ) ;
 - private static final int SIZE = NUMBER0 ;
 + private static final int SIZE = NUMBER1 ;

 @ before
 @ override

Bring the test size down since the new flush change increases commit latency


<nb> public class SimpleTemplateEngine extends TemplateEngine {
 }

 private void startScript ( StringWriter sw ) {
 - sw . write ( STRING0 ) ;
 sw . write ( STRING1 ) ;
 }

 private void endScript ( StringWriter sw ) {
 sw . write ( STRING2 ) ;
 + sw . write ( STRING3 ) ;
 }

 private void processGSstring ( Reader reader , StringWriter sw ) throws IOException {

Push the signature comment of SimpleTemplateEngine to end of template output


<nb> public final class WebViewDelegate {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public void callDrawGlFunction ( Canvas canvas , long nativeDrawGLFunctor ) {
 if ( ! ( canvas instanceof HardwareCanvas ) ) {


<nb> public final class FBReaderApp extends ZLApplication {
 public final ZLStringOption FooterFontOption =
 new ZLStringOption ( STRING0 , STRING1 , STRING2 ) ;

 - final ZLBooleanOption SelectionEnabledOption =
 - new ZLBooleanOption ( STRING0 , STRING3 , true ) ;
 -
 final ZLStringOption ColorProfileOption =
 new ZLStringOption ( STRING0 , STRING4 , ColorProfile . DAY ) ;

 <nb> public final class FBView extends ZLTextView {
 return myFooter ;
 }

 - @ override
 - protected boolean isSelectionEnabled ( ) {
 - return myReader . SelectionEnabledOption . getValue ( ) ;
 - }
 -
 public static final int SCROLLBAR_SHOW_AS_FOOTER = NUMBER0 ;

 @ override
 <nb> public abstract class ZLTextView extends ZLTextViewBase {
 return false ;
 }

 - protected abstract boolean isSelectionEnabled ( ) ;
 -
 private ZLTextRegion mySelectedRegion ;
 private boolean myHighlightSelectedRegion = true ;


<nb> public class SpongeForgeEventFactory {
 EntitySpawnCause spawnCause = ( EntitySpawnCause ) source ;
 SpongeEntitySnapshot snapshot = ( SpongeEntitySnapshot ) spawnCause . getEntity ( ) ;
 Entity entity = ( Entity ) snapshot . getEntityReference ( ) . get ( ) ;
 - if ( entity == null ) {
 + if ( entity == null || ! ( entity instanceof EntityLivingBase ) ) {
 return spongeEvent ;
 }

Fix ClassCastException while firing Forge s LivingDropsEvent


<nb> public class PostgreDatabase implements DBSInstance , DBSCatalog , DBPRefreshableO
 throws SQLException
 {
 return session . prepareStatement (
 - STRING0 +
 + STRING1 +
 STRING2
 ) ;
 }
 <nb> public class PostgreDatabase implements DBSInstance , DBSCatalog , DBPRefreshableO
 @ override
 protected boolean handleCacheReadError ( DBException error ) {
 SINGLE
 + SINGLE
 SINGLE
 SINGLE
 setCache ( Collections . < PostgreAuthId > emptyList ( ) ) ;


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class MakeCustomActivity extends Activity {
 @ override
 public void onClick ( View v ) {
 mProgressBar . progressiveStart ( ) ;
 + ( ( CircularProgressDrawable ) mCircularProgressBar . getIndeterminateDrawable ( ) ) . start ( ) ;
 }
 } ) ;

 <nb> public class MakeCustomActivity extends Activity {
 @ override
 public void onClick ( View v ) {
 mProgressBar . progressiveStop ( ) ;
 + ( ( CircularProgressDrawable ) mCircularProgressBar . getIndeterminateDrawable ( ) ) . progressiveStop ( ) ;
 }
 } ) ;

Updated sample to add the progressive stop


<nb> public class RefCountingStorage extends AbstractStorage {
 }

 synchronized ( myLock ) {
 - myPendingWriteRequests . remove ( record ) ;
 doWrite ( record , fixedSize , s ) ;
 + myPendingWriteRequests . remove ( record ) ;
 }
 return null ;
 }


<nb> public class PopupToolbarAction extends AnAction {
 new SelectInNavBarTarget ( project ) . select ( null , false ) ;
 return ;
 }
 + if ( DataKeys . CONTEXT_COMPONENT . getData ( dataContext ) instanceof NavBarPanel ) {
 + return ;
 + }
 final Editor editor = DataKeys . EDITOR . getData ( dataContext ) ;
 final NavBarPanel toolbarPanel = new NavBarPanel ( project ) {
 public Dimension getPreferredSize ( ) {


<nb> public final class Files {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 public static void copy ( File from , File to ) throws IOException {
 + Preconditions . checkArgument ( ! from . equals ( to ) ,
 + STRING0 , from , to ) ;
 copy ( newInputStreamSupplier ( from ) , to ) ;
 }

 <nb> public final class Files {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 public static void move ( File from , File to ) throws IOException {
 Preconditions . checkNotNull ( to ) ;
 <nb> public final class Files {
 }

 SINGLE
 - Iterable < String > components = Splitter . on ( STRING1 ) . omitEmptyStrings ( ) . split ( pathname ) ;
 + Iterable < String > components =
 + Splitter . on ( STRING1 ) . omitEmptyStrings ( ) . split ( pathname ) ;
 List < String > path = new ArrayList < String > ( ) ;

 SINGLE

Throw an IAE if source and destination files are the same in Files copy


<nb> public interface Operator

 OperatorContext getOperatorContext ( ) ;

 + COMMENT
 + COMMENT
 + COMMENT
 List < Type > getTypes ( ) ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 void finish ( ) ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 boolean isFinished ( ) ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 ListenableFuture < ? > isBlocked ( ) ;

 + COMMENT
 + COMMENT
 + COMMENT
 boolean needsInput ( ) ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 void addInput ( Page page ) ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 Page getOutput ( ) ;
 }


<nb> public class MustacheCompiler {
 private static String header , middle , footer ;
 private static AtomicInteger num = new AtomicInteger ( NUMBER0 ) ;
 private Logger logger = Logger . getLogger ( getClass ( ) . getName ( ) ) ;
 - private boolean debug = true ;
 + private boolean debug = false ;
 private String superclass ;

 public void setDebug ( ) {


<nb> public class JreMemoryLeakPreventionListener implements LifecycleListener {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT

 SINGLE


<nb> public class JsonValue {
 public String asString ( ) {
 if ( stringValue != null ) return stringValue ;
 if ( doubleValue != null ) {
 - if ( doubleValue == longValue ) return Long . toString ( longValue ) ;
 + if ( doubleValue % NUMBER0 == NUMBER1 ) return Long . toString ( longValue ) ;
 return Double . toString ( doubleValue ) ;
 }
 if ( booleanValue != null ) return Boolean . toString ( booleanValue ) ;


<nb> public class AzureBlobContainer extends AbstractBlobContainer {
 }

 @ override
 - public boolean deleteBlob ( String blobName ) throws IOException {
 + public void deleteBlob ( String blobName ) throws IOException {
 try {
 blobStore . client ( ) . deleteBlob ( blobStore . container ( ) , buildKey ( blobName ) ) ;
 - return true ;
 } catch ( URISyntaxException e ) {
 logger . warn ( STRING0 , blobName , blobStore . container ( ) , e . getMessage ( ) ) ;
 throw new IOException ( e ) ;

Change in BlobContainer deleteBlob does not return boolean


<nb> public class CachedList < CO extends CachedModel > extends CachedModel {
 }

 @ override
 + public boolean equals ( Object o ) {
 + if ( ! ( o instanceof CachedList ) ) {
 + return false ;
 + }
 + @ suppresswarnings ( STRING0 )
 + CachedList that = ( CachedList ) o ;
 + return clazz . equals ( that . clazz ) && list . equals ( that . list ) ;
 + }
 +
 + @ override
 public String createKey ( String id ) {
 return STRING1 + id ;
 }

Added better equality check to model cached lists


<nb> public class AeronClient implements DriverManagedResource
 {
 SINGLE
 }
 -
 - public int incRef ( )
 - {
 - return NUMBER0 ;
 - }
 -
 - public int decRef ( )
 - {
 - return NUMBER0 ;
 - }
 }


<nb> public class View implements Drawable . Callback , KeyEvent . Callback ,
 COMMENT
 COMMENT
 public void addFocusables ( ArrayList < View > views , @ focusdirection int direction ) {
 - addFocusables ( views , direction , FOCUSABLES_TOUCH_MODE ) ;
 + addFocusables ( views , direction , isInTouchMode ( ) ? FOCUSABLES_TOUCH_MODE : FOCUSABLES_ALL ) ;
 }

 COMMENT
 <nb> public class View implements Drawable . Callback , KeyEvent . Callback ,
 return ;
 }
 if ( ( focusableMode & FOCUSABLES_TOUCH_MODE ) == FOCUSABLES_TOUCH_MODE
 - && isInTouchMode ( ) && ! isFocusableInTouchMode ( ) ) {
 + && ! isFocusableInTouchMode ( ) ) {
 return ;
 }
 views . add ( this ) ;


<nb> final class AccessibilityController {
 SINGLE
 SINGLE
 if ( ( flags & WindowManager . LayoutParams . FLAG_NOT_TOUCHABLE ) != NUMBER0 ) {
 - unaccountedSpace . op ( boundsInScreen , unaccountedSpace ,
 - Region . Op . DIFFERENCE ) ;
 continue ;
 }

Not touchable windows should not hide windows behind


<nb> public class AdminClient {
 writableStores . add ( def ) ;
 }
 }
 - System . out . println ( writableStores ) ;
 for ( StoreDefinition def : writableStores ) {
 restoreStoreFromReplication ( nodeId , cluster , def , executors ) ;
 }
 <nb> public class AdminServiceBasicTest extends TestCase {

 @ test
 public void testFetchPartitionFiles ( ) throws IOException {
 - generateAndFetchFiles ( NUMBER0 , NUMBER1 , NUMBER2 , NUMBER2 ) ;
 + if ( useNio )
 + generateAndFetchFiles ( NUMBER0 , NUMBER1 , NUMBER2 , NUMBER2 ) ;
 }

 private void generateFiles ( int numChunks ,

Removing sysout from the Admin client unit tests


<nb> public class RoutePointsPlugin extends OsmandPlugin {

 @ override ( )
 public boolean updateInfo ( OsmandMapLayer . DrawSettings drawSettings ) {
 - setText ( getVisitedAllString ( ) , STRING0 ) ;
 + if ( currentRoute != null ) {
 + setText ( getVisitedAllString ( ) , STRING0 ) ;
 + } else {
 + setText ( STRING0 , app . getString ( R . string . route_points_no_gpx ) ) ;
 + }
 return true ;
 }


<nb> public class JSSESocketFactory implements SSLUtil {
 algorithm = TrustManagerFactory . getDefaultAlgorithm ( ) ;
 }

 - return getTrustManagers ( truststoreType , sslHostConfig . getCertificateKeystoreProvider ( ) ,
 - algorithm ) ;
 + return getTrustManagers ( truststoreType , endpoint . getTruststoreProvider ( ) , algorithm ) ;
 }

 @ override

Use the trustStoreProvider rather than the keystoreProvider for the trust manager


<nb> public class SpaceReserver implements Runnable {
 } else {
 LOG . warn ( STRING0 , lastIntervalMs , mCheckIntervalMs ) ;
 }
 + lastCheckMs = System . currentTimeMillis ( ) ;
 reserveSpace ( ) ;
 }
 }

update last check time before reserve space in SpaceReserver


<nb> public final class UpgradeService {
 StringBuilder changeLog = new StringBuilder ( ) ;

 if ( from < V4_1_0 ) {
 - newVersionString ( changeLog , STRING0 , new String [ ] {
 + newVersionString ( changeLog , STRING1 , new String [ ] {
 STRING2 +
 - STRING3 ,
 + STRING4 ,
 STRING5 +
 STRING6 ,
 STRING7 ,


<nb> public abstract class NavigatorHandlerObjectBase extends AbstractHandler {
 @ override
 public void run ( DBRProgressMonitor monitor ) throws InvocationTargetException , InterruptedException
 {
 + monitor . beginTask ( STRING0 , NUMBER0 ) ;
 try {
 commander . saveChanges ( monitor ) ;
 + monitor . done ( ) ;
 } catch ( DBException e ) {
 throw new InvocationTargetException ( e ) ;
 }
 <nb> public class NavigatorHandlerObjectDelete extends NavigatorHandlerObjectBase imp
 if ( commandTarget . getEditor ( ) == null && commandTarget . getContext ( ) != null ) {
 SINGLE
 ObjectSaver deleter = new ObjectSaver ( commandTarget . getContext ( ) ) ;
 - DBeaverUI . runInProgressService ( deleter ) ;
 + DBeaverUI . runInProgressDialog ( deleter ) ;
 }

 - } catch ( InterruptedException e ) {
 - SINGLE
 } catch ( Throwable e ) {
 if ( e instanceof InvocationTargetException ) {
 e = ( ( InvocationTargetException ) e ) . getTargetException ( ) ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;

 COMMENT
 COMMENT
 <nb> public class WorldEditPlayerListener extends PlayerListener {
 COMMENT
 @ override
 public void onPlayerAnimation ( PlayerAnimationEvent event ) {
 + LocalPlayer localPlayer = wrapPlayer ( event . getPlayer ( ) ) ;
 +
 if ( event . getAnimationType ( ) == PlayerAnimationType . ARM_SWING ) {
 - plugin . controller . handleArmSwing ( wrapPlayer ( event . getPlayer ( ) ) ) ;
 + plugin . controller . handleArmSwing ( localPlayer ) ;
 + }
 +
 + SINGLE
 + SINGLE
 + WorldVector pt = localPlayer . getBlockTrace ( NUMBER0 ) ;
 + if ( pt != null && pt . getWorld ( ) . getBlockType ( pt ) == BlockID . BEDROCK ) {
 + if ( plugin . controller . handleBlockLeftClick ( localPlayer , pt ) ) {
 + }
 }
 }

Added a workaround to the fact that Minecraft no longer sends a block dig packet for bedrock


<nb> public class MockitoJUnitRule implements TestRule {
 private final JUnitRule jUnitRule ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 - public MockitoJUnitRule ( Object testInstance ) {
 - checkNotNull ( testInstance , STRING0 ) ;
 - this . jUnitRule = new JUnitRule ( testInstance ) ;
 + public MockitoJUnitRule ( Object targetTest ) {
 + checkNotNull ( targetTest , STRING1 ) ;
 + this . jUnitRule = new JUnitRule ( targetTest ) ;
 }

 public Statement apply ( final Statement base , Description description ) {
 <nb> public class MockitoJUnitRuleTest {
 new MockitoJUnitRule ( null ) ;
 fail ( ) ;
 } catch ( NullPointerException e ) {
 - assertEquals ( STRING2 , STRING3 , e . getMessage ( ) ) ;
 + assertEquals ( STRING2 , STRING4 , e . getMessage ( ) ) ;
 }
 }


<nb> public class RemoteActorRef < Message > extends ActorRefImpl < Message > {
 private static LifecycleListenerProxy lifecycleListenerProxy = ServiceUtil . loadSingletonService ( LifecycleListenerProxy . class ) ;
 private final transient ActorRefImpl < Message > actor ;

 - public RemoteActorRef ( ActorRef < Message > actor ) {
 + protected RemoteActorRef ( ActorRef < Message > actor ) {
 super ( actor . getName ( ) , ( ( ActorRefImpl ) actor ) . mailbox ( ) ) ;
 this . actor = ( ActorRefImpl ) actor ;
 }

Made RemoteActorRef constructor protected


<nb> public class ParserATNSimulator < Symbol extends Token > extends ATNSimulator {

 if ( ambigAlts . isNil ( ) ) return null ;

 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 return ambigAlts ;
 }

add Sam s getConflictingAlts potential bug fix as comment


<nb> public class PGraphics extends PImage implements PConstants {
 }

 + protected void flush ( ) {
 + SINGLE
 + }
 +
 +
 COMMENT
 COMMENT
 COMMENT
 <nb> public class PGraphics extends PImage implements PConstants {

 public void endRaw ( ) {
 if ( raw != null ) {
 - SINGLE
 - SINGLE
 - SINGLE
 + SINGLE
 + raw . flush ( ) ;

 SINGLE
 SINGLE


<nb> public class PersistenceRefProcessor extends AbstractDeploymentDescriptorBinding
 } else {
 throw new RuntimeException ( STRING0 ) ;
 }
 + bindingConfigurations . add ( bindingConfiguration ) ;
 }
 }
 return bindingConfigurations ;


<nb> class ExitTransitionCoordinator extends ActivityTransitionCoordinator {
 }

 private void startExitTransition ( ) {
 - Transition sharedElementTransition = mSharedElements . isEmpty ( )
 - ? null : getSharedElementTransition ( ) ;
 - if ( sharedElementTransition == null ) {
 - sharedElementTransitionComplete ( ) ;
 - }
 - Transition transition = mergeTransitions ( sharedElementTransition ,
 - getExitTransition ( ) ) ;
 + Transition transition = getExitTransition ( ) ;
 if ( transition != null ) {
 TransitionManager . beginDelayedTransition ( getDecor ( ) , transition ) ;
 setViewVisibility ( mTransitioningViews , View . INVISIBLE ) ;

Don t do a shared element exit transition twice


<nb> public class ProxyStreamServlet extends HttpServlet {
 if ( origin == null ) {
 response . setStatus ( NUMBER0 ) ;
 response . getWriter ( ) . println ( STRING0 ) ;
 + return ;
 }
 origin = origin . trim ( ) ;

Avoid NPE when origin parameter not present


<nb> public abstract class InputHandler extends KeyAdapter
 textArea . getToolkit ( ) . beep ( ) ;
 }
 }
 +
 + public boolean hasBracketsAndQuotes ( String str ) {
 + for ( String bracketsAndQuotes : bracketsAndQuotesMap . keySet ( ) )
 + {
 + if ( str . equals ( bracketsAndQuotes ) )
 + return true ;
 + }
 + return false ;
 + }
 }


<nb> public class Glsl100ShaderGenerator extends ShaderGenerator {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 private void fixInPositionType ( ShaderNodeVariable var ) {


<nb> public class GitBlit implements ServletContextListener {
 @ override
 public void contextInitialized ( ServletContextEvent contextEvent ) {
 servletContext = contextEvent . getServletContext ( ) ;
 - settingsModel = loadSettingModels ( ) ;
 if ( settings == null ) {
 SINGLE
 ServletContext context = contextEvent . getServletContext ( ) ;
 <nb> public class GitBlit implements ServletContextListener {
 }
 }
 }
 -
 +
 + settingsModel = loadSettingModels ( ) ;
 serverStatus . servletContainer = servletContext . getServerInfo ( ) ;
 }

Reordered settings model loading to avoid WAR null pointer


<nb> import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

Remove JacksonStdImpl from RawSerializer


<nb> public class MavenProjectsStructure extends SimpleTreeStructure {

 private String wrappedText ( MavenProjectProblem each ) {
 String text = StringUtil . replace ( each . getDescription ( ) , new String [ ] { STRING0 , STRING1 } , new String [ ] { STRING2 , STRING3 } ) ;
 - StringBuffer result = new StringBuffer ( ) ;
 + StringBuilder result = new StringBuilder ( ) ;
 int count = NUMBER0 ;
 for ( int i = NUMBER0 ; i < text . length ( ) ; i ++ ) {
 char ch = text . charAt ( i ) ;


<nb> public class TestSubscriber < T > extends Subscriber < T > {
 public static < T > TestSubscriber < T > create ( Observer < T > delegate , long initialRequest ) {
 return new TestSubscriber < T > ( delegate , initialRequest ) ;
 }
 -
 +
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class TestSubscriber < T > extends Subscriber < T > {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class JdbcPreserveHeadersTest extends CamelTestSupport {
 public void testPreserveHeaders ( ) throws Exception {
 MockEndpoint mock = getMockEndpoint ( STRING0 ) ;
 mock . expectedMessageCount ( NUMBER0 ) ;
 - mock . expectedHeaderReceived ( STRING1 , NUMBER0 ) ;
 - mock . expectedHeaderReceived ( STRING2 , NUMBER1 ) ;
 + mock . expectedHeaderReceived ( STRING3 , STRING4 ) ;
 mock . assertIsSatisfied ( ) ;
 }

 <nb> public class JdbcPreserveHeadersTest extends CamelTestSupport {
 from ( STRING5 ) .
 process ( new Processor ( ) {
 public void process ( Exchange e ) throws Exception {
 - e . getIn ( ) . setHeader ( STRING1 , NUMBER0 ) ;
 - e . getIn ( ) . setHeader ( STRING2 , NUMBER1 ) ;
 + e . getIn ( ) . setHeader ( STRING3 , STRING4 ) ;
 }
 } ) .
 setBody ( constant ( STRING6 ) ) .


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 -
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public final class ZWaveNetworkMonitor implements ZWaveEventListener {
 SINGLE
 SINGLE
 SINGLE
 + SINGLE
 + SINGLE
 + healing . node . resetResendCount ( ) ;

 case PING :
 if ( healing . nodeId != zController . getOwnNodeId ( ) ) {

Reset resend count before starting heal sets time


<nb> public class EditorFragment extends EditorFragmentAbstract implements View . OnCli
 mWebView . post ( new Runnable ( ) {
 @ override
 public void run ( ) {
 - mWebView . execJavaScriptFromString ( STRING0 ) ;
 + mWebView . execJavaScriptFromString ( STRING1 +
 + STRING2 ) ;
 }
 } ) ;
 }


<nb> import NAMESPACE ;

 import NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;

 + @ ignore ( STRING0 )
 @ runwith ( MavenJUnitTestRunner . class )
 - @ mavenversions ( { STRING1 } )
 + @ mavenversions ( { STRING2 } )
 public class ApkWithProvidedJarBuildExampleIT {

 @ rule


<nb> public class WebdavClient extends HttpClient {
 return result ;
 }

 - public int tryToLogin ( ) {
 - int r = NUMBER0 ;
 - HeadMethod head = new HeadMethod ( mUri . toString ( ) ) ;
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public int tryToLogin ( Uri uri , String username , String password ) {
 + int returnCode = NUMBER0 ;
 + setCredentials ( username , password ) ;
 + HeadMethod head = new HeadMethod ( uri . toString ( ) ) ;
 try {
 - r = executeMethod ( head ) ;
 + returnCode = executeMethod ( head ) ;
 } catch ( Exception e ) {
 Log . e ( TAG , STRING0 + e . getMessage ( ) ) ;
 }
 - return r ;
 + return returnCode ;
 }

 public boolean createDirectory ( String path ) {


<nb> public class HardcodedContracts {
 return Collections . singletonList ( new MethodContract ( constraints , THROW_EXCEPTION ) ) ;
 }
 }
 + else if ( STRING0 . equals ( className ) || STRING1 . equals ( className ) ) {
 + if ( STRING2 . equals ( methodName ) && paramCount > NUMBER0 ) {
 + MethodContract . ValueConstraint [ ] constraints = createConstraintArray ( paramCount ) ;
 + constraints [ NUMBER0 ] = NULL_VALUE ;
 + return Collections . singletonList ( new MethodContract ( constraints , THROW_EXCEPTION ) ) ;
 + }
 + }
 else if ( STRING3 . equals ( className ) ||
 STRING4 . equals ( className ) ||
 STRING5 . equals ( className ) ||

add hardcoded contracts for apache Validate notNull


<nb> public abstract class BaseOrmLiteLoader < T , ID > extends AsyncTaskLoader < List < T > >
 public BaseOrmLiteLoader ( Context context , Dao < T , ID > dao ) {
 super ( context ) ;
 this . dao = dao ;
 - dao . registerObserver ( this ) ;
 }

 @ override
 <nb> public abstract class BaseOrmLiteLoader < T , ID > extends AsyncTaskLoader < List < T > >
 if ( takeContentChanged ( ) || cachedResults == null ) {
 forceLoad ( ) ;
 }
 + SINGLE
 + dao . registerObserver ( this ) ;
 }

 COMMENT


<nb> public class SimpleExprGenerator extends Generator < ExprStmtToken > {
 param = analyzer . generator ( SimpleExprGenerator . class )
 . getToken ( nextToken ( iterator ) , iterator , true , BraceExprToken . Kind . SIMPLE ) ;

 - if ( param != null )
 + if ( param != null ) {
 parameters . add ( param ) ;
 + if ( param . isSingle ( ) ) {
 + if ( param . getTokens ( ) . get ( NUMBER0 ) instanceof VariableExprToken ) {
 + if ( analyzer . getFunction ( ) != null )
 + analyzer . getFunction ( ) . getPassedLocal ( ) . add ( ( VariableExprToken ) param . getTokens ( ) . get ( NUMBER0 ) ) ;
 + }
 + }
 + }

 } while ( param != null ) ;
 nextToken ( iterator ) ;


<nb> public class VideoEditorProfile
 case MediaProperties . VCODEC_H263 :
 case MediaProperties . VCODEC_H264 :
 case MediaProperties . VCODEC_MPEG4 :
 - level = native_get_videoeditor_export_profile ( vidCodec ) ;
 + level = native_get_videoeditor_export_level ( vidCodec ) ;
 break ;
 default :
 throw new IllegalArgumentException ( STRING0 + vidCodec ) ;

Can t export a movie Error returned from OMX API in ducati


<nb> public class MapActivityActions implements DialogProvider {
 if ( onShow != null ) {
 onShow . onClick ( v ) ;
 }
 - targetPointsHelper . setSingleDestination ( location . getLatitude ( ) , location . getLongitude ( ) , name ) ;
 + SINGLE
 + getMyApplication ( ) . getSettings ( ) . setPointToNavigate ( latitude , longitude , true , name ) ;
 + targetPointsHelper . updatePointsFromSettings ( ) ;
 + SINGLE
 + if ( ! routingHelper . isRouteBeingCalculated ( ) && ! routingHelper . isRouteCalculated ( ) ) {
 + getDirections ( null , new LatLon ( latitude , longitude ) , true ) ;
 MapActivity . launchMapActivityMoveToTop ( activity ) ;
 qa . dismiss ( ) ;
 }

do not delete waypoints when chosing directions


<nb> public class AudioTrack
 }

 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class AudioTrack

 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class AudioTrack
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public void setPlaybackParams ( @ nonnull PlaybackParams params ) {


<nb> public class CassandraDaemon

 daemon . start ( ) ;
 }
 - catch ( Exception e )
 + catch ( Throwable e )
 {
 String msg = STRING0 ;
 logger . error ( msg , e ) ;

catch Throwable on startup rather than Exception


<nb> public class GroupExpression < T > extends SimpleOperation < T > {
 }
 }

 + @ override
 + public int hashCode ( ) {
 + return super . hashCode ( ) ;
 + }
 +
 }


<nb> public final class Actions {
 }

 @ suppresswarnings ( STRING0 )
 - public static final < T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > EmptyAction < T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > empty ( ) {
 + public static < T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > EmptyAction < T0 , T1 , T2 , T3 , T4 , T5 , T6 , T7 , T8 > empty ( ) {
 return EMPTY_ACTION ;
 }

Remove redundant final modifier from static method in Actions


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;


<nb> public abstract class AbstractAutowireCapableBeanFactory extends AbstractBeanFac
 SINGLE
 Class beanClass = resolveBeanClass ( mbd , beanName ) ;

 + if ( beanClass != null && ! Modifier . isPublic ( beanClass . getModifiers ( ) ) && ! mbd . isNonPublicAccessAllowed ( ) ) {
 + throw new BeanCreationException ( mbd . getResourceDescription ( ) , beanName ,
 + STRING0 + beanClass . getName ( ) ) ;
 + }
 +
 if ( mbd . getFactoryMethodName ( ) != null ) {
 return instantiateUsingFactoryMethod ( beanName , mbd , args ) ;
 }

prevent non public access to bean class as well if demanded


<nb> package NAMESPACE ;
 public interface CUIEvent {

 SINGLE
 - public static final int MIN_PROTOCOL = NUMBER0 , CURRENT_PROTOCOL = NUMBER0 ;
 + public static final int MIN_PROTOCOL = - NUMBER1 , CURRENT_PROTOCOL = NUMBER0 ; SINGLE

 public String getTypeId ( ) ;

Updated the min protocol version so people don t get warnings every time they join servers


<nb> public class GeocodingUtilities {

 private static final Log log = PlatformUtil . getLog ( GeocodingUtilities . class ) ;

 + SINGLE
 public static final float THRESHOLD_MULTIPLIER_SKIP_STREETS_AFTER = NUMBER0 ;
 - public static final float STOP_SEARCHING_STREET_WITH_MULTIPLIER_RADIUS = NUMBER1 ;
 + public static final float STOP_SEARCHING_STREET_WITH_MULTIPLIER_RADIUS = NUMBER2 ;
 public static final float STOP_SEARCHING_STREET_WITHOUT_MULTIPLIER_RADIUS = NUMBER3 ;

 public static final int DISTANCE_STREET_NAME_PROXIMITY_BY_NAME = NUMBER4 ;

Slightly change coefficient to search more streets


<nb> public abstract class Http2ClientStream extends AbstractClientStream < Integer > {
 if ( transportError != null ) {
 SINGLE
 SINGLE
 - transportError = transportError . withDescription ( STRING0 + headers . toString ( ) ) ;
 + transportError = transportError . augmentDescription ( STRING0 + headers . toString ( ) ) ;
 errorCharset = extractCharset ( headers ) ;
 } else {
 stripTransportDetails ( headers ) ;

Don t overwrite error message if bad headers


<nb> public abstract class Script extends GroovyObjectSupport {
 GroovyShell shell = new GroovyShell ( binding ) ;
 return shell . evaluate ( file ) ;
 }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + public void run ( File file , String [ ] arguments ) throws SyntaxException , IOException {
 + GroovyShell shell = new GroovyShell ( binding ) ;
 + shell . run ( file , arguments ) ;
 + }
 }


<nb> public final class Settings {
 MOVED_TO_GLOBAL . add ( Settings . Global . TETHER_SUPPORTED ) ;
 MOVED_TO_GLOBAL . add ( Settings . Global . USB_MASS_STORAGE_ENABLED ) ;
 MOVED_TO_GLOBAL . add ( Settings . Global . USE_GOOGLE_MAIL ) ;
 - MOVED_TO_GLOBAL . add ( Settings . Global . WEB_AUTOFILL_QUERY_URL ) ;
 MOVED_TO_GLOBAL . add ( Settings . Global . WIFI_COUNTRY_CODE ) ;
 MOVED_TO_GLOBAL . add ( Settings . Global . WIFI_FRAMEWORK_SCAN_INTERVAL_MS ) ;
 MOVED_TO_GLOBAL . add ( Settings . Global . WIFI_FREQUENCY_BAND ) ;
 <nb> public final class Settings {
 COMMENT
 public static final String USE_GOOGLE_MAIL = STRING0 ;

 - COMMENT
 - COMMENT
 - public static final String WEB_AUTOFILL_QUERY_URL =
 - STRING1 ;
 -
 COMMENT
 COMMENT
 COMMENT


<nb> public class InsecureCipherMode extends BugChecker implements MethodInvocationTr

 SINGLE
 SINGLE
 - if ( transformation . matches ( STRING0 ) || transformation . matches ( STRING1 ) ) {
 + SINGLE
 + if ( transformation . matches ( STRING0 ) || transformation . matches ( STRING1 )
 + || transformation . matches ( STRING2 ) ) {
 return Description . NO_MATCH ;
 }

 <nb> public class InsecureCipherModeNegativeCases {
 }
 }

 + static Cipher rc4CipherJsch ;
 + static {
 + try {
 + rc4CipherJsch = Cipher . getInstance ( STRING3 , STRING4 ) ;
 + } catch ( NoSuchAlgorithmException e ) {
 + SINGLE
 + } catch ( NoSuchPaddingException e ) {
 + SINGLE
 + } catch ( NoSuchProviderException e ) {
 + SINGLE
 + }
 + }
 +
 static Cipher arcfourCipherSunJce ;
 static {
 try {


<nb> public class MainActivity extends Activity implements OnClickListener {
 }
 } ) ;

 + webView . send ( STRING0 ) ;
 +
 }

 public void pickFile ( ) {


<nb> public abstract class AbstractNewProjectDialog extends DialogWrapper {
 ListScrollingUtil . ensureSelectionExists ( myList ) ;
 }
 } ) ;
 - ListScrollingUtil . ensureSelectionExists ( myList ) ;
 return component ;
 }

prevent list size toggle after first selection


<nb> public class EventReceiverFirehoseTestClient
 SINGLE
 SINGLE
 int totalEventsPosted = NUMBER0 ;
 + int expectedEventsPosted = NUMBER0 ;
 while ( ( s = reader . readLine ( ) ) != null ) {
 events . add (
 ( Map < String , Object > ) this . jsonMapper . readValue (
 <nb> public class EventReceiverFirehoseTestClient
 : SmileMediaTypes . APPLICATION_JACKSON_SMILE ;
 totalEventsPosted += postEvents ( events , mapper , mediaType ) ;
 ;
 + expectedEventsPosted += events . size ( ) ;
 events = new ArrayList < > ( ) ;
 }

 - if ( totalEventsPosted != events . size ( ) ) {
 + if ( totalEventsPosted != expectedEventsPosted ) {
 throw new ISE ( STRING0 , events . size ( ) , totalEventsPosted ) ;
 }
 return totalEventsPosted ;


<nb> public final class ZWaveActivator implements BundleActivator {
 COMMENT
 public void start ( BundleContext bc ) throws Exception {
 context = bc ;
 - logger . debug ( STRING0 ) ;
 + logger . debug ( STRING1 , ZWaveActivator . getVersion ( ) ) ;
 }

 COMMENT
 <nb> public final class ZWaveActivator implements BundleActivator {
 COMMENT
 public void stop ( BundleContext bc ) throws Exception {
 context = null ;
 - logger . debug ( STRING2 ) ;
 + logger . debug ( STRING3 ) ;
 }

 COMMENT


<nb> public class HostsResource {
 }

 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 @ delete
 @ path ( STRING0 )


<nb> class ConnectionState implements Watcher , Closeable
 finally
 {
 isConnected . set ( false ) ;
 + lost . set ( false ) ;
 }
 }

 <nb> class ConnectionState implements Watcher , Closeable
 if ( newIsConnected != wasConnected )
 {
 isConnected . set ( newIsConnected ) ;
 + if ( newIsConnected )
 + {
 + lost . set ( false ) ;
 + }
 connectionStartMs = System . currentTimeMillis ( ) ;
 }
 }

If connection comes alive clear lost flag


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public abstract class RemoteExporter extends RemotingSupport {
 }
 }
 proxyFactory . setTarget ( getService ( ) ) ;
 + proxyFactory . setOpaque ( true ) ;
 return proxyFactory . getProxy ( getBeanClassLoader ( ) ) ;
 }

RemoteExporter uses an opaque proxy for serviceInterface exposure no AOP interfaces exposed


<nb> public class RecentApplicationsDialog extends Dialog implements OnClickListener
 if ( b == v ) {
 SINGLE
 Intent intent = ( Intent ) b . getTag ( ) ;
 - intent . addFlags ( Intent . FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY ) ;
 - getContext ( ) . startActivity ( intent ) ;
 + if ( intent != null ) {
 + intent . addFlags ( Intent . FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY ) ;
 + getContext ( ) . startActivity ( intent ) ;
 + }
 + break ;
 }
 }
 dismiss ( ) ;


<nb> public class InspectionApplication {
 PsiClass psiObjectClass = PsiManager . getInstance ( myProject ) . findClass ( STRING0 ) ;
 if ( psiObjectClass == null ) {
 logError ( InspectionsBundle . message ( STRING1 ) ) ;
 + System . exit ( NUMBER0 ) ;
 return ;
 }
 inspectionContext . launchInspectionsOffline ( scope , myOutPath , myRunWithEditorSettings , im ) ;

fail offline inspections if no jdk found


<nb> public class ClientConfig {
 if ( configPatternKey != null ) {
 return configPatterns . get ( configPatternKey ) ;
 }
 - LOGGER . warning ( STRING0 + itemName + STRING1 ) ;
 + if ( ! STRING2 . equals ( itemName ) ) {
 + LOGGER . warning ( STRING0 + itemName + STRING1 ) ;
 + }
 return null ;
 }
 }
 <nb> public class Config {
 if ( configPatternKey != null ) {
 return configPatterns . get ( configPatternKey ) ;
 }
 - LOGGER . warning ( STRING0 + itemName + STRING1 ) ;
 + if ( ! STRING2 . equals ( itemName ) ) {
 + LOGGER . warning ( STRING0 + itemName + STRING1 ) ;
 + }
 return null ;
 }

Don t show no configuration found default is used warning for default configuration


<nb> public class IdeRepaintManager extends RepaintManager {
 . invoke ( env , displayChangeHack ) ;
 }
 } catch ( Throwable t ) {
 - LOG . error ( STRING0 , t ) ;
 + if ( ! ( t instanceof HeadlessException ) ) LOG . error ( STRING0 , t ) ;
 }
 }


<nb> public class FloatingToolbar extends LinearLayoutCompat implements View . OnClickL
 }

 static float dpToPixels ( Context context , int dp ) {
 - return context . getResources ( ) . getDisplayMetrics ( ) . densityDpi
 - / DisplayMetrics . DENSITY_DEFAULT * dp ;
 + return dp * context . getResources ( ) . getDisplayMetrics ( ) . density ;
 }

 }


<nb> public class PluginsListTest {
 FileUtils . writeStringToFile ( externalPlugin2 , externalPlugin2 . getName ( ) ) ;
 FileUtils . writeStringToFile ( externalPlugin3 , externalPlugin3 . getName ( ) ) ;

 - when ( systemEnvironment . get ( PLUGIN_GO_PROVIDED_PATH ) ) . thenReturn ( bundledPluginsDir . getAbsolutePath ( ) ) ;
 - when ( systemEnvironment . get ( PLUGIN_EXTERNAL_PROVIDED_PATH ) ) . thenReturn ( externalPluginsDir . getAbsolutePath ( ) ) ;
 + when ( systemEnvironment . getBundledPluginAbsolutePath ( ) ) . thenReturn ( bundledPluginsDir . getAbsolutePath ( ) ) ;
 + when ( systemEnvironment . getExternalPluginAbsolutePath ( ) ) . thenReturn ( externalPluginsDir . getAbsolutePath ( ) ) ;

 pluginsList = new PluginsList ( systemEnvironment ) ;
 }


<nb> public class Resources {
 private final long mTheme ;

 SINGLE
 - COMMENT
 + COMMENT
 return mTheme ;
 }
 }

Fix incorrect merge conflict to klp modular dev plus aosp


<nb> public class UndertowEndpoint extends DefaultEndpoint implements HeaderFilterStr
 private Boolean tcpNoDelay = Boolean . TRUE ;
 @ uripath ( label = STRING0 , defaultValue = STRING1 )
 private Boolean reuseAddresses = Boolean . TRUE ;
 - @ uriparam ( label = STRING0 )
 + @ uriparam ( label = STRING0 , prefix = STRING2 , multiValue = true )
 private Map < String , Object > options ;

 public UndertowEndpoint ( String uri , UndertowComponent component ) throws URISyntaxException {


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public class BasicLookupStrategyTests {
 + SINGLE
 +
 private static JdbcTemplate jdbcTemplate ;

 private LookupStrategy strategy ;


<nb> public abstract class AbstractTestQueries
 STRING0 ) ;

 assertQuery ( STRING1 +
 + STRING2 +
 + STRING3 +
 + STRING4 +
 + STRING5 +
 + STRING6 +
 + STRING7 ,
 + STRING8 ) ;
 +
 + assertQuery ( STRING1 +
 + STRING9 +
 + STRING10 +
 + STRING4 +
 + STRING11 +
 + STRING12 +
 + STRING13 ,
 + STRING14 ) ;
 +
 + assertQuery ( STRING1 +
 STRING15 +
 STRING16 +
 STRING17 +


<nb> public class ColibriIQProvider
 new DefaultPacketExtensionProvider < PayloadTypePacketExtension > (
 PayloadTypePacketExtension . class ) ) ;
 providerManager . addExtensionProvider (
 + RtcpFbPacketExtension . ELEMENT_NAME ,
 + RtcpFbPacketExtension . NAMESPACE ,
 + new DefaultPacketExtensionProvider < RtcpFbPacketExtension > (
 + RtcpFbPacketExtension . class ) ) ;
 + providerManager . addExtensionProvider (
 RTPHdrExtPacketExtension . ELEMENT_NAME ,
 ColibriConferenceIQ . NAMESPACE ,
 new DefaultPacketExtensionProvider < RTPHdrExtPacketExtension > (
 <nb> public class ColibriIQProvider
 peName = name ;
 peNamespace = namespace ;
 }
 + else if ( RtcpFbPacketExtension . ELEMENT_NAME . equals (
 + name )
 + && RtcpFbPacketExtension . NAMESPACE
 + . equals ( parser . getNamespace ( ) ) )
 + {
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + peName = name ;
 + peNamespace = namespace ;
 + }
 else if ( RTPHdrExtPacketExtension . ELEMENT_NAME . equals (
 name ) )
 {

Adds support for a payload type element in the ColibriIQ


<nb> public class Step extends TexturedMaterial {
 textures . add ( Material . COBBLESTONE ) ;
 textures . add ( Material . BRICK ) ;
 textures . add ( Material . SMOOTH_BRICK ) ;
 + textures . add ( Material . NETHER_BRICK ) ;
 + textures . add ( Material . QUARTZ_BLOCK ) ;
 }

 public Step ( ) {


<nb>
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 package NAMESPACE ;

 import NAMESPACE ;
 <nb> public class AutobahnWebSocketServer {
 }
 }
 write ( channel , ws , buffer ) ;
 -
 } catch ( IOException e ) {
 e . printStackTrace ( ) ;
 IoUtils . safeClose ( channel ) ;


<nb> public class XmppConnectionService extends Service implements OnPhoneContactsLoa
 try {
 jid = Jid . fromString ( phoneContact . getString ( STRING0 ) ) ;
 } catch ( final InvalidJidException e ) {
 - break ;
 + continue ;
 }
 - final Contact contact = account . getRoster ( )
 - . getContact ( jid ) ;
 + final Contact contact = account . getRoster ( ) . getContact ( jid ) ;
 String systemAccount = phoneContact . getInt ( STRING1 )
 + STRING2
 + phoneContact . getString ( STRING3 ) ;


<nb> public class PointSet implements Serializable {
 jp . skipChildren ( ) ; SINGLE
 }
 }
 - } catch ( Exception ex ) {
 + } catch ( Exception ex ) {
 LOG . error ( STRING0 ) ;
 return null ;
 }
 <nb> public class PointSet implements Serializable {
 String attrId = ad . getKey ( ) ;
 Integer attrVal = ad . getValue ( ) ;

 + this . getOrCreateCategoryForId ( attrId ) ;
 this . categories . get ( attrId ) [ index ] = attrVal ;

 +
 }
 }

make sure ot create space for a category before putting data into it


<nb> public class Intents {
 return new Intent ( ACTION_VIEW_EPISODE )
 . putExtra ( EXTRA_SHOW_TVDBID , showTvdbId )
 . putExtra ( EXTRA_EPISODE_TVDBID , episodeTvdbId )
 - . addFlags ( Intent . FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET )
 - . addFlags ( Intent . FLAG_ACTIVITY_NEW_TASK ) ;
 + . addFlags ( Intent . FLAG_ACTIVITY_NEW_TASK )
 + . addFlags ( Intent . FLAG_ACTIVITY_CLEAR_TASK )
 + . addFlags ( Intent . FLAG_ACTIVITY_TASK_ON_HOME ) ;
 }

 COMMENT
 <nb> public class Intents {
 public static Intent buildViewShowIntent ( int showTvdbId ) {
 return new Intent ( ACTION_VIEW_SHOW )
 . putExtra ( EXTRA_SHOW_TVDBID , showTvdbId )
 - . addFlags ( Intent . FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET )
 - . addFlags ( Intent . FLAG_ACTIVITY_NEW_TASK ) ;
 + . addFlags ( Intent . FLAG_ACTIVITY_NEW_TASK )
 + . addFlags ( Intent . FLAG_ACTIVITY_CLEAR_TASK )
 + . addFlags ( Intent . FLAG_ACTIVITY_TASK_ON_HOME ) ;
 }
 }

Use correct intent flags when viewing episodes or shows


<nb> public class FragmentLayoutSupport extends FragmentActivity {
 SINGLE
 SINGLE
 FragmentTransaction ft = getFragmentManager ( ) . beginTransaction ( ) ;
 - ft . replace ( R . id . details , details ) ;
 + if ( index == NUMBER0 ) {
 + ft . replace ( R . id . details , details ) ;
 + } else {
 + ft . replace ( R . id . a_item , details ) ;
 + }
 ft . setTransition ( FragmentTransaction . TRANSIT_FRAGMENT_FADE ) ;
 ft . commit ( ) ;
 }


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 @ target ( ElementType . TYPE )
 @ retention ( RetentionPolicy . SOURCE )

and added some more javadoc to point at the new main package variant


<nb> public abstract class TransportBaseSQLAction < TRequest extends SQLBaseRequest , TR
 } else {
 processNonData ( analysis , request , listener ) ;
 }
 - } catch ( Exception e ) {
 + } catch ( Throwable e ) {
 logger . debug ( STRING0 , e ) ;
 sendResponse ( listener , buildSQLActionException ( e ) ) ;
 }
 <nb> public abstract class TransportBaseSQLAction < TRequest extends SQLBaseRequest , TR
 request . includeTypesOnResponse ( )
 ) ;
 }
 - } catch ( Exception e ) {
 + } catch ( Throwable e ) {
 sendResponse ( listener , e ) ;
 return ;
 }


<nb> public class MediaPlayerStressTest extends ActivityInstrumentationTestCase2 < Medi

 } catch ( Exception e ) {
 Log . v ( TAG , e . toString ( ) ) ;
 + assertTrue ( STRING0 , false ) ;
 }
 }

 <nb> public class MediaPlayerStressTest extends ActivityInstrumentationTestCase2 < Medi

 } catch ( Exception e ) {
 Log . v ( TAG , e . toString ( ) ) ;
 + assertTrue ( STRING1 , false ) ;
 }
 }
 }

Add the checking for mediaplayer stress test


<nb> public class Operation {
 private List < Scheme > schemes ;
 private List < String > consumes ;
 private List < String > produces ;
 - private List < Parameter > parameters ;
 + private List < Parameter > parameters = new ArrayList < Parameter > ( ) ;
 private Map < String , Response > responses ;
 private List < Map < String , List < String > > > security ;
 private String example ;

added default array for parameters as they are required per the spec


<nb> public class GraphPath {
 Edge edge = state . getBackEdge ( ) ;
 EdgeNarrative narrative = state . getBackEdgeNarrative ( ) ;
 StateEditor editor = root . edit ( edge , narrative ) ;
 - editor . setTime ( next . getTime ( ) ) ;
 - editor . setFromState ( state ) ;
 + editor . incrementTimeMsec ( state . getAbsTimeDeltaMsec ( ) ) ;
 + editor . incrementWeight ( state . getWeightDelta ( ) ) ;
 root = editor . makeState ( ) ;
 state = state . getBackState ( ) ;
 }

Change GraphPath reverse to accumulate weight


<nb> public class PipelineStore extends AbstractLifecycleComponent {
 return factory . create ( id , config , processorFactoryRegistry ) ;
 }

 - void updatePipelines ( ) throws IOException {
 + synchronized void updatePipelines ( ) throws IOException {
 SINGLE
 SINGLE

made updatePipelines to not make it prone to race conditions


<nb> public @ interface TestPropertySource {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Fix broken Javadoc link in TestPropertySource


<nb> public final class UniqueId implements UniqueIdInterface {
 results . put ( new String ( column . qualifier ( ) , CHARSET ) ,
 Bytes . getLong ( column . value ( ) ) ) ;
 }
 +
 + SINGLE
 + SINGLE
 + for ( final byte [ ] kind : kinds ) {
 + if ( results . get ( new String ( kind , CHARSET ) ) == null ) {
 + results . put ( new String ( kind , CHARSET ) , NUMBER0 L ) ;
 + }
 + }
 return results ;
 }

Fix exception raised by missing map entries when fetching STATs for a TSD with


<nb> public class UriBeaconDiscoveryService extends Service
 private static final int NON_LOLLIPOP_NOTIFICATION_TITLE_COLOR = Color . parseColor ( STRING0 ) ;
 private static final int NON_LOLLIPOP_NOTIFICATION_URL_COLOR = Color . parseColor ( STRING1 ) ;
 private static final int NON_LOLLIPOP_NOTIFICATION_SNIPPET_COLOR = Color . parseColor ( STRING1 ) ;
 - private static final int NOTIFICATION_PRIORITY = NotificationCompat . PRIORITY_LOW ;
 + private static final int NOTIFICATION_PRIORITY = NotificationCompat . PRIORITY_MIN ;
 private static final int NOTIFICATION_VISIBILITY = NotificationCompat . VISIBILITY_PUBLIC ;
 private static final long NOTIFICATION_UPDATE_GATE_DURATION = NUMBER0 ;
 private boolean mCanUpdateNotifications = false ;

android Change notify priority from low to min


<nb> public class AccountActivity extends ThemeableActivity {
 public void onClick ( View v ) {

 checkUserChanged ( ) ;
 +
 + if ( mUseTor . isChecked ( ) )
 + {
 + OrbotHelper oh = new OrbotHelper ( AccountActivity . this ) ;
 + if ( ! oh . isOrbotRunning ( ) )
 + {
 + oh . requestOrbotStart ( AccountActivity . this ) ;
 + return ;
 + }
 + }
 +

 final String pass = mEditPass . getText ( ) . toString ( ) ;
 final boolean rememberPass = mRememberPass . isChecked ( ) ;
 <nb> public class AccountActivity extends ThemeableActivity {
 isSignedIn = true ;
 }
 updateWidgetState ( ) ;
 +
 }
 } ) ;

 <nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

uses OrbotHelper to check if Tor is running


<nb> public class View implements Drawable . Callback2 , KeyEvent . Callback , Accessibilit
 if ( mParent instanceof ViewGroup ) {
 ( ( ViewGroup ) mParent ) . onChildVisibilityChanged ( this , ( flags & VISIBILITY_MASK ) ) ;
 ( ( View ) mParent ) . invalidate ( true ) ;
 + } else if ( mParent != null ) {
 + mParent . invalidateChild ( this , null ) ;
 }
 dispatchVisibilityChanged ( this , ( flags & VISIBILITY_MASK ) ) ;
 }

Fixed bug with invalidation in top level Views


<nb> class JspReader {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public JspReader ( JspCompilationContext ctxt ,
 String fname ,


<nb> class LibraryPath {
 int n0 = path . indexOf ( STRING0 ) ;

 int n1 = - NUMBER0 ;
 + COMMENT
 if ( Platform . isWindows ( ) ) {
 n1 = path . indexOf ( STRING1 ) ; SINGLE
 SINGLE
 <nb> class LibraryPath {
 } else if ( Platform . isMac ( ) ) {
 SINGLE
 SINGLE
 - n1 = path . indexOf ( STRING2 ) ;
 - } else if ( Platform . isLinux ( ) ) {
 + n1 = path . indexOf ( STRING2 ) ;
 + COMMENT
 +
 +
 + if ( Platform . isLinux ( ) ) {
 return STRING3 ;
 + } else {
 + n1 = path . indexOf ( STRING2 ) ;
 + if ( Platform . isWindows ( ) ) {
 + SINGLE
 + SINGLE
 + n0 ++ ;
 + }
 }

 if ( ( - NUMBER0 < n0 ) && ( - NUMBER0 < n1 ) ) {

Using new location of video library files in exported app


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 +
 import NAMESPACE ;
 import NAMESPACE ;

 <nb> public class SlidingUpPanelLayout extends ViewGroup {
 COMMENT
 COMMENT
 public boolean expandPanel ( float mSlideOffset ) {
 - if ( mSlideState == SlideState . EXPANDED ) return false ;
 + if ( mSlideableView == null || mSlideState == SlideState . EXPANDED ) return false ;
 mSlideableView . setVisibility ( View . VISIBLE ) ;
 return expandPanel ( mSlideableView , NUMBER0 , mSlideOffset ) ;
 }
 <nb> public class SlidingUpPanelLayout extends ViewGroup {
 }

 public void showPanel ( ) {
 - if ( mSlideState != SlideState . HIDDEN ) return ;
 + if ( mSlideableView == null || mSlideState != SlideState . HIDDEN ) return ;
 mSlideableView . setVisibility ( View . VISIBLE ) ;
 requestLayout ( ) ;
 smoothSlideTo ( NUMBER0 , NUMBER0 ) ;


<nb> public class UnsharableCodecsConflicts2Test extends BaseNettyTest {

 @ override
 public void process ( Exchange exchange ) throws Exception {
 - exchange . getOut ( ) . setBody (
 - new String ( ( ( BigEndianHeapChannelBuffer ) exchange . getIn ( )
 - . getBody ( ) ) . array ( ) ) ) ;
 + exchange . getOut ( ) . setBody ( exchange . getIn ( ) . getBody ( String . class ) ) ;
 }
 }
 }
 <nb> public class UnsharableCodecsConflictsTest extends BaseNettyTest {

 @ override
 public void process ( Exchange exchange ) throws Exception {
 - exchange . getOut ( ) . setBody ( new String ( ( ( BigEndianHeapChannelBuffer ) exchange . getIn ( ) . getBody ( ) ) . array ( ) ) ) ;
 + exchange . getOut ( ) . setBody ( exchange . getIn ( ) . getBody ( String . class ) ) ;
 }
 }

Using camel converter directly in the UnsharableCodecsConflicts Test


<nb> public class SimpleProjectRoot implements ProjectRoot , JDOMExternalizable {
 private boolean myInitialized = false ;
 @ nonnls private static final String ATTRIBUTE_URL = STRING0 ;

 - SimpleProjectRoot ( @ notnull VirtualFile file ) {
 + public SimpleProjectRoot ( @ notnull VirtualFile file ) {
 myFile = file ;
 myUrl = myFile . getUrl ( ) ;
 }

Fixed loosing egg interpreter path after reload


<nb> final public class MediaCodec {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public void configure (
 MediaFormat format ,

add undocumented exceptions to MediaCodec api


<nb> public class Solo {
 }

 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT

 <nb> class ViewFetcher {
 }

 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT

Clarified javadoc for getCurrentRadioButtons in Solo and ViewFetcher


<nb> public final class BlockLockManager {
 SINGLE
 if ( blockLock == null ) {
 blockLock = mLockPool . acquire ( NUMBER0 , TimeUnit . SECONDS ) ;
 - acquiredNewLock = true ;
 + acquiredNewLock = ( blockLock != null ) ;
 }
 }
 SINGLE


<nb> public class EditorPlace extends JComponent implements Disposable , ButtonlessScr

 int offset = DiffDivider . MERGE_SCROLL_DIVIDER_POLYGONS_OFFSET ;
 ArrayList < DividerPolygon > polygons =
 - DividerPolygon . createVisiblePolygons ( myMergePanel . getSecondEditingSide ( ) , FragmentSide . SIDE1 , offset ) ;
 + DividerPolygon . createVisiblePolygons ( myMergePanel . getSecondEditingSide ( true ) , FragmentSide . SIDE1 , offset ) ;
 for ( DividerPolygon polygon : polygons ) {
 int startY = polygon . getTopLeftY ( ) ;
 int endY = polygon . getBottomLeftY ( ) ;


<nb> final class WebViewCore {
 return view ;
 }

 + private void updateSurface ( ViewManager . ChildView childView , int x , int y ,
 + int width , int height ) {
 + childView . attachView ( x , y , width , height ) ;
 + }
 +
 private void destroySurface ( ViewManager . ChildView childView ) {
 childView . removeView ( ) ;
 }

Enabling plugin surfaces to update their position in the UI


<nb> public class MocoTemplateTest extends AbstractMocoHttpTest {
 }
 } ) ;
 }
 +
 + @ test
 + public void should_generate_response_with_many_extracted_variables ( ) throws Exception {
 + server . request ( by ( uri ( STRING0 ) ) ) . response ( template ( STRING1 , STRING2 , xpath ( STRING3 ) ) ) ;
 +
 + running ( server , new Runnable ( ) {
 + @ override
 + public void run ( ) throws Exception {
 + assertThat ( helper . postFile ( remoteUrl ( STRING0 ) , STRING4 ) , is ( STRING5 ) ) ;
 + }
 + } ) ;
 + }
 }


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - @ configurationproperties ( prefix = STRING0 )
 + @ configurationproperties ( prefix = STRING0 , ignoreUnknownFields = false )
 public class GroovyTemplateProperties {

 public static final String DEFAULT_PREFIX = STRING1 ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 <nb> public class GroovyTemplateView extends AbstractUrlBasedView {
 protected void renderMergedOutputModel ( Map < String , Object > model ,
 HttpServletRequest request , HttpServletResponse response ) throws Exception {
 applyContentType ( response ) ;
 + model . put ( STRING2 , new RequestContext ( request , response , getServletContext ( ) ,
 + model ) ) ;
 this . template . make ( model ) . writeTo ( new BufferedWriter ( response . getWriter ( ) ) ) ;
 }

Add RequestContext to Groovy template view model


<nb> public class WalletTool {
 default :
 throw new RuntimeException ( STRING0 ) ;
 }
 + Context . propagate ( new Context ( params ) ) ;
 +
 mode = modeFlag . value ( options ) ;

 SINGLE


<nb> public class AUC extends Iced {
 _cms [ i ] = new ConfusionMatrix2 ( NUMBER0 ) ;
 final int len = Math . min ( ca . _len , cp . _len ) ;
 for ( int i = NUMBER1 ; i < len ; i ++ ) {
 - assert ( ! ca . isNA0 ( i ) ) ; SINGLE
 + if ( ca . isNA0 ( i ) )
 + throw new UnsupportedOperationException ( STRING0 ) ;
 final int a = ( int ) ca . at80 ( i ) ; SINGLE
 assert ( a == NUMBER1 || a == NUMBER2 ) : STRING1 ;
 if ( cp . isNA0 ( i ) ) {


<nb>
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 +
 package NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb>
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 +
 package NAMESPACE ;

 import static NAMESPACE ;


<nb> import NAMESPACE ;
 public class Base {
 SINGLE
 SINGLE
 - static private final int REVISION = NUMBER0 ;
 + static private final int REVISION = NUMBER1 ;
 COMMENT
 - static private String VERSION_NAME = STRING0 ; SINGLE
 + static private String VERSION_NAME = STRING1 ; SINGLE
 COMMENT

 COMMENT