<nb> public class IconDeferrerImpl extends IconDeferrer {
 }

 public < T > Icon defer ( final Icon base , final T param , final Function < T , Icon > f ) {
 - synchronized ( LOCK ) {
 - if ( myEvaluationIsInProgress . get ( ) . booleanValue ( ) ) {
 - return f . fun ( param ) ;
 - }
 + if ( myEvaluationIsInProgress . get ( ) . booleanValue ( ) ) {
 + return f . fun ( param ) ;
 + }

 + synchronized ( LOCK ) {
 Icon result = myIconsCache . get ( param ) ;
 if ( result == null ) {
 result = new DeferredIconImpl < T > ( base , param , f ) ;
 <nb> public class IconDeferrerImpl extends IconDeferrer {
 myEvaluationIsInProgress . set ( Boolean . FALSE ) ;
 }
 }
 - }
 + }

Reduce contention on icon deferrer s lock


<nb> public class NewDirectoryPage extends NewProjectWizardPage
 namePanel . add ( dirNameLabel_ ) ;
 txtProjectName_ = new TextBox ( ) ;
 txtProjectName_ . setWidth ( STRING0 ) ;
 + txtProjectName_ . getElement ( ) . setAttribute ( STRING1 , STRING2 ) ;
 namePanel . add ( txtProjectName_ ) ;
 panel . add ( namePanel ) ;
 addWidget ( panel ) ;


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public class StdOutLogger extends Logger {
 + final class StdOutLogger extends Logger {
 private static final boolean DEBUG = ConfigurationContext . getInstance ( ) . isDebugEnabled ( ) ;

 COMMENT
 <nb> public final class PrintFilterStream implements StatusListener {
 filterArray [ i ] = Integer . parseInt ( filterSplit [ i ] ) ;

 }
 - String [ ] trackArray = track . split ( STRING0 ) ;
 }

 private void printUsageAndExit ( ) {

removing an unnecessary line from PrintFilterStream


<nb> public class MaterialShowcaseSequence implements IDetachedListener {

 public MaterialShowcaseSequence addSequenceItem ( View targetView , String content , String dismissText ) {
 addSequenceItem ( targetView , STRING0 , content , dismissText ) ;
 + return this ;
 }

 public MaterialShowcaseSequence addSequenceItem ( View targetView , String title , String content , String dismissText ) {


<nb> public class LdapAuthenticationTest extends GitblitUnitTest {
 assertNull ( userThreeModel . getTeam ( STRING0 ) ) ;
 assertTrue ( userThreeModel . canAdmin ) ;
 }
 +
 + @ test
 + public void testBindWithUser ( ) {
 + settings . put ( Keys . realm . ldap . bindpattern , STRING1 ) ;
 + settings . put ( Keys . realm . ldap . username , STRING2 ) ;
 + settings . put ( Keys . realm . ldap . password , STRING2 ) ;
 +
 + UserModel userOneModel = auth . authenticate ( STRING3 , STRING4 . toCharArray ( ) ) ;
 + assertNotNull ( userOneModel ) ;
 +
 + UserModel userOneModelFailedAuth = auth . authenticate ( STRING3 , STRING5 . toCharArray ( ) ) ;
 + assertNull ( userOneModelFailedAuth ) ;
 + }

 private int countLdapUsersInUserManager ( ) {
 int ldapAccountCount = NUMBER0 ;

Added test for binding without special account e g userbased


<nb> public class MediaType implements Comparable < MediaType > {
 COMMENT
 COMMENT
 public static List < MediaType > parseMediaTypes ( String mediaTypes ) {
 - Assert . hasLength ( mediaTypes , STRING0 ) ;
 + if ( ! StringUtils . hasLength ( mediaTypes ) ) {
 + return Collections . emptyList ( ) ;
 + }
 String [ ] tokens = mediaTypes . split ( STRING1 ) ;
 List < MediaType > result = new ArrayList < MediaType > ( tokens . length ) ;
 for ( String token : tokens ) {
 <nb> public class MediaTypeTests {
 List < MediaType > mediaTypes = MediaType . parseMediaTypes ( s ) ;
 assertNotNull ( STRING2 , mediaTypes ) ;
 assertEquals ( STRING3 , NUMBER0 , mediaTypes . size ( ) ) ;
 +
 + mediaTypes = MediaType . parseMediaTypes ( null ) ;
 + assertNotNull ( STRING2 , mediaTypes ) ;
 + assertEquals ( STRING3 , NUMBER1 , mediaTypes . size ( ) ) ;
 }

 @ test

MediaType parseMediaTypes now accepts null and


<nb> public class Redwood {
 public static void forceTrack ( String title ) { Redwood . startTrack ( FORCE , title ) ; }
 public static void endTrack ( String check ) { Redwood . endTrack ( check ) ; }
 public static void endTrack ( ) { Redwood . endTrack ( ) ; }
 - public static void endTrackIfOpen ( String check ) {
 - if ( Redwood . titleStack . peek ( ) . equals ( check ) ) { Redwood . endTrack ( check ) ; }
 - }

 public static void startThreads ( String title ) { Redwood . startThreads ( title ) ; }
 public static void finishThread ( ) { Redwood . finishThread ( ) ; }


<nb> public abstract class PathType {
 path = path . replace ( STRING0 , STRING1 ) ;

 if ( WORKING_DIR_WITH_DRIVE . matcher ( path ) . matches ( ) ) {
 - throw new InvalidPathException ( path ,
 + throw new InvalidPathException ( original ,
 STRING2 ) ;
 }

 <nb> public abstract class PathType {

 Matcher trailingSpaceMatcher = TRAILING_SPACES . matcher ( path ) ;
 if ( trailingSpaceMatcher . find ( ) ) {
 - throw new InvalidPathException ( path , STRING3 , trailingSpaceMatcher . start ( ) ) ;
 + throw new InvalidPathException ( original , STRING3 , trailingSpaceMatcher . start ( ) ) ;
 }

 if ( root != null ) {

Fix a couple exceptions to use the original path string


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

 COMMENT
 COMMENT
 <nb> public class XmlPsiManager extends AbstractProjectComponent {
 SINGLE
 return ! isXml ;
 }
 +
 + @ override
 + public void treeChanged ( @ notnull PsiTreeChangeEventImpl event ) {
 + if ( ! ( event . getFile ( ) instanceof XmlFile ) ) return ;
 + super . treeChanged ( event ) ;
 + }
 } ;
 }
 }

XmlPsiManager should not increase tracker on changes in unrelated files


<nb> import static NAMESPACE ;

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 COMMENT
 public class ServerPropertiesTests {

 <nb> public class ServerPropertiesTests {
 binder . bind ( new MutablePropertyValues ( Collections . singletonMap ( STRING0 ,
 STRING1 ) ) ) ;
 assertFalse ( binder . getBindingResult ( ) . hasErrors ( ) ) ;
 - assertEquals ( InetAddress . getLocalHost ( ) , this . properties . getAddress ( ) ) ;
 + assertEquals ( InetAddress . getByName ( STRING1 ) , this . properties . getAddress ( ) ) ;
 }

 @ test


<nb> public class AnnotationAttributes extends LinkedHashMap < String , Object > {
 return STRING0 ;
 }
 if ( value instanceof Object [ ] ) {
 - return STRING1 + StringUtils . arrayToCommaDelimitedString ( ( Object [ ] ) value ) + STRING2 ;
 + return STRING1 + StringUtils . arrayToDelimitedString ( ( Object [ ] ) value , STRING3 ) + STRING2 ;
 }
 return String . valueOf ( value ) ;
 }

Align AnnotationAttributes toString with contract in Map


<nb> public final class HttpRequest {
 }
 }

 + final byte [ ] contentAsBytes = content . getBytes ( STRING0 ) ;
 +
 SINGLE
 urlConnection . setRequestMethod ( method . name ( ) ) ;
 urlConnection . setDoOutput ( true ) ;
 - urlConnection . setChunkedStreamingMode ( NUMBER0 ) ;
 + urlConnection . setFixedLengthStreamingMode ( contentAsBytes . length ) ;

 SINGLE
 System . setProperty ( STRING1 , STRING2 ) ;
 <nb> public final class HttpRequest {
 urlConnection . connect ( ) ;

 final OutputStream outputStream = new BufferedOutputStream ( urlConnection . getOutputStream ( ) ) ;
 -
 - outputStream . write ( content . getBytes ( STRING0 ) ) ;
 + outputStream . write ( contentAsBytes ) ;
 outputStream . flush ( ) ;
 outputStream . close ( ) ;

Configuring request length instead of using chunked streaming mode


<nb> public class GroovyToJavaGenerator {

 private void generateClassStub ( @ notnull PsiClass typeDefinition , GrPackageDefinition packageDefinition , Map < String , String > output ) {
 StringBuffer text = new StringBuffer ( ) ;
 - writeTypeDefinition ( text , typeDefinition , packageDefinition , true ) ;
 + try {
 + writeTypeDefinition ( text , typeDefinition , packageDefinition , true ) ;

 - output . put ( getPackageDirectory ( packageDefinition ) + typeDefinition . getName ( ) + STRING0 + STRING1 , text . toString ( ) ) ;
 + output . put ( getPackageDirectory ( packageDefinition ) + typeDefinition . getName ( ) + STRING0 + STRING1 , text . toString ( ) ) ;
 + }
 + catch ( Throwable e ) {
 + LOG . error ( e ) ;
 + }
 }

 private static GrTopStatement [ ] getTopStatementsInReadAction ( final GroovyFileBase myPsiFile ) {

don t let our internal PSI exceptions during groovy stub generation cause project rebuild


<nb> public interface ClaimStrategy
 void setSequence ( long sequence ) ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public final class RingBuffer < T extends Entry >
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public final class ConsumerTrackingProducerBarrier implements ProducerBarrier < T >
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class UndeployMojo extends AbstractAndroidMojo {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 - private String packageName ;
 + private String _package ;
 +
 + public void setPackage ( String packageName ) {
 + this . _package = packageName ;
 + }

 COMMENT
 COMMENT
 <nb> public class UndeployMojo extends AbstractAndroidMojo {
 private File file ;

 public void execute ( ) throws MojoExecutionException , MojoFailureException {
 - String packageToUndeploy = packageName ;
 - if ( packageToUndeploy != null ) {
 + String packageToUndeploy = _package ;
 + if ( packageToUndeploy != null && ! STRING0 . equals ( packageToUndeploy ) && ! STRING1 . equals ( packageToUndeploy ) ) {
 undeployApk ( packageToUndeploy ) ;
 } else {
 if ( file != null ) {
 <nb> public class UndeployMojo extends AbstractAndroidMojo {
 }

 }
 -
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class TestPatternHopFactory extends TestCase {
 ShortestPathTree spt = aStar . getShortestPathTree ( options ) ;
 GraphPath path = spt . getPath ( destination , false ) ;

 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 + long endTime = path . getEndTime ( ) ;
 + Calendar c = new GregorianCalendar ( ) ;
 + c . setTimeInMillis ( endTime * NUMBER0 ) ;
 + assertTrue ( endTime - TestUtils . toSeconds ( startTime ) < NUMBER1 ) ;
 }

 public void testFrequencies ( ) {


<nb> public class MapActivityActions implements DialogProvider {
 final TargetPointsHelper targetPointsHelper = app . getTargetPointsHelper ( ) ;

 - Item dir = qa . item ( R . string . get_directions ) . icons (
 + Item dir = qa . item ( R . string . context_menu_item_directions_to ) . icons (
 R . drawable . ic_action_gdirections_dark , R . drawable . ic_action_gdirections_light ) ;
 dir . listen (
 new OnContextMenuClick ( ) {


<nb> public abstract class HttpBase < T > {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public byte [ ] bodyBytes ( ) {
 if ( body == null ) {
 <nb> public abstract class HttpBase < T > {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public String bodyText ( ) {
 if ( body == null ) {
 - return null ;
 + return StringPool . EMPTY ;
 }
 if ( charset != null ) {
 return StringUtil . convertCharset ( body , StringPool . ISO_8859_1 , charset ) ;


<nb> public class BlockOutStream extends OutStream {

 long userFileBufferBytes = mTachyonConf . getBytes ( Constants . USER_FILE_BUFFER_BYTES ,
 Constants . MB ) ;
 - if ( mBuffer . position ( ) + len >= userFileBufferBytes && mBuffer . position ( ) > NUMBER0 ) {
 + if ( mBuffer . position ( ) > NUMBER0 && mBuffer . position ( ) + len > userFileBufferBytes ) {
 appendCurrentBuffer ( mBuffer . array ( ) , NUMBER0 , mBuffer . position ( ) ) ;
 mBuffer . clear ( ) ;
 }

 - if ( len >= userFileBufferBytes ) {
 + if ( len > userFileBufferBytes / NUMBER1 ) {
 appendCurrentBuffer ( b , off , len ) ;
 - } else {
 + } else if ( len > NUMBER0 ) {
 mBuffer . put ( b , off , len ) ;
 }

Modify condition for reducing buffer copy and mapped file write frequency


<nb> public abstract class AbstractFramedStreamSourceChannel < C extends AbstractFramed
 @ override
 public void run ( ) {
 try {
 + boolean moreData ;
 do {
 ChannelListener < ? super R > listener = getReadListener ( ) ;
 if ( listener == null || ! isReadResumed ( ) ) {
 <nb> public abstract class AbstractFramedStreamSourceChannel < C extends AbstractFramed
 SINGLE
 SINGLE
 SINGLE
 - } while ( allAreSet ( state , STATE_READS_RESUMED ) && allAreClear ( state , STATE_CLOSED ) && frameDataRemaining > NUMBER0 && data != null ) ;
 + moreData = ( frameDataRemaining > NUMBER0 && data != null ) || ! pendingFrameData . isEmpty ( ) ;
 + } while ( allAreSet ( state , STATE_READS_RESUMED ) && allAreClear ( state , STATE_CLOSED ) && moreData ) ;
 } finally {
 state &= ~ STATE_IN_LISTENER_LOOP ;
 }

Fix issue with framed channel when loop will exit even if there are pending frames


<nb> public class MaterialViewPager extends FrameLayout {
 MaterialViewPagerAnimator animator = MaterialViewPagerHelper . getAnimator ( this . getContext ( ) ) ;

 SINGLE
 - animator . restoreScroll ( - NUMBER0 * ss . yOffset , ss . settings ) ;
 + animator . restoreScroll ( - NUMBER0 * ss . yOffset , ss . settings ) ;
 MaterialViewPagerHelper . register ( getContext ( ) , animator ) ;
 }

 + public ViewGroup getHeaderBackgroundContainer ( ) {
 + return headerBackgroundContainer ;
 + }
 +
 static class SavedState extends BaseSavedState {
 public MaterialViewPagerSettings settings ;
 public float yOffset ;


<nb> public class WritingPreferencesPane extends PreferencesPane

 Label perProjectLabel = new Label (
 - STRING0 ) ;
 + STRING1 +
 + STRING2 ) ;
 perProjectLabel . addStyleName ( baseRes . styles ( ) . infoLabel ( ) ) ;
 nudgeRight ( perProjectLabel ) ;
 add ( perProjectLabel ) ;

 - defaultSweaveEngine_ = new WeaveRnwSelectWidget ( STRING3 ) ;
 + defaultSweaveEngine_ = new WeaveRnwSelectWidget (
 + STRING4 ) ;
 defaultSweaveEngine_ . getElement ( ) . getStyle ( ) . setMarginTop ( NUMBER0 , Unit . PX ) ;
 defaultSweaveEngine_ . setValue (
 prefs . defaultSweaveEngine ( ) . getGlobalValue ( ) ) ;


<nb> public class ModClassLoader extends URLClassLoader

 public Class < ? extends BaseModProxy > loadBaseModClass ( String modClazzName ) throws Exception
 {
 - AccessTransformer transformer = ( AccessTransformer ) mainClassLoader . getTransformers ( ) . get ( NUMBER0 ) ;
 - transformer . ensurePublicAccessFor ( modClazzName ) ;
 + AccessTransformer accessTransformer = null ;
 + for ( IClassTransformer transformer : mainClassLoader . getTransformers ( ) )
 + {
 + if ( transformer instanceof AccessTransformer )
 + {
 + accessTransformer = ( AccessTransformer ) transformer ;
 + break ;
 + }
 + }
 + if ( accessTransformer == null )
 + {
 + FMLLog . log ( Level . SEVERE , STRING0 ) ;
 + throw new LoaderException ( ) ;
 + }
 + accessTransformer . ensurePublicAccessFor ( modClazzName ) ;
 return ( Class < ? extends BaseModProxy > ) Class . forName ( modClazzName , true , this ) ;
 }
 }

Fixed ClassCastException when loading ModLoader mods


<nb> public class Wallet extends BaseTaggableObject implements Serializable , BlockCha
 }

 COMMENT
 - public void setLookaheadThreshold ( int num ) {
 + public void setKeychainLookaheadThreshold ( int num ) {
 lock . lock ( ) ;
 try {
 keychain . setLookaheadThreshold ( num ) ;

rename setLookaheadThreshold to setKeychainLookaheadThreshold


<nb>

 package NAMESPACE ;

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

 - public class MapperServiceTest extends ElasticsearchSingleNodeTest {
 + public class MapperServiceTest extends ESSingleNodeTestCase {
 @ rule
 public ExpectedException expectedException = ExpectedException . none ( ) ;


<nb> import NAMESPACE ;
 import NAMESPACE ;

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

 <nb> public class SplunkConnectionFactory {
 String sunHandlerClassName = STRING0 ;
 Class < URLStreamHandler > clazz = camelContext . getClassResolver ( ) . resolveClass ( sunHandlerClassName , URLStreamHandler . class ) ;
 if ( clazz != null ) {
 - URLStreamHandler handler = ObjectHelper . newInstance ( clazz ) ;
 + URLStreamHandler handler = camelContext . getInjector ( ) . newInstance ( clazz ) ;
 args . setHTTPSHandler ( handler ) ;
 LOG . debug ( STRING1 , handler , args ) ;
 } else {

Better make use of the Camel Injector API to instantiate


<nb> public abstract class AbstractHttp11Processor < S > extends AbstractProcessor < S > {
 } else if ( status == SocketStatus . OPEN_READ &&
 request . getReadListener ( ) != null ) {
 try {
 - try {
 - if ( inputBuffer . available ( ) > NUMBER0 || inputBuffer . nbRead ( ) > NUMBER0 ) {
 - asyncStateMachine . asyncOperation ( ) ;
 - }
 - } catch ( IOException x ) {
 - if ( getLog ( ) . isDebugEnabled ( ) ) {
 - getLog ( ) . debug ( STRING0 , x ) ;
 - }
 - status = SocketStatus . ASYNC_READ_ERROR ;
 - request . setAttribute ( RequestDispatcher . ERROR_EXCEPTION , x ) ;
 + if ( inputBuffer . available ( ) > NUMBER0 ) {
 + asyncStateMachine . asyncOperation ( ) ;
 }
 } catch ( IllegalStateException x ) {
 registerForEvent ( true , false ) ;


<nb> public abstract class BaseNavDrawerActivity extends BaseActivity {
 new NavigationView . OnNavigationItemSelectedListener ( ) {
 @ override
 public boolean onNavigationItemSelected ( MenuItem menuItem ) {
 - menuItem . setChecked ( true ) ;
 onNavItemClick ( menuItem . getItemId ( ) ) ;
 - return true ;
 + return false ;
 }
 } ) ;
 }
 <nb> public abstract class BaseNavDrawerActivity extends BaseActivity {
 COMMENT
 COMMENT
 public void setDrawerSelectedItem ( @ idres int menuItemId ) {
 - navigationView . getMenu ( ) . findItem ( menuItemId ) . setChecked ( true ) ;
 + navigationView . setCheckedItem ( menuItemId ) ;
 }

 public void openNavDrawer ( ) {

Do not select drawer items when clicking them


<nb> public class ThemeBrowserActivity extends AppCompatActivity implements ThemeBrow
 @ override
 public void run ( ) {
 mFetchingThemes = false ;
 + if ( result == null ) {
 + mThemeBrowserFragment . mEmptyView . setText ( STRING0 ) ;
 + mThemeSearchFragment . mEmptyView . setText ( STRING0 ) ;
 + }
 mThemeBrowserFragment . setRefreshing ( false ) ;
 mThemeSearchFragment . setRefreshing ( false ) ;
 }


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public interface DependencyFactory {
 + SINGLE
 enum ClassPathNotation {
 GRADLE_API , LOCAL_GROOVY
 }


<nb> public class EclipseAST extends AST < EclipseAST , EclipseNode , ASTNode > {
 }

 private static volatile boolean skipEclipseWorkspaceBasedFileResolver = false ;
 + private static final URI NOT_CALCULATED_MARKER = URI . create ( STRING0 ) ;
 + private URI memoizedAbsoluteFileLocation = NOT_CALCULATED_MARKER ;
 +
 public URI getAbsoluteFileLocation ( ) {
 + if ( memoizedAbsoluteFileLocation != NOT_CALCULATED_MARKER ) return memoizedAbsoluteFileLocation ;
 +
 + memoizedAbsoluteFileLocation = getAbsoluteFileLocation0 ( ) ;
 + return memoizedAbsoluteFileLocation ;
 + }
 +
 + COMMENT
 + private URI getAbsoluteFileLocation0 ( ) {
 String fileName = getFileName ( ) ;
 if ( fileName != null && ( fileName . startsWith ( STRING1 ) || fileName . startsWith ( STRING2 ) ) ) {
 SINGLE

added memoization to config lookup in eclipse


<nb> public class GrammaticalRelation implements Comparable < GrammaticalRelation > , Ser

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


<nb> public class PGraphicsOpenGL extends PGraphics {
 pgl . disable ( PGL . POLYGON_SMOOTH ) ;

 if ( sized ) {
 - reapplySettings ( ) ;
 + SINGLE

 SINGLE
 SINGLE

Not reapplying settings after sizing because it calls smooth without


<nb> public abstract class SpeedSearch {
 if ( e . getKeyCode ( ) == KeyEvent . VK_BACK_SPACE ) {
 backspace ( ) ;
 }
 - else if ( Character . isLetter ( e . getKeyChar ( ) ) ) {
 + else if ( Character . isLetterOrDigit ( e . getKeyChar ( ) ) ) {
 type ( Character . toString ( e . getKeyChar ( ) ) ) ;
 }


<nb> public class HeadersMessage extends Message {
 private static final Logger log = LoggerFactory . getLogger ( HeadersMessage . class ) ;

 SINGLE
 - final static int MAX_HEADERS = NUMBER0 ;
 + public static final int MAX_HEADERS = NUMBER0 ;

 private List < Block > blockHeaders ;

 <nb> public class Peer {
 return ;
 }
 }
 - SINGLE
 - blockChainDownload ( Sha256Hash . ZERO_HASH ) ;
 + SINGLE
 + SINGLE
 + if ( m . getBlockHeaders ( ) . size ( ) >= HeadersMessage . MAX_HEADERS )
 + blockChainDownload ( Sha256Hash . ZERO_HASH ) ;
 } catch ( VerificationException e ) {
 log . warn ( STRING0 , e ) ;
 } catch ( ScriptException e ) {

Fix detection of end of block chain download when syncing a wallet with no keys


<nb> final class SimpleConfigList extends AbstractConfigValue implements ConfigList {
 super ( origin ) ;
 this . value = value ;
 this . resolved = status == ResolveStatus . RESOLVED ;
 +
 + SINGLE
 + if ( status != ResolveStatus . fromValues ( value ) )
 + throw new ConfigException . BugOrBroken (
 + STRING0 + this ) ;
 }

 @ override

add check to SimpleConfigList that resolveStatus is correct


<nb> public final class Metadata {
 BitSet valid = new BitSet ( NUMBER0 ) ;
 valid . set ( STRING0 ) ;
 valid . set ( STRING1 ) ;
 + valid . set ( STRING2 ) ;
 for ( char c = STRING3 ; c <= STRING4 ; c ++ ) {
 valid . set ( c ) ;
 }
 <nb> public class ProtoUtils {
 COMMENT
 public static < T extends Message > Metadata . Key < T > keyForProto ( final T instance ) {
 return Metadata . Key . of (
 - instance . getDescriptorForType ( ) . getFullName ( ) . replace ( STRING2 , STRING0 )
 - + Metadata . BINARY_HEADER_SUFFIX ,
 + instance . getDescriptorForType ( ) . getFullName ( ) + Metadata . BINARY_HEADER_SUFFIX ,
 new Metadata . BinaryMarshaller < T > ( ) {
 @ override
 public byte [ ] toBytes ( T value ) {

Re add support for periods in metadata key names


<nb> package NAMESPACE ;

 import NAMESPACE ;

 + COMMENT
 + COMMENT
 + COMMENT
 public class ConfigurationException extends Exception {
 private static final long serialVersionUID = NUMBER0 ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public ConfigurationException ( File file , Iterable < String > errors ) {
 super ( formatMessage ( file , errors ) ) ;
 }


<nb> public class ShowIntentionsPass extends TextEditorHighlightingPass {
 intentionOffset = offset - NUMBER0 ;
 }
 }
 - collectIntentionsFromDoNotShowLeveledInspections ( project , hostFile , intentionElement , intentionOffset , intentions ) ;
 + if ( intentionElement != null && intentionElement . getManager ( ) . isInProject ( intentionElement ) ) {
 + collectIntentionsFromDoNotShowLeveledInspections ( project , hostFile , intentionElement , intentionOffset , intentions ) ;
 + }
 }

 final int line = hostDocument . getLineNumber ( offset ) ;

Don t apply information level inspections to decompiled code


<nb> public class FeedUpdateService {
 private FeedEntry findEntry ( List < FeedEntry > existingEntries , FeedEntry entry ) {
 FeedEntry foundEntry = null ;
 for ( FeedEntry existingEntry : existingEntries ) {
 - if ( StringUtils . equals ( entry . getGuid ( ) , existingEntry . getGuid ( ) ) ) {
 + if ( StringUtils . equals ( entry . getGuid ( ) , existingEntry . getGuid ( ) )
 + && StringUtils . equals ( entry . getUrl ( ) ,
 + existingEntry . getUrl ( ) ) ) {
 foundEntry = existingEntry ;
 break ;
 }
 <nb> public class FeedUpdateService {
 }
 List < FeedEntry > existingEntries = guids . isEmpty ( ) ? new ArrayList < FeedEntry > ( )
 : feedEntryDAO . findByGuids ( guids ) ;
 -
 return existingEntries ;
 }
 }

some feeds don t use a globally unique id as a guid sigh


<nb> public class PyClassImpl extends PyPresentableElementImpl < PyClassStub > implement
 if ( statementList != null ) {
 statementList . accept ( new PyRecursiveElementVisitor ( ) {
 public void visitPyAssignmentStatement ( final PyAssignmentStatement node ) {
 - super . visitPyAssignmentStatement ( node ) ;
 collectNewTargets ( result , node ) ;
 }
 } ) ;

Removed unnecessary recursion in assignments visitor


<nb> package NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 public class App {

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public static void main ( String [ ] args ) {
 OliphauntPool pool = new OliphauntPool ( ) ;
 System . out . println ( pool ) ;
 <nb> import NAMESPACE ;

 import NAMESPACE ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public class AppTest {

 @ test


<nb> public class StringGroovyMethods extends DefaultGroovyMethodsSupport {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static String plus ( String left , CharSequence value ) {
 + return left + value ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Added a StringGroovyMethods plus String CharSequence version for faster string concatenation


<nb> public class CommandLineLargeTest {

 @ test
 public void migrateWithCustomLocations ( ) throws Exception {
 - String stdOut = runFlywayCommandLine ( NUMBER0 , STRING0 , STRING1 , STRING2 + new File ( getInstallDir ( ) ) . getAbsolutePath ( ) + STRING3 ) ;
 + String stdOut = runFlywayCommandLine ( NUMBER0 , STRING0 , STRING1 , STRING2 + getInstallDir ( ) + STRING3 ) ;
 assertTrue ( stdOut . contains ( STRING4 ) ) ;
 }

 @ test
 public void exitCodeForFailedMigration ( ) throws Exception {
 - String stdOut = runFlywayCommandLine ( NUMBER1 , STRING0 , STRING1 , STRING2 + new File ( getInstallDir ( ) ) . getAbsolutePath ( ) + STRING5 ) ;
 + String stdOut = runFlywayCommandLine ( NUMBER1 , STRING0 , STRING1 , STRING2 + getInstallDir ( ) + STRING5 ) ;
 assertTrue ( stdOut . contains ( STRING6 ) ) ;
 }

 <nb> public class SQLServerDbSupport extends DbSupport {
 }

 public String getCurrentUserFunction ( ) {
 - return STRING7 ;
 + return STRING8 ;
 }

 @ override


<nb> public class PSurfaceAWT implements PSurface {
 SINGLE
 SINGLE

 + if ( ! canvas . isDisplayable ( ) ) {
 + SINGLE
 + return ;
 + }
 +
 SINGLE
 if ( canvas . getBufferStrategy ( ) == null ) { SINGLE
 SINGLE
 canvas . createBufferStrategy ( NUMBER0 ) ;
 }
 BufferStrategy strategy = canvas . getBufferStrategy ( ) ;
 + SINGLE
 if ( strategy == null ) {
 return ;
 }
 <nb> public class PSurfaceAWT implements PSurface {

 public void blit ( ) {
 - canvas . repaint ( ) ;
 + SINGLE
 + ( ( SmoothCanvas ) canvas ) . render ( ) ; SINGLE
 + SINGLE
 COMMENT
 if ( canvas . getGraphicsConfiguration ( ) != null ) {
 GraphicsDevice device = canvas . getGraphicsConfiguration ( ) . getDevice ( ) ;

let s get away from that repaint thing shall we


<nb> public class IndexInfrastructure {
 return indexDir ;
 }

 + private static volatile long ourLastStamp ; SINGLE
 +
 public static void rewriteVersion ( final File file , final int version ) throws IOException {
 final long prevLastModifiedValue = file . lastModified ( ) ;
 if ( file . exists ( ) ) {
 <nb> public class IndexInfrastructure {
 finally {
 ourIndexIdToCreationStamp . clear ( ) ;
 os . close ( ) ;
 - file . setLastModified ( Math . max ( System . currentTimeMillis ( ) , prevLastModifiedValue + NUMBER0 ) ) ;
 + long max = Math . max ( System . currentTimeMillis ( ) , Math . max ( prevLastModifiedValue + NUMBER0 , ourLastStamp ) ) ;
 + ourLastStamp = max ;
 + file . setLastModified ( max ) ;
 }
 }

fix test ensure any file index stamp only increases


<nb> import NAMESPACE ;
 COMMENT
 public class PausableStorageConfiguration implements StorageConfiguration {

 - private final String TYPE_NAME = STRING0 ;
 + private static final String TYPE_NAME = STRING0 ;

 public PausableStorageConfiguration ( @ suppresswarnings ( STRING1 ) VoldemortConfig config ) { }


<nb> public abstract class PreferenceActivity extends ListActivity implements
 super . onDestroy ( ) ;
 if ( mPreferenceManager != null ) {
 mPreferenceManager . dispatchActivityDestroy ( ) ;
 + mPreferenceManager . setOnPreferenceTreeClickListener ( null ) ;
 }
 }

remove listener in order to avoid memory leak in preferences


<nb> public class BroadcastFilterTest {
 }
 }

 - private final static class Filter implements BroadcastFilter {
 + public final static class Filter implements BroadcastFilter {

 final String msg ;


<nb> public class Permit implements DataSerializable {
 }

 public void writeData ( ObjectDataOutput out ) throws IOException {
 + out . writeBoolean ( initialized ) ;
 out . writeInt ( available ) ;
 out . writeInt ( partitionId ) ;
 out . writeInt ( backupCount ) ;
 <nb> public class Permit implements DataSerializable {
 }

 public void readData ( ObjectDataInput in ) throws IOException {
 + initialized = in . readBoolean ( ) ;
 available = in . readInt ( ) ;
 partitionId = in . readInt ( ) ;
 backupCount = in . readInt ( ) ;


<nb> public class EmailValidator implements TextWatcher {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class Publication implements AutoCloseable

 default:
 newPosition = ( position - currentTail ) + nextOffset ;
 - break ;
 }

 return newPosition ;


<nb> public abstract class AbstractConvertLineSeparatorsAction extends AnAction {
 public static boolean shouldProcess ( @ notnull VirtualFile file , @ notnull Project project ) {
 if ( file . isDirectory ( )
 || ! file . isWritable ( )
 - || FileTypeManager . getInstance ( ) . isFileIgnored ( file . getName ( ) )
 + || FileTypeManager . getInstance ( ) . isFileIgnored ( file )
 || file . getFileType ( ) . isBinary ( )
 || file . equals ( project . getProjectFile ( ) )
 || file . equals ( project . getWorkspaceFile ( ) ) )

Provide an inspection which reports files with line separator different from project s default


<nb> public class SiteSettingsFragment extends PreferenceFragment

 private void showDeleteSiteDialog ( ) {
 Bundle args = new Bundle ( ) ;
 - String url = STRING0 ;
 + String url ;
 try {
 URI uri = new URI ( mBlog . getHomeURL ( ) ) ;
 url = uri . getHost ( ) ;
 } catch ( URISyntaxException e ) {
 - url = STRING0 ;
 + url = StringUtils . unescapeHTML ( mBlog . getHomeURL ( ) . replaceFirst ( ADDRESS_FORMAT_REGEX , STRING0 ) ) ;
 }

 args . putString ( DeleteSiteDialogFragment . SITE_DOMAIN_KEY , url ) ;

Try formatting with URI but if that fails use regex


<nb> public class HeliosSoloDeployment implements HeliosDeployment {

 public static final String BOOT2DOCKER_SIGNATURE = STRING0 ;
 public static final String PROBE_IMAGE = STRING1 ;
 - public static final String HELIOS_NAME_PREFIX = STRING2 ;
 + public static final String HELIOS_NAME_SUFFIX = STRING3 ; SINGLE
 public static final String HELIOS_CONTAINER_PREFIX = STRING4 ;
 public static final int HELIOS_MASTER_PORT = NUMBER0 ;

 <nb> public class HeliosSoloDeployment implements HeliosDeployment {
 SINGLE
 final List < String > env = new ArrayList < > ( ) ;
 env . addAll ( this . env ) ;
 - env . add ( STRING5 + HELIOS_NAME_PREFIX + this . namespace ) ;
 + env . add ( STRING5 + this . namespace + HELIOS_NAME_SUFFIX ) ;
 env . add ( STRING6 + heliosHost ) ;

 final String heliosPort = String . format ( STRING7 , HELIOS_MASTER_PORT ) ;

Switch namespaced Helios agent name to end in


<nb>
 package NAMESPACE ;

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

Add initial processors to detect EAR deployments and start filling out their structure


<nb> public class TwitterPicProvider implements Provider {
 @ override
 public boolean supports ( @ nonnull String link ) {
 final String authority = PreviewMediaExtractor . getAuthority ( link ) ;
 - return STRING0 . equals ( authority ) || STRING1 . equals ( authority ) ;
 + return STRING0 . equals ( authority ) || STRING2 . equals ( authority ) ;
 }

 @ nullable

Fix small URL typo on TwitterPicProvider


<nb> public class Option {
 }
 }
 SINGLE
 - SINGLE
 + fares = DCFareCalculator . calculateFares ( rides ) ;
 summary = generateSummary ( ) ;
 }


<nb> public class Analytics {
 public static final String EVENT_PHOTO_PLACE = STRING0 ;

 static {
 - FlurryAgent . setLogEnabled ( BuildConfig . DEBUG ) ;
 + FlurryAgent . setLogEnabled ( Constants . DEBUG ) ;
 FlurryAgent . setCaptureUncaughtExceptions ( false ) ;
 FlurryAgent . setReportLocation ( false ) ;
 }


<nb> public final class ODistributedVersion implements ORecordVersion {
 else
 otherCounter = o . getCounter ( ) ;

 - if ( myCounter != other . counter )
 + if ( myCounter != otherCounter )
 return myCounter > otherCounter ? NUMBER0 : - NUMBER0 ;

 if ( timestamp != other . timestamp )

Fix issue in compare method in distributed version


<nb> class HtmlToSpannedConverter implements ContentHandler {
 }

 private void startImg ( SpannableStringBuilder text , Attributes attributes , WPHtml . ImageGetter img ) {
 + if ( ctx == null ) return ;
 +
 String src = attributes . getValue ( STRING0 ) ;

 Bitmap resizedBitmap = null ;

Ignoring startImg when the context is null


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + @ suppresswarnings ( STRING0 )
 public class AdvisedSupport extends ProxyConfig implements Advised {

 COMMENT
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + @ suppresswarnings ( { STRING0 , STRING1 } )
 public class DefaultIntroductionAdvisor implements IntroductionAdvisor , ClassFilter , Ordered , Serializable {

 private final Advice advice ;
 <nb> public abstract class TypeUtils {
 COMMENT
 COMMENT
 COMMENT
 + @ suppresswarnings ( STRING0 )
 public static boolean isAssignable ( Type lhsType , Type rhsType ) {
 Assert . notNull ( lhsType , STRING2 ) ;
 Assert . notNull ( rhsType , STRING3 ) ;

Suppressing unchecked and serial warnings


<nb> public class StatusBarWindowView extends FrameLayout
 handled = super . onTouchEvent ( ev ) ;
 }
 final int action = ev . getAction ( ) ;
 - if ( action == MotionEvent . ACTION_UP || action == MotionEvent . ACTION_CANCEL ) {
 + if ( ! handled && ( action == MotionEvent . ACTION_UP || action == MotionEvent . ACTION_CANCEL ) ) {
 mService . setInteracting ( StatusBarManager . WINDOW_STATUS_BAR , false ) ;
 }
 return handled ;

Don t clear the interacting bit if panel handled touch


<nb> public class UIUtil {

 @ nonnls String fontFamilyAndSize = STRING0 + font . getFamily ( ) + STRING1 + font . getSize ( ) + STRING2 ;
 @ nonnls @ language ( STRING3 )
 - String body = STRING4 + fontFamilyAndSize + STRING5 + ( fgColor != null ? STRING6 + ColorUtil . toHex ( fgColor ) : STRING7 ) + STRING8 ;
 + String body = STRING9 + fontFamilyAndSize + STRING5 + ( fgColor != null ? STRING6 + ColorUtil . toHex ( fgColor ) : STRING7 ) + STRING8 ;
 if ( resource != null ) {
 body += STRING10 + resource . toExternalForm ( ) + STRING8 ;
 }

render multiple paragraph inspection description using one font size in tooltip


<nb> public final class SuperficialValidation {
 && validateAnnotationValues ( annotationMirror . getElementValues ( ) ) ;
 }

 + @ suppresswarnings ( STRING0 )
 private static boolean validateAnnotationValues (
 Map < ? extends ExecutableElement , ? extends AnnotationValue > valueMap ) {
 + COMMENT
 for ( Map . Entry < ? extends ExecutableElement , ? extends AnnotationValue > valueEntry :
 valueMap . entrySet ( ) ) {
 TypeMirror expectedType = valueEntry . getKey ( ) . getReturnType ( ) ;
 <nb> public final class SuperficialValidation {
 return false ;
 }
 }
 + COMMENT
 return true ;
 }

 <nb> public class SuperficialValidationTest {
 . failsToCompile ( ) ;
 }

 + SINGLE
 + COMMENT
 @ test
 public void invalidAnnotationValue ( ) {
 JavaFileObject javaFileObject = JavaFileObjects . forSourceLines ( STRING1 ,
 <nb> public class SuperficialValidationTest {
 }
 } ) . failsToCompile ( ) ;
 }
 + COMMENT

 private static abstract class AssertingProcessor extends AbstractProcessor {
 @ override

Disable SuperficialValidation of AnnotationValues until an internal issue is resolved


<nb> public class WireGenerateSourcesMojo extends AbstractMojo {
 SINGLE
 SINGLE
 WireCompiler . main ( args . toArray ( new String [ args . size ( ) ] ) ) ;
 +
 + SINGLE
 + project . addCompileSourceRoot ( generatedSourceDirectory ) ;
 } catch ( Exception e ) {
 throw new MojoExecutionException ( STRING0 , e ) ;
 }

Add generated source directory as a compilation root


<nb> package NAMESPACE ;
 COMMENT
 COMMENT
 public abstract class AndroidCallable < ResultT > implements AndroidCallableI < ResultT > , Runnable {
 + protected StackTraceElement [ ] creationLocation = Ln . isDebugEnabled ( ) ? Thread . currentThread ( ) . getStackTrace ( ) : null ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 @ override
 public void run ( ) {
 - final StackTraceElement [ ] launchLocation = Ln . isDebugEnabled ( ) ? Thread . currentThread ( ) . getStackTrace ( ) : null ;
 - new AndroidCallableWrapper < ResultT > ( null , this , launchLocation ) . run ( ) ;
 + new AndroidCallableWrapper < ResultT > ( null , this , creationLocation ) . run ( ) ;
 }

 COMMENT

Fix AndroidCallable to use the correct thread s stacktrace


<nb> public class SpongePluginContainer implements ModContainer , PluginContainer {
 public String toString ( ) {
 return STRING0 + getName ( ) + STRING1 + getVersion ( ) + STRING2 ;
 }
 +
 + @ override
 + public boolean shouldLoadInEnvironment ( ) {
 + return true ;
 + }
 }

Add missing method to SpongePluginContainer


<nb> public class RecyclerViewDragDropManager {
 final int draggingItemTop = mDraggingItemDecorator . getTranslatedItemPositionTop ( ) ;
 final int draggingItemBottom = mDraggingItemDecorator . getTranslatedItemPositionBottom ( ) ;
 final int draggingItemCenter = ( draggingItemTop + draggingItemBottom ) / NUMBER0 ;
 - final int nearEdgePosition = ( ( draggingItemCenter < ( height / NUMBER0 ) ) ? draggingItemTop : draggingItemBottom ) ;
 + final int nearEdgePosition ;
 +
 + if ( firstVisibleChild == NUMBER1 && lastVisibleChild == NUMBER1 ) {
 + SINGLE
 + nearEdgePosition = ( scrollAmount < NUMBER1 ) ? draggingItemTop : draggingItemBottom ;
 + } else {
 + nearEdgePosition = ( draggingItemCenter < ( height / NUMBER0 ) ) ? draggingItemTop : draggingItemBottom ;
 + }

 final float nearEdgeOffset = ( nearEdgePosition * invHeight ) - FLOAT0 ;
 final float absNearEdgeOffset = Math . abs ( nearEdgeOffset ) ;

Fix edge effect not working properly when the list has only one item


<nb> public class FMLClientHandler implements IFMLSidedHandler
 @ override
 public void haltGame ( String message , Throwable t )
 {
 + SplashProgress . finish ( ) ;
 client . displayCrashReport ( new CrashReport ( message , t ) ) ;
 throw Throwables . propagate ( t ) ;
 }
 <nb> public class FMLClientHandler implements IFMLSidedHandler
 {
 if ( modsMissing != null || wrongMC != null || customError != null || dupesFound != null || modSorting != null )
 {
 + SplashProgress . finish ( ) ;
 return ;
 }
 try
 <nb> public class FMLClientHandler implements IFMLSidedHandler
 {
 FMLLog . log ( Level . ERROR , custom , STRING0 ) ;
 customError = custom ;
 + SplashProgress . finish ( ) ;
 return ;
 }
 catch ( LoaderException le )

Make sure to close the splash screen if there s gonna be an error display


<nb> public class MessageCompose extends K9Activity implements OnClickListener , OnFoc
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 - private String quoteOriginalMessage ( final Message originalMessage , final String body , final Account . QuoteStyle quoteStyle ) throws MessagingException
 + private String quoteOriginalMessage ( final Message originalMessage , final String messageBody , final Account . QuoteStyle quoteStyle ) throws MessagingException
 {
 + String body = messageBody == null ? STRING0 : messageBody ;
 if ( quoteStyle == Account . QuoteStyle . PREFIX )
 {
 StringBuilder quotedText = new StringBuilder ( body . length ( ) + QUOTE_BUFFER_LENGTH ) ;
 <nb> public class MessageCompose extends K9Activity implements OnClickListener , OnFoc
 }
 quotedText . append ( STRING1 ) ;

 - if ( body != null )
 - {
 - quotedText . append ( body ) ;
 - }
 + quotedText . append ( body ) ;

 return quotedText . toString ( ) ;
 }


<nb> class InProcessGradleExecuter extends AbstractGradleExecuter {
 }

 public ExecutionFailure assertHasDescription ( String context ) {
 - assertThatDescription ( equalTo ( context ) ) ;
 + assertThatDescription ( startsWith ( context ) ) ;
 return this ;
 }

 <nb> public class OutputScrapingExecutionFailure extends OutputScrapingExecutionResul
 }

 public ExecutionFailure assertHasDescription ( String context ) {
 - assertThatDescription ( equalTo ( context ) ) ;
 + assertThatDescription ( startsWith ( context ) ) ;
 return this ;
 }

Use the startsWith matcher instead of equalTo for ExecutionResult assertHasDescription


<nb> public interface JsonProvider {

 Object createMap ( ) ;

 - Iterable createArray ( ) ;
 + Object createArray ( ) ;

 Object clone ( Object model ) ;

JsonProvider creteArray now returns Object


<nb> public class RenderUtil {
 }
 }
 else {
 - builder . append ( STRING0 ) . append ( missingClasses . iterator ( ) . next ( ) ) ;
 + builder . append ( STRING0 ) . append ( missingClasses . iterator ( ) . next ( ) ) . append ( STRING1 ) ;
 }
 - removeLastNewLineChar ( builder ) ;
 + builder . append ( STRING2 ) ;
 warnMessages . add ( new FixableIssueMessage ( builder . toString ( ) ) ) ;
 }
 }

add try to build project to missing classes notification


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


<nb> public class AggregatorFactories {
 return EMPTY ;
 }
 List < ReducerFactory > orderedReducers = resolveReducerOrder ( this . reducerFactories , this . factories ) ;
 - SINGLE
 return new AggregatorFactories ( factories . toArray ( new AggregatorFactory [ factories . size ( ) ] ) , orderedReducers ) ;
 }

 <nb> public class AggregatorFactories {
 for ( ReducerFactory reducerFactory : orderedReducers ) {
 orderedReducerNames . add ( reducerFactory . getName ( ) ) ;
 }
 - System . out . println ( STRING0 + orderedReducerNames ) ;
 return orderedReducers ;
 }

removed obselete NOCOMMIT and left over sysout call


<nb> public class Theories extends JUnit4ClassRunner {

 @ override
 protected List < FrameworkMethod > computeTestMethods ( ) {
 - SINGLE
 - SINGLE
 -
 List < FrameworkMethod > testMethods = super . computeTestMethods ( ) ;
 List < FrameworkMethod > theoryMethods = getTestClass ( ) . getAnnotatedMethods ( Theory . class ) ;
 testMethods . removeAll ( theoryMethods ) ;


<nb> public final class TieredBlockStore implements BlockStore {
 mMetaManager . moveBlockMeta ( srcBlockMeta , dstTempBlock ) ;
 } catch ( BlockAlreadyExistsException | BlockDoesNotExistException
 | WorkerOutOfSpaceException e ) {
 + SINGLE
 + SINGLE
 throw Throwables . propagate ( e ) ; SINGLE
 }


<nb> public class EnhancedDebugger implements SmackDebugger {
 }
 return str ;
 }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + boolean isConnectionActive ( ) {
 + return connection . isConnected ( ) ;
 + }

 COMMENT
 COMMENT

Adds a method that anwwers if the connection with the server is active


<nb> public class GooglePlusSocialNetwork extends SocialNetwork
 }
 }

 + socialPerson . nickname = person . getNickname ( ) ;
 + socialPerson . profileURL = person . getUrl ( ) ;
 +
 if ( mLocalListeners . get ( REQUEST_GET_CURRENT_PERSON ) != null ) {
 mHandler . post ( new Runnable ( ) {
 @ override


<nb> public final class DecisionForestPMML {

 List < String > columnNames = settings . getColumnNames ( ) ;
 List < MiningField > fields = miningModel . getMiningSchema ( ) . getMiningFields ( ) ;
 - double [ ] featureImportances = new double [ fields . size ( ) ] ;
 + double [ ] featureImportances = new double [ columnNames . size ( ) ] ;
 for ( MiningField field : fields ) {
 Double importance = field . getImportance ( ) ;
 if ( importance != null ) {

Fix error when RDF used with an ignored ID column


<nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 +
 COMMENT
 COMMENT
 COMMENT
 +
 public class SessionCreateRequest extends ApiRequest {
 + @ jsonproperty
 private final String username ;
 + @ jsonproperty
 private final String password ;
 private final String host ;

Fixing nonserializable CreateSessionRequest bean


<nb> public class JacksonDataCodec implements TextDataCodec
 {
 if ( ! JsonToken . START_OBJECT . equals ( token ) )
 {
 - throw new DataDecodingException ( STRING0 ) ;
 + throw new DataDecodingException ( STRING1 ) ;
 }

 final DataMap map = new DataMap ( ) ;
 <nb> public class JacksonDataCodec implements TextDataCodec
 {
 if ( ! JsonToken . START_ARRAY . equals ( token ) )
 {
 - throw new DataDecodingException ( STRING2 ) ;
 + throw new DataDecodingException ( STRING3 ) ;
 }

 final DataList list = new DataList ( ) ;

Remove extra double quote from error message


<nb> public final class HTMLHostManagerServlet extends HostManagerServlet {
 HttpServletResponse response ,
 String message ) throws IOException {

 + if ( debug >= NUMBER0 ) {
 + log ( sm . getString ( STRING0 , engine . getName ( ) ) ) ;
 + }
 +
 String newNonce = generateNonce ( ) ;
 request . getSession ( ) . setAttribute ( NONCE_SESSION , newNonce ) ;

Make logging consistent for HTML and text interfaces


<nb> public class PathChildrenCache implements Closeable

 default:
 {
 - if ( watchedEvent . getState ( ) == Watcher . Event . KeeperState . Expired )
 - {
 - System . out . println ( ) ;
 - }
 refresh ( ) ;
 break ;
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class Subscription implements AutoCloseable
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class Subscription implements AutoCloseable
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public abstract class NanoHTTPD {
 ByteBuffer fbuf = randomAccessFile . getChannel ( ) . map ( FileChannel . MapMode . READ_ONLY , NUMBER0 , randomAccessFile . length ( ) ) ;
 randomAccessFile . seek ( NUMBER0 ) ;

 - SINGLE
 - InputStream bin = new FileInputStream ( randomAccessFile . getFD ( ) ) ;
 - in = new BufferedReader ( new InputStreamReader ( bin ) ) ;
 -
 SINGLE
 SINGLE
 if ( Method . POST . equals ( this . method ) ) {
 <nb> public abstract class NanoHTTPD {
 }
 } finally {
 safeClose ( randomAccessFile ) ;
 - safeClose ( in ) ;
 }
 }


<nb> public class TemplateServlet extends HttpServlet {
 COMMENT
 COMMENT
 COMMENT
 - public void init ( ServletConfig config ) {
 + public void init ( ServletConfig config ) throws ServletException {
 + super . init ( config ) ;

 COMMENT
 COMMENT

Fixed NPE in log calls by calling super init in init


<nb> public class PhysicalWritableLogChannel implements WritableLogChannel
 LogVersionedStoreChannel channel = this . channel ;
 try
 {
 - channel . write ( buffer ) ;
 + channel . writeAll ( buffer ) ;
 }
 catch ( ClosedChannelException e )
 {

PhysicalWriteableLogChannel now empties its buffer using writeAll


<nb> public class Facebook {
 final private String mAppId ;
 private static String mAccessToken = null ;
 private static long mAccessExpires = NUMBER0 ;
 - private static LinkedList < LogoutListener > logoutListeners =
 - new LinkedList < LogoutListener > ( ) ;

 SINGLE
 <nb> public class Facebook {
 }
 } ) ;
 }
 -
 - public static synchronized void addLogoutListener ( LogoutListener l ) {
 - logoutListeners . add ( l ) ;
 - }
 -
 - public static synchronized void removeLogoutListener ( LogoutListener l ) {
 - logoutListeners . remove ( l ) ;
 - }

 public void logout ( ) {
 - for ( LogoutListener l : logoutListeners ) {
 - l . onSessionLogoutStart ( ) ;
 - }
 setAccessToken ( STRING0 ) ;
 setAccessExpires ( NUMBER0 ) ;
 clearStoredSession ( ) ;
 - for ( LogoutListener l : logoutListeners ) {
 - l . onSessionLogoutFinish ( ) ;
 - }
 }


<nb> public class GroupByQueryRunnerTest
 . setDimensions (
 Lists . < DimensionSpec > newArrayList (
 new ExtractionDimensionSpec (
 - STRING0 , STRING1 , new LookupExtractionFn ( new MapLookupExtractor ( map ) , false , null , false , false ) , null
 + STRING0 , STRING1 , new LookupExtractionFn ( new MapLookupExtractor ( map , false ) , false , null , false , false ) , null
 )
 )
 )

handle a failing UT in GroupByQueryRunnerTest after merging into the master


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


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

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ChatView extends LinearLayout {

 } ) ;

 - mOtrSwitch . setOnCheckedChangeListener ( new OnCheckedChangeListener ( )
 - {
 -
 + mOtrSwitch . setOnClickListener ( new OnClickListener ( ) {
 +
 @ override
 - public void onCheckedChanged ( CompoundButton buttonView , boolean isChecked ) {
 - mActivity . switchOtrState ( ChatView . this , isChecked ) ;
 -
 + public void onClick ( View view ) {
 + mActivity . switchOtrState ( ChatView . this , mOtrSwitch . isChecked ( ) ) ;
 }
 -
 -
 } ) ;

 COMMENT


<nb> public class DeployHandler extends BatchModeCommandHandler {
 }

 }
 - SINGLE
 + ctx . printLine ( STRING0 + name + STRING1 ) ;
 }

 @ override
 <nb> public class DeployHandler extends BatchModeCommandHandler {
 ctx . printLine ( Util . getFailureDescription ( result ) ) ;
 return ;
 }
 - SINGLE
 + ctx . printLine ( STRING0 + name + STRING2 ) ;
 }

 protected byte [ ] readBytes ( File f ) throws OperationFormatException {
 <nb> public class UndeployHandler extends BatchModeCommandHandler {
 ctx . printLine ( STRING3 + Util . getFailureDescription ( result ) ) ;
 return ;
 }
 + ctx . printLine ( STRING4 + name + STRING5 ) ;
 }

 @ override

temporarily reinstate messages after successful deploy and undeploy


<nb> public class Messages {
 SINGLE
 }

 - String NO_PERMISSION = STRING0 ;
 + static String NO_PERMISSION = STRING0 ;
 }


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


<nb> public class EntryObject {
 }

 public EntryObject key ( ) {
 - if ( qb . attribute == null ) {
 - qb . attribute = KEY_ATTRIBUTE_NAME ;
 - } else if ( ! qb . attribute . startsWith ( KEY_ATTRIBUTE_NAME ) ) {
 - qb . attribute = KEY_ATTRIBUTE_NAME + STRING0 + qb . attribute ;
 - }
 -
 + qb . attribute = KEY_ATTRIBUTE_NAME ;
 return this ;
 }

 <nb> import static NAMESPACE ;
 @ category ( ParallelTest . class )
 public class PredicateBuilderTest extends HazelcastTestSupport {

 +
 @ test
 public void get_keyAttribute ( ) {
 TestHazelcastInstanceFactory factory = createHazelcastInstanceFactory ( NUMBER0 ) ;

Solves problem with QueryBuilder and key


<nb> public class SecureNio2Channel extends Nio2Channel {
 public void reset ( AsynchronousSocketChannel channel , SocketWrapperBase < Nio2Channel > socket )
 throws IOException {
 super . reset ( channel , socket ) ;
 + sslEngine = null ;
 sniComplete = false ;
 handshakeComplete = false ;
 closed = false ;


<nb> public class DefaultGrailsCodecClass extends AbstractInjectableGrailsClass imple

 private void initializeCodec ( ) {
 Integer orderSetting = ( Integer ) getPropertyOrStaticPropertyOrFieldValue ( STRING0 , Integer . class ) ;
 + if ( orderSetting != null ) {
 + order = orderSetting ;
 + }
 if ( Encoder . class . isAssignableFrom ( getClazz ( ) ) ) {
 encoder = ( Encoder ) getReferenceInstance ( ) ;
 autowireCodecBean ( encoder ) ;

Fix Codec class ordering setting coming from static order property


<nb> public class PsiToDocumentSynchronizer extends PsiTreeChangeAdapter {
 processBeforeEvent ( event ) ;
 }

 + public void beforeChildrenChange ( PsiTreeChangeEvent event ) {
 + processBeforeEvent ( event ) ;
 + }
 +
 private void processBeforeEvent ( PsiTreeChangeEvent event ) {
 if ( toProcessPsiEvent ( ) ) {
 PsiFile psiFile = event . getParent ( ) . getContainingFile ( ) ;

PsiToDocSynchronizer must override beforeChildrenChange in order to fasten belts in smart pointer managers


<nb> public class ProjectManagerImpl extends ProjectManagerEx implements PersistentSt
 }
 }

 + File projectFile = new File ( filePath ) ;
 + if ( projectFile . isFile ( ) ) {
 + FileUtil . delete ( projectFile ) ;
 + }
 + else {
 + File [ ] files = new File ( projectFile , Project . DIRECTORY_STORE_FOLDER ) . listFiles ( ) ;
 + if ( files != null ) {
 + for ( File file : files ) {
 + FileUtil . delete ( file ) ;
 + }
 + }
 + }
 ProjectImpl project = createProject ( projectName , filePath , false , optimiseTestLoadSpeed ) ;
 try {
 initProject ( project , useDefaultProjectSettings ? ( ProjectImpl ) getDefaultProject ( ) : null ) ;

Overriding existing project files in the new project wizard has no effect


<nb> import NAMESPACE ;
 @ target ( ElementType . TYPE )
 @ retention ( RetentionPolicy . SOURCE )
 public @ interface Data {
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 String staticConstructor ( ) default STRING0 ;
 - int hashCodePrime ( ) default NUMBER0 ;
 }

Removed the equalsPrime thing because that s just needlessly putting implementation details in there


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class FrameworkPerfActivity extends Activity
 mLocalCheckBox = ( CheckBox ) findViewById ( R . id . local ) ;

 mLog = ( TextView ) findViewById ( R . id . log ) ;
 + mLog . setTextColor ( Color . RED ) ;

 PowerManager pm = ( PowerManager ) getSystemService ( POWER_SERVICE ) ;
 mPartialWakeLock = pm . newWakeLock ( PowerManager . PARTIAL_WAKE_LOCK , STRING0 ) ;


<nb> public class NetworkDiagnostics {

 public void recordSuccess ( String msg ) {
 maybeFixupTimes ( ) ;
 + result = SUCCEEDED + STRING0 + msg ;
 if ( mCountDownLatch != null ) {
 mCountDownLatch . countDown ( ) ;
 }
 - result = SUCCEEDED + STRING0 + msg ;
 }

 public void recordFailure ( String msg ) {
 maybeFixupTimes ( ) ;
 + result = FAILED + STRING0 + msg ;
 if ( mCountDownLatch != null ) {
 mCountDownLatch . countDown ( ) ;
 }
 - result = FAILED + STRING0 + msg ;
 }

 private void maybeFixupTimes ( ) {

Don t lose critical success failure messages


<nb> public class RoutingRequest implements Cloneable , Serializable {

 COMMENT
 public double stairsReluctance = FLOAT0 ;
 +
 + COMMENT
 + @ setter
 + public double turnReluctance = FLOAT1 ;

 COMMENT
 COMMENT
 <nb> public class PlainStreetEdge extends StreetEdge implements Cloneable {

 long turnTime = ( long ) Math . ceil ( realTurnCost ) ;
 time += turnTime ;
 - weight += realTurnCost ;
 + weight += options . turnReluctance * realTurnCost ;
 }

 int timeLong = ( int ) Math . ceil ( time ) ;

add a turn reluctance for weighing turn costs


<nb>
 package NAMESPACE ;

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


<nb> public class AntFileImpl extends LightPsiFileBase implements AntFile {
 @ notnull
 public PsiElement [ ] getChildren ( ) {
 synchronized ( PsiLock . LOCK ) {
 + buildPropertiesIfNeeded ( ) ;
 if ( myChildren == null ) {
 final AntProject project = getAntProject ( ) ;
 final ArrayList < PsiElement > children = new ArrayList < PsiElement > ( NUMBER0 ) ;
 <nb> public interface PropertiesTokenTypes {

 TokenSet COMMENTS = TokenSet . create ( END_OF_LINE_COMMENT ) ;
 TokenSet WHITESPACES = TokenSet . create ( WHITE_SPACE ) ;
 - TokenSet PROPERTIES_TYPES_TO_IGNORE = TokenSet . create ( END_OF_LINE_COMMENT , VALUE_CHARACTERS ) ;
 + TokenSet PROPERTIES_TYPES_TO_IGNORE = TokenSet . create ( END_OF_LINE_COMMENT ) ;
 }

make highlighter work on property value change


<nb> public class WXStreamModule extends WXModule {
 WXBridgeManager . getInstance ( ) . callback ( mWXSDKInstance . getInstanceId ( ) , callback ,
 ( response == null || response . originalData == null ) ? STRING0 :
 readAsString ( response . originalData ,
 - headers . get ( STRING1 )
 + headers != null ? headers . get ( STRING1 ) : STRING2
 ) ) ;
 }
 } , null ) ;


<nb> public class PopupWindow {
 if ( isShowing ( ) && mPopupView != null ) {
 unregisterForScrollChanged ( ) ;

 - mWindowManager . removeView ( mPopupView ) ;
 -
 - if ( mPopupView != mContentView && mPopupView instanceof ViewGroup ) {
 - ( ( ViewGroup ) mPopupView ) . removeView ( mContentView ) ;
 - }
 - mPopupView = null ;
 - mIsShowing = false ;
 -
 - if ( mOnDismissListener != null ) {
 - mOnDismissListener . onDismiss ( ) ;
 + try {
 + mWindowManager . removeView ( mPopupView ) ;
 + } finally {
 + if ( mPopupView != mContentView && mPopupView instanceof ViewGroup ) {
 + ( ( ViewGroup ) mPopupView ) . removeView ( mContentView ) ;
 + }
 + mPopupView = null ;
 + mIsShowing = false ;
 +
 + if ( mOnDismissListener != null ) {
 + mOnDismissListener . onDismiss ( ) ;
 + }
 }
 }
 }

Prevent crash when dismissing a PopupWindow that didn t have time to show up


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

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public final class BaseFileSystemTest {
 private FileSystemMasterClient mFileSystemMasterClient ;

 private class DummyAlluxioFileSystem extends BaseFileSystem {
 + public DummyAlluxioFileSystem ( FileSystemContext context ) {
 + super ( context ) ;
 + }
 }

 COMMENT
 <nb> public final class BaseFileSystemTest {
 COMMENT
 @ before
 public void before ( ) {
 - mFileSystem = new DummyAlluxioFileSystem ( ) ;
 mFileContext = PowerMockito . mock ( FileSystemContext . class ) ;
 - Whitebox . setInternalState ( mFileSystem , STRING0 , mFileContext ) ;
 + mFileSystem = new DummyAlluxioFileSystem ( mFileContext ) ;
 mFileSystemMasterClient = PowerMockito . mock ( FileSystemMasterClient . class ) ;
 Mockito . when ( mFileContext . acquireMasterClient ( ) ) . thenReturn ( mFileSystemMasterClient ) ;
 }

Remove use of whitebox in BaseFileSystemTest


<nb> public class DeepLearningModel extends SupervisedModel < DeepLearningModel , DeepLea
 try {
 final long now = System . currentTimeMillis ( ) ;
 epoch_counter = ( float ) model_info ( ) . get_processed_total ( ) / training_rows ;
 - final double time_last_iter_millis = now - _timeLastScoreEnter ;
 + final double time_last_iter_millis = Math . max ( NUMBER0 , now - _timeLastScoreEnter ) ;

 SINGLE
 SINGLE


<nb> public class SemanticGraph implements Serializable {
 addVertex ( govVertex ) ;
 addVertex ( depVertex ) ;
 addEdge ( govVertex , depVertex , reln , Double . NEGATIVE_INFINITY , d . extra ( ) ) ;
 - }
 -
 - else { SINGLE
 + } else { SINGLE
 IndexedWord depVertex = new IndexedWord ( docID , sentIndex , dep . index ( ) , depLabel ) ;
 depVertex . setTag ( dep . highestNodeWithSameHead ( ) . headTagNode ( ) . value ( ) ) ;
 if ( lemmatize ) {
 depVertex . setLemma ( morphology . lemma ( depVertex . value ( ) , depVertex . tag ( ) , true ) ) ;
 }

 + addVertex ( depVertex ) ;
 roots . add ( depVertex ) ;
 }
 }

Fix a bug when a SemanticGraph with a single node and no edges would not be constructed with the node


<nb> public class WifiScanner {
 FullScanResult result = ( FullScanResult ) msg . obj ;
 ( ( ScanListener ) listener ) . onFullResult ( result ) ;
 return ;
 + case CMD_PERIOD_CHANGED :
 + ( ( ScanListener ) listener ) . onPeriodChanged ( msg . arg1 ) ;
 + return ;
 case CMD_AP_FOUND :
 ( ( HotlistListener ) listener ) . onFound (
 ( ( ParcelableScanResults ) msg . obj ) . getResults ( ) ) ;

Implement onPeriodChanged and multiple scans of same channels


<nb> public class TcpOutgoingConnector < T > implements OutgoingConnector < T > {

 SINGLE
 try {
 - SocketException lastFailure = null ;
 + Exception lastFailure = null ;
 for ( InetAddress candidate : candidateAddresses ) {
 LOGGER . debug ( STRING0 , candidate ) ;
 SocketChannel socketChannel ;
 try {
 socketChannel = SocketChannel . open ( new InetSocketAddress ( candidate , address . getPort ( ) ) ) ;
 - } catch ( SocketException e ) {
 + } catch ( java . net . ConnectException e ) {
 LOGGER . debug ( STRING1 , candidate ) ;
 lastFailure = e ;
 continue ;
 + } catch ( SocketException e ) {
 + LOGGER . debug ( STRING1 , candidate ) ;
 + lastFailure = new RuntimeException ( String . format ( STRING2 , candidate ) , e ) ;
 + continue ;
 }
 LOGGER . debug ( STRING3 , candidate ) ;
 return new SocketConnection < T > ( socketChannel , serializer ) ;

Added some trace to try to track down windows ci failure


<nb> class DropboxRemoteClient implements RemoteClient {
 STRING0 , fileDownload ) ;
 }
 }
 + try {
 + if ( ! TODO_TXT_TMP_FILE . exists ( ) ) {
 + Util . createParentDirectory ( TODO_TXT_TMP_FILE ) ;
 + TODO_TXT_TMP_FILE . createNewFile ( ) ;
 + }
 + } catch ( IOException e ) {
 + throw new RemoteException ( STRING1 , e ) ;
 + }

 try {
 Util . writeFile ( fileDownload . is , TODO_TXT_TMP_FILE ) ;


<nb> public class GLRenderer extends HardwareRenderer {
 mAttachedLayers . add ( hardwareLayer ) ;
 }

 + boolean hasContext ( ) {
 + return sEgl != null && mEglContext != null
 + && mEglContext . equals ( sEgl . eglGetCurrentContext ( ) ) ;
 + }
 +
 @ override
 void onLayerDestroyed ( HardwareLayer layer ) {
 if ( mGlCanvas != null ) {
 mGlCanvas . cancelLayerUpdate ( layer ) ;
 }
 - if ( Looper . myLooper ( ) == Looper . getMainLooper ( ) && validate ( ) ) {
 + if ( hasContext ( ) ) {
 long backingLayer = layer . detachBackingLayer ( ) ;
 nDestroyLayer ( backingLayer ) ;
 }


<nb> public class ThreadPool extends AbstractComponent {
 public void run ( ) {
 try {
 runnable . run ( ) ;
 - } catch ( Exception e ) {
 - logger . warn ( STRING0 , e , runnable . toString ( ) ) ;
 + } catch ( Throwable t ) {
 + logger . warn ( STRING0 , t , runnable . toString ( ) ) ;
 }
 }

catch Throwable instead of Exception in LoggingRunnable run


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

 import NAMESPACE ;
 import NAMESPACE ;

 - public class TimedAnnotationBeanPostProcessor extends AbstractProxyingBeanPostProcessor implements
 - Ordered {
 + public class TimedAnnotationBeanPostProcessor extends AbstractProxyingBeanPostProcessor {

 private static final long serialVersionUID = - NUMBER0 ;

 <nb> public class TimedAnnotationBeanPostProcessor extends AbstractProxyingBeanPostPr
 return new TimedMethodInterceptor ( metrics , targetClass ) ;
 }

 - @ override
 - public int getOrder ( ) {
 - return HIGHEST_PRECEDENCE ;
 - }
 -
 }

Remove Ordered interface from TimedAnnotationBeanPostProcessor


<nb> public class DevicePolicyManager {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public boolean setPermittedInputMethods ( ComponentName admin , List < String > packageNames ) {
 if ( mService != null ) {

Fix mangled javadoc for setPermittedInputMethods


<nb>
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class TestFragmentTransaction extends FragmentTransaction {

 @ override
 public int commit ( ) {
 - fragmentManager . addFragment ( containerViewId , tag , fragment , isReplacing ) ;
 + new Handler ( ) . post ( new Runnable ( ) {
 + @ override
 + public void run ( ) {
 + fragmentManager . addFragment ( containerViewId , tag , fragment , isReplacing ) ;
 + }
 + } ) ;
 return NUMBER0 ;
 }

TestFragmentTransaction simulates real Android behavior of posting the commit


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

 import NAMESPACE ;
 <nb> public class TagLibConfiguration implements Configuration
 SINGLE
 TldProcessor processor = new TldProcessor ( context ) ;
 context . setAttribute ( TldProcessor . __taglib_processor , processor ) ;
 +
 SINGLE
 + Resource tld = null ;
 Iterator iter = tlds . iterator ( ) ;
 while ( iter . hasNext ( ) )
 {
 try
 {
 - Resource tld = ( Resource ) iter . next ( ) ;
 + tld = ( Resource ) iter . next ( ) ;
 if ( Log . isDebugEnabled ( ) ) Log . debug ( STRING0 + tld ) ;
 processor . parse ( tld ) ;
 }
 catch ( Exception e )
 {
 - Log . warn ( e ) ;
 + Log . warn ( STRING1 + tld , e ) ;
 }
 }
 }

Enhancing Warning log entry to output Resource if defined that cannot be parsed


<nb> public abstract class ViewGroup extends View implements ViewParent , ViewManager
 return more ;
 }

 - float alpha = child . getAlpha ( ) ;
 - SINGLE
 - if ( alpha <= ViewConfiguration . ALPHA_THRESHOLD && ( child . mPrivateFlags & ALPHA_SET ) == NUMBER0 &&
 - ! ( child instanceof SurfaceView ) ) {
 - return more ;
 - }
 -
 if ( hardwareAccelerated ) {
 SINGLE
 SINGLE
 <nb> public abstract class ViewGroup extends View implements ViewParent , ViewManager
 }
 }

 + float alpha = child . getAlpha ( ) ;
 if ( transformToApply != null || alpha < FLOAT0 || ! child . hasIdentityMatrix ( ) ) {
 if ( transformToApply != null || ! childHasIdentityMatrix ) {
 int transX = NUMBER0 ;

Remove dangerous and useless optimization


<nb> public class RegionUtils {
 COMMENT
 COMMENT
 private static void initSDKRegions ( ) {
 - ClassLoader classLoader = RegionUtils . class . getClassLoader ( ) ;
 - InputStream inputStream = classLoader . getResourceAsStream ( STRING0 ) ;
 + InputStream inputStream = RegionUtils . class . getResourceAsStream ( STRING0 ) ;
 initRegions ( inputStream ) ;
 }


<nb> public class DefaultCacheAwareExternalResourceAccessor implements CacheAwareExte
 throw new IOException ( STRING0 + destFile + STRING1 ) ;
 }

 + if ( srcFile . length ( ) == NUMBER0 ) {
 + throw new IOException ( STRING2 + srcFile + STRING3 ) ;
 + }
 +
 FileInputStream input = new FileInputStream ( srcFile ) ;
 try {
 FileOutputStream output = new FileOutputStream ( destFile ) ;

Check the source file length before the copy


<nb> public class Progress extends SherlockActivity {
 @ override
 public void run ( ) {
 mProgress += NUMBER0 ;
 -
 +
 SINGLE
 int progress = ( Window . PROGRESS_END - Window . PROGRESS_START ) / NUMBER1 * mProgress ;
 setSupportProgress ( progress ) ;
 -
 +
 if ( mProgress < NUMBER1 ) {
 mHandler . postDelayed ( mProgressRunner , NUMBER2 ) ;
 }
 }
 } ;
 -
 +
 private int mProgress = NUMBER1 ;
 -
 +
 @ override
 protected void onCreate ( Bundle savedInstanceState ) {
 setTheme ( SampleList . THEME ) ; SINGLE


<nb> final class SettingsTreeView extends JComponent implements Disposable , OptionsEd
 }
 SINGLE
 Icon nodeIcon = null ;
 - if ( node != null ) {
 - if ( NUMBER0 == node . getChildCount ( ) ) {
 + if ( value instanceof DefaultMutableTreeNode ) {
 + DefaultMutableTreeNode treeNode = ( DefaultMutableTreeNode ) value ;
 + if ( NUMBER0 == treeNode . getChildCount ( ) ) {
 nodeIcon = myTree . getEmptyHandle ( ) ;
 }
 - else if ( value instanceof DefaultMutableTreeNode ) {
 - DefaultMutableTreeNode treeNode = ( DefaultMutableTreeNode ) value ;
 + else {
 nodeIcon = myTree . isExpanded ( new TreePath ( treeNode . getPath ( ) ) )
 ? myTree . getExpandedHandle ( )
 : myTree . getCollapsedHandle ( ) ;

do not show collapsed icon if subnodes are filtered out


<nb>

 package NAMESPACE ;

 - import NAMESPACE ;
 -
 - public interface HasAndroidPlatformTarget extends BuildRule {
 + public interface HasAndroidPlatformTarget {

 COMMENT
 COMMENT

HasAndroidPlatformTarget no longer extends BuildRule


<nb> public class CreatureSpawnEvent extends EntityEvent implements Cancellable {
 COMMENT
 SLIME_SPLIT ,
 COMMENT
 + COMMENT
 + COMMENT
 + REINFORCEMENTS ,
 + COMMENT
 COMMENT
 COMMENT
 CUSTOM ,

Add SpawnReason for Entity Reinforcements


<nb> public class ZWaveController {
 this . enqueue ( switchAllCommandClass . allOnMessage ( ) ) ;
 continue ;
 }
 - logger . debug ( STRING0 , ( Object ) nodeId ) ;
 }
 }

 <nb> public class ZWaveController {
 this . enqueue ( switchAllCommandClass . allOffMessage ( ) ) ;
 continue ;
 }
 - logger . debug ( STRING1 , ( Object ) nodeId ) ;
 }
 }

removed excessive logging in allOn and allOff


<nb> public class OreDictionary
 COMMENT
 public static String getOreName ( int id )
 {
 - return id < idToName . size ( ) ? idToName . get ( id ) : STRING0 ;
 + return ( id >= NUMBER0 && id < idToName . size ( ) ) ? idToName . get ( id ) : STRING0 ;
 }

 COMMENT

Fixed ArrayIndexOutOfBoundsException in getOreName


<nb> public class SpiderTextParser extends SpiderParser {
 COMMENT
 private static final Pattern patternURL = Pattern . compile ( STRING0 , Pattern . CASE_INSENSITIVE ) ;

 - public static void main ( String [ ] args ) {
 - for ( char x = NUMBER0 ; x <= NUMBER1 ; x ++ ) {
 - System . err . println ( x ) ;
 - }
 - }
 -
 @ override
 public boolean parseResource ( HttpMessage message , Source source , int depth ) {
 log . debug ( STRING1 ) ;


<nb>
 package NAMESPACE ;

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

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

 + import NAMESPACE ;
 +
 public class EditPostActivity extends SherlockFragmentActivity {

 public static final String EXTRA_POSTID = STRING0 ;


<nb> public class AuthorizationRequestedDialog

 private I18NString ignoreString = Messages . getI18NString ( STRING0 ) ;

 - private JButton acceptButton
 - = new JButton ( ) ;
 + private JButton acceptButton = new JButton ( acceptString . getText ( ) ) ;

 private JButton rejectButton = new JButton ( rejectString . getText ( ) ) ;


<nb> public class SpecialFiles {
 excludedFiles . add ( STRING0 ) ;
 excludedFiles . add ( STRING1 ) ;
 excludedFiles . add ( STRING2 ) ;
 + excludedFiles . add ( STRING3 ) ;
 + excludedFiles . add ( STRING4 ) ;

 SINGLE
 excludedFiles . add ( STRING5 ) ;

 + SINGLE
 + excludedFiles . add ( STRING6 ) ;
 +
 SINGLE
 excludedFiles . add ( STRING7 ) ;
 excludedFiles . add ( STRING8 ) ;

Disable some reflection tests on Android


<nb> public abstract class ServletInputStream extends InputStream {

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public abstract int dataAvailable ( ) ;

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public abstract boolean isFinished ( ) ;

 <nb> public abstract class ServletInputStream extends InputStream {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public abstract boolean isReady ( ) ;

 <nb> public abstract class ServletOutputStream extends OutputStream {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public abstract boolean canWrite ( ) ;

 <nb> public interface ServletRequest {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public int getContentLength ( ) ;

 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public long getContentLengthLong ( ) ;


<nb> import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ErrorTable extends JTable {
 public ErrorTable ( final Editor editor ) {
 super ( new DefaultTableModel ( columnNames , NUMBER0 ) ) ;

 + setSelectionMode ( ListSelectionModel . SINGLE_SELECTION ) ;
 +
 this . editor = editor ;
 JTableHeader header = getTableHeader ( ) ;


<nb> public class DragTopLayout extends FrameLayout {
 } else {
 panelState = PanelState . COLLAPSED ;
 }
 - if ( wizard . panelListener != null ) {
 - wizard . panelListener . onPanelStateChanged ( panelState ) ;
 - }
 } else {
 panelState = PanelState . SLIDING ;
 }
 + if ( wizard . panelListener != null ) {
 + wizard . panelListener . onPanelStateChanged ( panelState ) ;
 + }
 super . onViewDragStateChanged ( state ) ;
 }
 } ;


<nb> public interface Player extends HumanEntity , CommandSender {
 public void kickPlayer ( String message ) ;

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public void chat ( String msg ) ;
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class ExpressionCodegen extends JetVisitor < StackValue , StackValue > {
 }

 private abstract class ForLoopGenerator {
 - protected JetForExpression expression ;
 - protected Type loopRangeType ;
 - protected JetType expressionType ;
 - protected VariableDescriptor parameterDescriptor ;
 - Label end = new Label ( ) ;
 + protected final JetForExpression expression ;
 + protected final Type loopRangeType ;
 + protected final JetType expressionType ;
 + protected final VariableDescriptor parameterDescriptor ;
 + protected final Label end = new Label ( ) ;

 public ForLoopGenerator ( JetForExpression expression , Type loopRangeType ) {
 this . expression = expression ;
 <nb> public class ExpressionCodegen extends JetVisitor < StackValue , StackValue > {
 StackValue . onStack ( intermediateType ) . put ( type , v ) ;
 }
 else {
 - throw new UnsupportedOperationException ( ) ;
 + throw new UnsupportedOperationException ( STRING0 + descriptor ) ;
 }
 }


<nb> public class ListView extends AbsListView {
 previouslyFocusedRect . offset ( mScrollX , mScrollY ) ;

 final ListAdapter adapter = mAdapter ;
 - final int firstPosition = mFirstPosition ;
 - SINGLE
 - if ( adapter . getCount ( ) < getChildCount ( ) + firstPosition ) {
 + SINGLE
 + SINGLE
 + if ( adapter . getCount ( ) < getChildCount ( ) + mFirstPosition ) {
 mLayoutMode = LAYOUT_NORMAL ;
 layoutChildren ( ) ;
 }
 <nb> public class ListView extends AbsListView {
 Rect otherRect = mTempRect ;
 int minDistance = Integer . MAX_VALUE ;
 final int childCount = getChildCount ( ) ;
 + final int firstPosition = mFirstPosition ;

 for ( int i = NUMBER0 ; i < childCount ; i ++ ) {
 SINGLE

Don t cache mFirstPosition before a layoutChildren in ListView onFocusChanged


<nb> final class InjectorImpl implements Injector , Lookups {
 return getProvider ( type ) . get ( ) ;
 }

 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 private final ThreadLocal < Object [ ] > localContext ;
 +
 COMMENT
 COMMENT
 COMMENT

Add comment explaining InjectorImpl localContext


<nb> public class WindowManagerService extends IWindowManager . Stub
 boolean mClientFreezingScreen = false ;
 int mAppsFreezingScreen = NUMBER0 ;
 int mLastWindowForcedOrientation = ActivityInfo . SCREEN_ORIENTATION_UNSPECIFIED ;
 - int mLastKeyguardForcedOrientation = ActivityInfo . SCREEN_ORIENTATION_NOSENSOR ;
 + int mLastKeyguardForcedOrientation = ActivityInfo . SCREEN_ORIENTATION_UNSPECIFIED ;

 int mLayoutSeq = NUMBER0 ;

Do not force keyguard orientation to no sensor


<nb> public class JavaMatchingVisitor extends JavaElementVisitor {
 }
 }

 - @ override
 - public void visitDocTagValue ( final PsiDocTagValue value ) {
 - final PsiDocTagValue value2 = ( PsiDocTagValue ) myMatchingVisitor . getElement ( ) ;
 - final boolean isTypedVar = myMatchingVisitor . getMatchContext ( ) . getPattern ( ) . isTypedVar ( value ) ;
 -
 - if ( isTypedVar ) {
 - myMatchingVisitor . setResult ( myMatchingVisitor . handleTypedElement ( value , value2 ) ) ;
 - }
 - else {
 - myMatchingVisitor . setResult ( value . textMatches ( value2 ) ) ;
 - }
 - }
 -
 private static boolean isNotInstanceModifier ( final PsiModifierList list2 ) {
 return list2 . hasModifierProperty ( PsiModifier . STATIC ) ||
 list2 . hasModifierProperty ( PsiModifier . ABSTRACT ) ;

remove visitDocTagValue method doc tag value matching is handled in visitDocTag


<nb> public final class Main {
 JPanel panel = new JPanel ( new GridBagLayout ( ) ) ;
 taggerDialog . add ( panel ) ;
 taggerArea = new JTextPane ( ) ;
 + taggerArea . registerKeyboardAction ( new ActionListener ( ) {
 + @ override
 + public void actionPerformed ( ActionEvent e ) {
 + taggerArea . copy ( ) ;
 + }
 + } , KeyStroke . getKeyStroke ( KeyEvent . VK_C , KeyEvent . CTRL_DOWN_MASK ) , JComponent . WHEN_IN_FOCUSED_WINDOW ) ;
 taggerArea . setContentType ( STRING0 ) ;
 taggerArea . setEditable ( false ) ;
 GridBagConstraints c = new GridBagConstraints ( ) ;

Allow copying from taggerArea to clipboard


<nb> class MappedPersistenceWindow extends LockableWindow
 public Buffer getOffsettedBuffer ( long id )
 {
 int offset = ( int ) ( id - buffer . position ( ) ) * recordSize ;
 - buffer . setOffset ( offset ) ;
 - return buffer ;
 + try
 + {
 + buffer . setOffset ( offset ) ;
 + return buffer ;
 + } catch ( IllegalArgumentException e )
 + {
 + throw new IllegalArgumentException ( STRING0 + id + STRING1 + buffer . position ( )
 + + STRING2 + recordSize , e ) ;
 + }
 }
 }

Added better error message for offset error


<nb> public interface EditorTextFieldProvider {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 @ notnull
 EditorTextField getEditorField ( @ notnull Language language , @ notnull Project project , @ notnull Iterable < EditorCustomization > features ) ;


<nb> public class ReaderBlogTable {
 if ( TextUtils . isEmpty ( url ) ) {
 return NUMBER0 ;
 }
 - String normUrl = UrlUtils . normalizeUrl ( url ) ;
 - String [ ] args = { normUrl , normUrl } ;
 + String [ ] args = { UrlUtils . normalizeUrl ( url ) } ;
 return SqlUtils . longForQuery ( ReaderDatabase . getReadableDb ( ) ,
 - STRING0 ,
 + STRING1 ,
 args ) ;
 }

 <nb> public class ReaderBlogTable {
 if ( TextUtils . isEmpty ( url ) ) {
 return NUMBER0 ;
 }
 - String normUrl = UrlUtils . normalizeUrl ( url ) ;
 - String [ ] args = { normUrl , normUrl } ;
 + String [ ] args = { UrlUtils . normalizeUrl ( url ) } ;
 return SqlUtils . longForQuery ( ReaderDatabase . getReadableDb ( ) ,
 - STRING2 ,
 + STRING3 ,
 args ) ;
 }

Updated getBlogIdFromUrl and getFeedIdFromUrl to only check the appropriate url column


<nb> public class ConfluenceToPDFMojo extends AbstractMojo {
 COMMENT
 private String [ ] princeArgs ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + private boolean failOnCommandLineError ;
 +
 public void execute ( ) throws MojoExecutionException {
 File outputDir = new File ( pdf ) . getParentFile ( ) ;
 if ( ! outputDir . exists ( ) ) {
 <nb> public class ConfluenceToPDFMojo extends AbstractMojo {
 if ( rc == NUMBER0 ) {
 getLog ( ) . info ( STRING0 + getPDFFileName ( ) ) ;
 } else {
 - throw new MojoExecutionException ( STRING1 + rc ) ;
 + if ( failOnCommandLineError ) {
 + throw new MojoExecutionException ( STRING1 + rc ) ;
 + } else {
 + getLog ( ) . warn ( STRING2 + rc ) ;
 + }
 }
 }

avoided the build failing if the prince executable is not configured or installed properly


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

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

 - @ path ( STRING0 )
 public class TestJetty9WebServer
 {
 -
 - @ get
 - public Response index ( )
 - {
 - return Response . status ( Status . NO_CONTENT )
 - . build ( ) ;
 - }
 -
 @ test
 public void shouldBeAbleToRestart ( ) throws Throwable
 {


<nb> class ClsWrapperStubPsiFactory extends StubPsiFactory {
 @ override
 public PsiClass createClass ( @ notnull PsiClassStub stub ) {
 final PsiElement origin = getOriginalElement ( stub ) ;
 - if ( origin == null ) return delegate . createClass ( stub ) ;
 -
 return new ClsClassImpl ( stub ) {
 @ notnull
 @ override
 public PsiElement getNavigationElement ( ) {
 - return origin ;
 + if ( origin != null ) return origin ;
 +
 + return super . getNavigationElement ( ) ;
 + }
 +
 + @ nullable
 + @ override
 + public PsiClass getSourceMirrorClass ( ) {
 + return null ;
 }
 } ;
 }

Prevent recursion when computing parameter list of KtLightMethod


<nb> public class ReactWebViewManager extends SimpleViewManager < WebView > {
 }
 if ( source . hasKey ( STRING0 ) ) {
 String url = source . getString ( STRING0 ) ;
 + String previousUrl = view . getUrl ( ) ;
 + if ( previousUrl != null && previousUrl . equals ( url ) ) {
 + return ;
 + }
 if ( source . hasKey ( STRING1 ) ) {
 String method = source . getString ( STRING1 ) ;
 if ( method . equals ( HTTP_METHOD_POST ) ) {

Stop Reload Android Webview On Same URL Before


<nb> public class DataImport extends Composite

 gridViewer_ . setOption ( STRING0 ,
 STRING1 + toLocaleString ( maxRows_ ) +
 - STRING2 + Integer . toString ( response . getParsingErrors ( ) ) +
 - STRING3 ) ;
 -
 + STRING2 + (
 + response . getParsingErrors ( ) > NUMBER0 ?
 + Integer . toString ( response . getParsingErrors ( ) ) + STRING3 : STRING4 )
 + ) ;

 assignColumnDefinitions ( response , importOptions_ . getColumnDefinitions ( ) ) ;

hide parsing errors count from data import footer when no errors exists


<nb> public class NeoServerFunctionalTest {
 FunctionalTestHelper functionalTestHelper = new FunctionalTestHelper ( server ) ;

 Client client = Client . create ( ) ;
 - SINGLE
 - SINGLE
 ClientResponse response = client . resource ( functionalTestHelper . getWebadminUri ( ) ) . get ( ClientResponse . class ) ;

 assertThat ( response . getStatus ( ) , is ( NUMBER0 ) ) ;


<nb> public class SimpleSuspendableClassifier implements SuspendableClassifier {
 }

 SimpleSuspendableClassifier ( String suspendablesFileName ) {
 - readSuspendablesFile ( suspendablesFileName , suspendables , suspendables ) ;
 + readSuspendablesFile ( suspendablesFileName , suspendables , suspendableClasses ) ;
 }

 Set < String > getSuspendables ( ) {


<nb>
 package NAMESPACE ;

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

 + import NAMESPACE ;
 +
 COMMENT
 COMMENT
 COMMENT
 <nb> public class IsEmptyCollection < E > extends TypeSafeMatcher < Collection < ? extends E
 COMMENT
 @ factory
 public static < E > Matcher < Collection < E > > emptyCollectionOf ( Class < E > type ) {
 - @ suppresswarnings ( { STRING0 , STRING1 } )
 - final Matcher < Collection < E > > result = ( Matcher ) empty ( ) ;
 - return result ;
 + return ( Matcher ) empty ( ) ;
 }
 }


<nb> public abstract class AbstractNumericTests extends ElasticsearchIntegrationTest
 . endObject ( ) ) ) ;
 }
 indexRandom ( true , builders ) ;
 - ensureGreen ( ) ; SINGLE
 }

 public abstract void testEmptyAggregation ( ) throws Exception ;
 <nb> public class ValueCountTests extends ElasticsearchIntegrationTest {
 }
 client ( ) . admin ( ) . indices ( ) . prepareFlush ( ) . execute ( ) . actionGet ( ) ;
 client ( ) . admin ( ) . indices ( ) . prepareRefresh ( ) . execute ( ) . actionGet ( ) ;
 - ensureGreen ( ) ;
 }

 @ test


<nb> public class GroovyPlugin implements Plugin {
 groovySourceSet . getGroovy ( ) . srcDir ( String . format ( STRING0 , sourceSet . getName ( ) ) ) ;
 sourceSet . getAllJava ( ) . add ( groovySourceSet . getGroovy ( ) . matching ( sourceSet . getJavaSourcePatterns ( ) ) ) ;

 - TaskDependency javaCompileTaskDependency = project . getTasks ( ) . getByName ( sourceSet . getCompileTaskName ( ) ) . getTaskDependencies ( ) ;
 String compileTaskName = String . format ( STRING1 , sourceSet . getCompileTaskName ( ) ) ;
 GroovyCompile compile = project . getTasks ( ) . add ( compileTaskName , GroovyCompile . class ) ;
 javaPlugin . configureForSourceSet ( sourceSet , compile ) ;
 - compile . dependsOn ( javaCompileTaskDependency ) ;
 compile . dependsOn ( sourceSet . getCompileTaskName ( ) ) ;
 compile . setDescription ( String . format ( STRING2 , sourceSet . getName ( ) ) ) ;
 compile . conventionMapping ( STRING3 , new ConventionValue ( ) {

Removed original fix for missing compileTest on compile dependency for Groovy projects


<nb> public interface Vertx extends Measured {
 COMMENT
 COMMENT
 COMMENT
 - @ genignore
 void deployVerticle ( String name , DeploymentOptions options , Handler < AsyncResult < String > > completionHandler ) ;

 COMMENT

Remove GenIgnore on deployVerticle String name DeploymentOptions options Handler AsyncResult String completionHandler as that s something we can do now


<nb> public class DimensionManager
 WorldSettings worldSettings = new WorldSettings ( overworld . getWorldInfo ( ) ) ;

 WorldServer world = ( dim == NUMBER0 ? overworld : new WorldServerMulti ( mcServer , savehandler , overworld . getWorldInfo ( ) . getWorldName ( ) , dim , worldSettings , overworld , mcServer . theProfiler ) ) ;
 - MinecraftForge . EVENT_BUS . post ( new WorldEvent . Load ( world ) ) ;
 world . addWorldAccess ( new WorldManager ( mcServer , world ) ) ;
 + MinecraftForge . EVENT_BUS . post ( new WorldEvent . Load ( world ) ) ;
 if ( ! mcServer . isSinglePlayer ( ) )
 {
 world . getWorldInfo ( ) . setGameType ( mcServer . getGameType ( ) ) ;

Fix problem with spawning custom entities in hotloaded dimensions


<nb> public final class RingBuffer < T > implements SequenceManager
 @ override
 public SequenceBatch nextSequenceBatch ( final SequenceBatch sequenceBatch )
 {
 - final long sequence = claimStrategy . incrementAndGet ( sequenceBatch . getSize ( ) ) ;
 + final int batchSize = sequenceBatch . getSize ( ) ;
 + if ( batchSize > events . length )
 + {
 + final String msg = STRING0 + batchSize + STRING1 + events . length ;
 + throw new IllegalArgumentException ( msg ) ;
 + }
 +
 + final long sequence = claimStrategy . incrementAndGet ( batchSize ) ;
 sequenceBatch . setEnd ( sequence ) ;
 claimStrategy . ensureSequencesAreInRange ( sequence , sequencesToTrack ) ;
 return sequenceBatch ;

Do not allow a batch size greater than the ring buffer size


<nb> public class $ { binding - name } Binding extends AbstractActiveBinding < $ { binding - name
 }

 public void deactivate ( ) {
 - SINGLE
 + SINGLE
 SINGLE
 }

 <nb> public class $ { binding - name } Binding extends AbstractActiveBinding < $ { binding - name
 SINGLE
 logger . debug ( STRING0 ) ;
 }
 -
 -
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - @ override
 - protected boolean providesBindingFor ( String itemName ) {
 - SINGLE
 - return true ;
 - }
 -
 -
 +
 COMMENT
 COMMENT
 COMMENT

removed providesBindingFor method from archetype


<nb> public class MovieTools {
 languageCode , tmdbId ) ;
 if ( movieDetails . tmdbMovie ( ) == null || movieDetails . released == null ) {
 SINGLE
 - Timber . d ( STRING0 ) ;
 + Timber . d ( STRING1 + tmdbId + STRING2 ) ;
 continue ;
 }


<nb> public class NanoXmlUtil {
 }
 catch ( XMLException e ) {
 if ( e . getException ( ) instanceof ParserStoppedException ) return ;
 - LOG . error ( e ) ;
 + SINGLE
 }
 finally {
 reader . close ( ) ;

commented error due to invalid xml different tag names for element start and end


<nb> public abstract class HttpResolution {
 }

 client = vertx . createHttpClient ( ) ;
 + client . setKeepAlive ( false ) ; SINGLE
 if ( proxyHost != null ) {
 client . setHost ( proxyHost ) ;
 if ( proxyPort != NUMBER0 ) {

Don t use keep alive for http resolution as not all servers will support this


<nb> public class ConvertProperties implements Runnable
 new Rename ( STRING0 , STRING1 ) ,
 new Rename ( STRING2 , STRING3 ) ,
 new Rename ( STRING0 , STRING1 ) ,
 + new Rename ( STRING4 , STRING5 ) ,
 new Rename ( STRING6 , STRING7 ) ,
 new Rename ( STRING8 , STRING9 ) ,
 new Rename ( STRING10 , STRING11 ) ,


<nb> public class ApkMojo extends AbstractAndroidMojo {
 }
 catch ( Exception e )
 {
 - getLog ( ) . error ( STRING0 + e . getMessage ( ) , e ) ;
 + throw new MojoExecutionException ( STRING1 , e ) ;
 }
 }
 }

Never swallow an exception unless there is a very specific and well documented reason to do so


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

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class MessageProcessorsResource extends RestResource {
 @ apioperation ( value = STRING0 )
 @ path ( STRING1 )
 public MessageProcessorsConfigWithDescriptors config ( ) {
 + checkPermission ( RestPermissions . CLUSTER_CONFIG_ENTRY_READ ) ;
 final MessageProcessorsConfig config = clusterConfigService . getOrDefault ( MessageProcessorsConfig . class ,
 MessageProcessorsConfig . defaultConfig ( ) ) ;

 <nb> public class MessageProcessorsResource extends RestResource {
 @ apioperation ( value = STRING2 )
 @ path ( STRING1 )
 public MessageProcessorsConfigWithDescriptors updateConfig ( @ apiparam ( name = STRING1 , required = true ) final MessageProcessorsConfigWithDescriptors configWithDescriptors ) {
 + checkPermission ( RestPermissions . CLUSTER_CONFIG_ENTRY_EDIT ) ;
 final MessageProcessorsConfig config = configWithDescriptors . toConfig ( ) ;

 clusterConfigService . write ( config . withProcessors ( processorClassNames ) ) ;

Add missing permission checks to MessasgeProcessorsResource


<nb> public class Util {
 }

 + static boolean isContinuation ( byte opCode ) {
 + return opCode == Constants . OPCODE_CONTINUATION ;
 + }
 +
 +
 static CloseCode getCloseCode ( int code ) {
 if ( code > NUMBER0 && code < NUMBER1 ) {
 return CloseCodes . NORMAL_CLOSURE ;
 <nb> public abstract class WsFrameBase {
 }
 } else {
 if ( continuationExpected ) {
 - if ( opCode != Constants . OPCODE_CONTINUATION ) {
 + if ( ! Util . isContinuation ( opCode ) ) {
 throw new WsIOException ( new CloseReason (
 CloseCodes . PROTOCOL_ERROR ,
 sm . getString ( STRING0 ) ) ) ;

Add a new utility method and make use of it will also be used in permessage deflate


<nb> public abstract class CodegenContext < T extends DeclarationDescriptor > {
 @ notnull
 public final ClassDescriptor getThisDescriptor ( ) {
 if ( thisDescriptor == null ) {
 - throw new UnsupportedOperationException ( ) ;
 + throw new UnsupportedOperationException ( STRING0 + this ) ;
 }
 return thisDescriptor ;
 }

Minor add assertion message to CodegenContext


<nb> public class GridItemDividerDecoration extends RecyclerView . ItemDecoration {

 @ override
 public void onDrawOver ( Canvas canvas , RecyclerView parent , RecyclerView . State state ) {
 + if ( parent . isAnimating ( ) ) return ;
 +
 final int childCount = parent . getChildCount ( ) ;
 final RecyclerView . LayoutManager lm = parent . getLayoutManager ( ) ;
 for ( int i = NUMBER0 ; i < childCount ; i ++ ) {

Don t draw grid dividers if RecyclerView is animating


<nb> public class NetworkLinkerLibrary {
 return request ;
 }

 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - COMMENT
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - COMMENT
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 -
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - COMMENT
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - COMMENT
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 -
 public DistanceLibrary getDistanceLibrary ( ) {
 return distanceLibrary ;
 }


<nb> public class StackStateAnimator {
 boolean hasDelays = mAnimationFilter . hasDelays ;
 boolean isDelayRelevant = yTranslationChanging || zTranslationChanging || scaleChanging ||
 alphaChanging || heightChanging || topInsetChanging ;
 - boolean noAnimation = wasAdded && ! mAnimationFilter . hasGoToFullShadeEvent ;
 + boolean noAnimation = wasAdded ;
 long delay = NUMBER0 ;
 long duration = mCurrentLength ;
 if ( hasDelays && isDelayRelevant || wasAdded ) {
 <nb> public class StackStateAnimator {

 SINGLE
 if ( yTranslationChanging ) {
 - if ( noAnimation ) {
 + if ( noAnimation && ! mAnimationFilter . hasGoToFullShadeEvent ) {
 child . setTranslationY ( viewState . yTranslation ) ;
 } else {
 startYTranslationAnimation ( child , viewState , duration , delay ) ;

Fixed a bug where the drag down animation was behaving wrong


<nb> final class WifiDisplayAdapter extends DisplayAdapter {
 updateRememberedDisplaysLocked ( ) ;
 scheduleStatusChangedBroadcastLocked ( ) ;
 }
 +
 + if ( mActiveDisplay != null && mActiveDisplay . getDeviceAddress ( ) . equals ( address )
 + && mDisplayDevice != null ) {
 + mDisplayDevice . setNameLocked ( mActiveDisplay . getFriendlyDisplayName ( ) ) ;
 + sendDisplayDeviceEventLocked ( mDisplayDevice , DISPLAY_DEVICE_EVENT_CHANGED ) ;
 + }
 }

 public void requestForgetLocked ( String address ) {
 <nb> final class WifiDisplayAdapter extends DisplayAdapter {
 } ;

 private final class WifiDisplayDevice extends DisplayDevice {
 - private final String mName ;
 + private String mName ;
 private final int mWidth ;
 private final int mHeight ;
 private final float mRefreshRate ;
 <nb> final class WifiDisplayAdapter extends DisplayAdapter {
 sendTraversalRequestLocked ( ) ;
 }

 + public void setNameLocked ( String name ) {
 + mName = name ;
 + mInfo = null ;
 + }
 +
 @ override
 public void performTraversalInTransactionLocked ( ) {
 setSurfaceInTransactionLocked ( mSurface ) ;

Update wifi display device name when renamed


<nb> public class SparkDl4jMultiLayer implements Serializable {
 if ( params . length ( ) != paramsLength )
 throw new IllegalStateException ( STRING0 + paramsLength + STRING1 + params . length ( ) ) ;
 JavaRDD < INDArray > results = rdd . sample ( true , FLOAT0 ) . mapPartitions ( new IterativeReduceFlatMap ( conf . toJson ( ) , this . params ) ) ;
 - log . debug ( STRING2 ) ;
 + log . info ( STRING2 ) ;
 INDArray newParams = results . aggregate ( Nd4j . zeros ( params . shape ( ) ) , new Add ( ) , new Add ( ) ) ;
 newParams . divi ( rdd . partitions ( ) . size ( ) ) ;
 network . setParameters ( newParams ) ;


<nb> public class MessageResource extends RestResource {
 try {
 return MessageTokens . create ( messages . analyze ( string , index ) ) ;
 } catch ( IndexNotFoundException e ) {
 - final String message = STRING0 + index + STRING1 ;
 + final String message = STRING0 + index + STRING2 ;
 LOG . error ( message , e ) ;
 throw new NotFoundException ( message ) ;
 }

Add missing whitespace to error message in MessageResource analyze


<nb> public class CompactPersistentActionCache implements ActionCache {
 }

 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 private static String validateIntegrity ( int indexerSize , byte [ ] validationRecord ) {
 if ( indexerSize == NUMBER0 ) {
 <nb> public class CompactPersistentActionCache implements ActionCache {
 } catch ( BufferUnderflowException e ) {
 return e . getMessage ( ) ;
 }
 -
 }

 public static Path cacheFile ( Path cacheRoot ) {

Fix doc for CompactPersistentActionCache validateIntegrity


<nb> public class HttpSpiContextHandler extends ContextHandler
 ex . printStackTrace ( writer ) ;
 writer . println ( STRING0 ) ;

 - writer . println ( STRING1 ) ;
 + writer . println ( STRING2 ) ;

 writer . close ( ) ;
 }


<nb> public class AudioTrack
 static private native final int native_get_min_buff_size (
 int sampleRateInHz , int channelConfig , int audioFormat ) ;

 - private native final int native_get_session_id ( ) ;
 -
 private native final int native_attachAuxEffect ( int effectId ) ;
 private native final void native_setAuxEffectSendLevel ( float level ) ;

Remove dead method native_get_session_id


<nb> public class Json {
 COMMENT
 public < T > T readValue ( String name , Class < T > type , Class elementType , T defaultValue , JsonValue jsonMap ) {
 JsonValue jsonValue = jsonMap . get ( name ) ;
 - if ( jsonValue == null ) return defaultValue ;
 - return ( T ) readValue ( type , elementType , jsonValue ) ;
 + return ( T ) readValue ( type , elementType , defaultValue , jsonValue ) ;
 }

 COMMENT
 COMMENT
 COMMENT
 public < T > T readValue ( Class < T > type , Class elementType , T defaultValue , JsonValue jsonData ) {
 + if ( jsonData == null ) return defaultValue ;
 return ( T ) readValue ( type , elementType , jsonData ) ;
 }


<nb> public class LdapDirectorySettingsImpl
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public void setGlobalPhonePrefix ( String prefix )
 {
 <nb> public class ConfigurationPanel
 extends TransparentPanel
 {
 COMMENT
 + COMMENT
 + COMMENT
 + private final static long serialVersionUID = NUMBER0 L ;
 +
 + COMMENT
 COMMENT
 COMMENT
 public ConfigurationPanel ( )
 <nb> public class ConfigurationPanel
 = new TransparentPanel ( new GridBagLayout ( ) ) ;
 add ( contentPanel ) ;

 - ResourceManagementService resources = NeomediaActivator . getResources ( ) ;
 + ResourceManagementService resources = NeomediaActivator . getResources ( ) ;
 GridBagConstraints gridBagConstraints = new GridBagConstraints ( ) ;

 JLabel defaultProfileLabel
 <nb> public class ConfigurationPanel
 public final String name ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public final String value ;


<nb> public class PluginCollection {
 System . loadLibrary ( STRING0 ) ;
 }

 - private static PluginCollection ourInstance ;
 + private static volatile PluginCollection ourInstance ;

 private final List < BuiltinFormatPlugin > myBuiltinPlugins =
 new LinkedList < BuiltinFormatPlugin > ( ) ;
 <nb> public class PluginCollection {

 public static PluginCollection Instance ( ) {
 if ( ourInstance == null ) {
 + createInstance ( ) ;
 + }
 + return ourInstance ;
 + }
 +
 + private static synchronized void createInstance ( ) {
 + if ( ourInstance == null ) {
 ourInstance = new PluginCollection ( ) ;

 - SINGLE
 + SINGLE
 + SINGLE
 for ( NativeFormatPlugin p : ourInstance . nativePlugins ( ) ) {
 ourInstance . myBuiltinPlugins . add ( p ) ;
 System . err . println ( STRING1 + p ) ;
 }
 }
 - return ourInstance ;
 }

 public static void deleteInstance ( ) {


<nb> public abstract class MixinDimensionManager {
 SINGLE
 }

 - System . out . println ( STRING0 + provider + STRING1 + worldType ) ;
 SINGLE
 DimensionRegistryModule . getInstance ( ) . registerAdditionalCatalog ( new SpongeDimensionType ( worldType , keepLoaded , provider , id ) ) ;
 providers . put ( id , provider ) ;