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

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

 COMMENT
 COMMENT
 COMMENT
 public class GroovyClassFinder implements ProjectComponent , PsiElementFinder {
 private Project myProject ;
 - private Map < GroovyFile , GrJavaFile > myJavaFiles = new HashMap < GroovyFile , GrJavaFile > ( ) ;
 + private Map < GroovyFile , GrJavaFile > myJavaFiles = new WeakHashMap < GroovyFile , GrJavaFile > ( ) ;
 private GroovyClassFinder . MyVFSListener myVfsListener ;

 public GroovyClassFinder ( Project project ) {


<nb> public class DiagnosticGroups {
 CheckSuspiciousCode . SUSPICIOUS_SEMICOLON ,
 CheckSuspiciousCode . SUSPICIOUS_COMPARISON_WITH_NAN ,
 CheckSuspiciousCode . SUSPICIOUS_IN_OPERATOR ,
 - CheckSuspiciousCode . SUSPICIOUS_INSTANCEOF_LEFT_OPERAND ) ;
 + CheckSuspiciousCode . SUSPICIOUS_INSTANCEOF_LEFT_OPERAND ,
 + TypeCheck . DETERMINISTIC_TEST ) ;

 public static final DiagnosticGroup DEPRECATED_ANNOTATIONS =
 DiagnosticGroups . registerGroup ( STRING0 ,

Add TypeCheck DETERMINISTIC_TEST check to suspiciousCode group


<nb> public class StickyListHeadersListView extends FrameLayout {
 private int getHeaderOverlap ( int position ) {
 boolean isStartOfSection = isStartOfSection ( position ) ;
 if ( ! isStartOfSection ) {
 - View header = mAdapter . getHeaderView ( position , null , mList ) ;
 - header . setLayoutParams ( new ViewGroup . LayoutParams (
 - LayoutParams . MATCH_PARENT , LayoutParams . WRAP_CONTENT ) ) ;
 + View header = mAdapter . getView ( position , null , mList ) ;

 final int width = getWidth ( ) ;
 final int parentWidthMeasureSpec = MeasureSpec . makeMeasureSpec (

Revert Fixes NPE in smoothScrollToPosition methods


<nb> public class NotesAdapter extends RecyclerView . Adapter < NotesAdapter . NoteViewHold
 }

 public void replaceNote ( Note newNote ) {
 - int position = getPositionForNoteUnfiltered ( newNote . getId ( ) ) ;
 - mNotes . set ( position , newNote ) ;
 + if ( newNote != null ) {
 + int position = getPositionForNoteUnfiltered ( newNote . getId ( ) ) ;
 + mNotes . set ( position , newNote ) ;
 + }
 }

 private boolean isValidPosition ( int position ) {


<nb> public class FlexibleDateConverterTest {
 assertTrue ( c . convert ( STRING0 ) . toString ( ) . startsWith ( STRING1 ) ) ;
 assertTrue ( c . convert ( STRING2 ) . toString ( ) . startsWith ( STRING3 ) ) ;
 assertTrue ( c . convert ( STRING4 ) . toString ( ) . startsWith ( STRING5 ) ) ;
 + assertTrue ( c . convert ( STRING6 ) . toString ( ) . startsWith ( STRING7 ) ) ;
 }

 }

add another flexdate testcase from an actual cisco router messages


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public class RussianPartialPosTagFilter extends PartialPosTagFilter {


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

 import NAMESPACE ;


<nb> import NAMESPACE ;
 @ retention ( RetentionPolicy . RUNTIME )
 @ target ( { ElementType . TYPE , ElementType . METHOD } )
 public @ interface Bombed {
 - int year ( ) default NUMBER0 ;
 + int year ( ) default NUMBER1 ;
 @ jdkconstants.calendarmonth int month ( ) ;
 int day ( ) ;
 int time ( ) default NUMBER2 ;


<nb> class TypeCollector {
 return ;
 }
 type = getElementType ( type ) ;
 - if ( allTypes . containsKey ( type . getKey ( ) ) || type . isPrimitive ( ) ) {
 + if ( allTypes . containsKey ( type . getKey ( ) ) || type . isPrimitive ( ) || type . isRawType ( ) ) {
 return ;
 }
 if ( hasNestedWildcard ( type ) ) {
 <nb> public class CycleFinderTest extends TestCase {
 assertNoCycles ( ) ;
 }

 + public void testIgnoreRawTypes ( ) throws Exception {
 + addSourceFile ( STRING0 , STRING1 ) ;
 + addSourceFile ( STRING2 , STRING3 ) ;
 + findCycles ( ) ;
 + assertNoCycles ( ) ;
 + }
 +
 private void assertContains ( String substr , String str ) {
 assertTrue ( STRING4 + substr + STRING5 + str + STRING6 , str . contains ( substr ) ) ;
 }


<nb> public class CompileUnit {
 STRING0 ;
 }
 } else {
 - txt += STRING1 + nodeSource . getName ( ) + STRING2 + storedSource . getName ( ) + STRING3 + node . getName ( ) + STRING4 ;
 + txt += STRING1 + nodeSource . getName ( ) + STRING2 + storedSource . getName ( ) + STRING5 + node . getName ( ) + STRING4 ;
 }
 nodeSource . getErrorCollector ( ) . addErrorAndContinue (
 new SyntaxErrorMessage ( new SyntaxException ( txt , node . getLineNumber ( ) , node . getColumnNumber ( ) , node . getLastLineNumber ( ) , node . getLastColumnNumber ( ) ) , nodeSource )

Revert Revert Improve the grammar of a compiler error message


<nb> public interface TreeTransformer {
 COMMENT
 COMMENT
 COMMENT
 - public Tree transformTree ( Tree t ) ;
 + Tree transformTree ( Tree t ) ;

 }
 <nb> package NAMESPACE ;

 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public interface TreeVisitor {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 - public void visitTree ( Tree t ) ;
 + void visitTree ( Tree t ) ;

 }


<nb> public class WalletTool {
 SINGLE
 SINGLE
 peers . broadcastTransaction ( t ) . get ( ) ;
 + if ( peers . getMinBroadcastConnections ( ) == NUMBER0 ) {
 + SINGLE
 + SINGLE
 + Thread . sleep ( NUMBER1 ) ;
 + }
 System . out . println ( t . getHashAsString ( ) ) ;
 } catch ( BlockStoreException e ) {
 throw new RuntimeException ( e ) ;

Add crap WalletTool hack to work around issue with Netty


<nb> public class ActivityShare extends Activity {
 new SubmitTask ( ) . executeOnExecutor ( mExecutor , uid ) ;
 } else {
 Intent intent = new Intent ( ) ;
 - intent . putExtra ( cErrorMessage , getString ( R . string . msg_limit , ActivityShare . cSubmitLimit ) ) ;
 + intent . putExtra ( cErrorMessage , getString ( R . string . msg_limit , ActivityShare . cSubmitLimit + NUMBER0 ) ) ;
 setResult ( NUMBER0 , intent ) ;
 finish ( ) ;
 }