<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ContactHeaderWidget extends FrameLayout implements View . OnClickList
 public void bindFromEmail ( String emailAddress ) {
 Cursor c = null ;
 try {
 - c = mContentResolver . query ( Uri . withAppendedPath (
 - RawContacts . CONTENT_FILTER_EMAIL_URI , Uri . encode ( emailAddress ) ) ,
 - EMAIL_LOOKUP_PROJECTION , null , null , null ) ;
 + c = mContentResolver . query ( Uri . withAppendedPath ( Email . CONTENT_FILTER_EMAIL_URI , Uri
 + . encode ( emailAddress ) ) , EMAIL_LOOKUP_PROJECTION , null , null , null ) ;
 if ( c != null && c . moveToFirst ( ) ) {
 long contactId = c . getLong ( EMAIL_LOOKUP_CONTACT_ID_COLUMN_INDEX ) ;
 bindFromContactId ( contactId ) ;

Don t use deprecated API in contact header widget


<nb> public class RecordProjectOperator
 Page page = pageBuilder . build ( ) ;
 pageBuilder . reset ( ) ;

 - operatorContext . recordGeneratedInput ( page . getDataSize ( ) , page . getPositionCount ( ) ) ;
 -
 return page ;
 }
 }

Don t double count bytes and rows in RecordProjectOperator


<nb> public class JSONPropertySupport {
 public static < T > T getValueFromJSON ( AbstractModel model , JSONProperty < T > property , Type javaType ) {
 if ( ! model . hasTransitory ( property . getName ( ) ) ) {
 T data = null ;
 - if ( model . containsNonNullValue ( property ) ) {
 - String value = model . get ( property ) ;
 + String value = model . get ( property ) ; SINGLE
 + if ( value != null ) {
 try {
 if ( MAPPER == null ) {
 throw new NullPointerException ( STRING0

JSONProperty getter should throw if model doesn t have property the same as all other properties do


<nb> public abstract class PsiElementListCellRenderer < T extends PsiElement > extends J

 if ( nameAttributes == null ) nameAttributes = new SimpleTextAttributes ( Font . PLAIN , color ) ;

 + assert name != null : STRING0 + element ;
 append ( name , nameAttributes ) ;
 setIcon ( PsiElementListCellRenderer . this . getIcon ( element ) ) ;

implement getPresentableText for alias statements


<nb> public class FirstUsageWizardFragment extends Fragment implements OsmAndLocation
 view . findViewById ( R . id . map_downloading_action_button ) . setOnClickListener ( new View . OnClickListener ( ) {
 @ override
 public void onClick ( View v ) {
 - showOnMap ( new LatLon ( location . getLatitude ( ) , location . getLongitude ( ) ) , NUMBER0 ) ;
 + if ( location != null ) {
 + showOnMap ( new LatLon ( location . getLatitude ( ) , location . getLongitude ( ) ) , NUMBER0 ) ;
 + }
 }
 } ) ;
 view . findViewById ( R . id . map_downloading_card ) . setVisibility ( View . VISIBLE ) ;


<nb> public class Ls extends NeoApp
 displayProperties = true ;
 displayRelationships = true ;
 }
 - Node node = this . getCurrentNode ( session ) ;
 +
 + Node node = null ;
 + if ( parser . arguments ( ) . isEmpty ( ) )
 + {
 + node = this . getCurrentNode ( session ) ;
 + }
 + else
 + {
 + node = this . getNodeById (
 + Long . parseLong ( parser . arguments ( ) . get ( NUMBER0 ) ) ) ;
 + }
 +
 this . displayProperties ( node , out , displayProperties , displayValues ,
 verbose ) ;
 this . displayRelationships ( parser , node , out , displayRelationships ) ;


<nb> public class ResolverActivity extends Activity implements AdapterView . OnItemClic
 }

 final Intent intent = intentForDisplayResolveInfo ( dri ) ;
 - onIntentSelected ( dri . ri , intent , mAlwaysUseOption ) ;
 + onIntentSelected ( dri . ri , intent , false ) ;
 finish ( ) ;
 }
 } ) ;

Never set Work or Personal apps as prefered activities


<nb> public class TaskController extends AbstractController {
 COMMENT
 public Cursor getBackupTaskListCursor ( ) {
 return database . query ( tasksTable , TaskModelForXml . FIELD_LIST ,
 - AbstractTaskModel . PROGRESS_PERCENTAGE + STRING0 +
 - AbstractTaskModel . COMPLETE_PERCENTAGE , null , null , null ,
 + null , null , null , null ,
 null , null ) ;
 }

Legacy backup now backs up completed tasks


<nb>
 package NAMESPACE ;

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

 <nb> public final class MUCRoomHistory {
 }
 }

 + SINGLE
 + if ( ( packet . getSubject ( ) == null || STRING0 . equals ( packet . getSubject ( ) . trim ( ) ) ) &&
 + ( packet . getBody ( ) == null || STRING0 . equals ( packet . getBody ( ) . trim ( ) ) ) ) {
 + return ;
 + }
 +
 Message packetToAdd = packet . createCopy ( ) ;

 SINGLE

Ignore messages with no body and no subject


<nb> public class MapActivity extends AccessibleActivity implements DownloadEvents ,
 System . err . println ( STRING0 + ( System . currentTimeMillis ( ) - tm ) + STRING1 ) ;
 }

 - if ( ! permissionDone && ! app . getAppInitializer ( ) . isFirstTime ( ) ) {
 + if ( ! permissionDone ) {
 if ( ! permissionAsked ) {
 if ( app . isExternalStorageDirectoryReadOnly ( )
 && getSupportFragmentManager ( ) . findFragmentByTag ( DataStoragePlaceDialogFragment . TAG ) == null ) {

Revert Skip permission and storage dialog first time


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

Added comment to Javadoc for PasswordComparisonAuthenticator to indicate that it won t work with SSHA passwords


<nb> public class Observable < T > {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class Observable < T > {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class Single < T > {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


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


<nb> public class BasicExpressionTypingVisitor extends ExpressionTypingVisitor {
 if ( labelName != null ) {
 LabelResolver . LabeledReceiverResolutionResult resolutionResult =
 LabelResolver . INSTANCE . resolveThisOrSuperLabel ( expression , context , Name . identifier ( labelName ) ) ;
 - if ( onlyClassReceivers && resolutionResult . success ( ) ) {
 - if ( ! isDeclaredInClass ( resolutionResult . getReceiverParameterDescriptor ( ) ) ) {
 + if ( resolutionResult . success ( ) ) {
 + ReceiverParameterDescriptor receiverParameterDescriptor = resolutionResult . getReceiverParameterDescriptor ( ) ;
 + recordThisOrSuperCallInTraceAndCallExtension ( context , receiverParameterDescriptor , expression ) ;
 + if ( onlyClassReceivers && ! isDeclaredInClass ( receiverParameterDescriptor ) ) {
 return LabelResolver . LabeledReceiverResolutionResult . labelResolutionSuccess ( NO_RECEIVER_PARAMETER ) ;
 }
 }
 <nb> public class BasicExpressionTypingVisitor extends ExpressionTypingVisitor {
 if ( result != NO_RECEIVER_PARAMETER ) {
 context . trace . record ( REFERENCE_TARGET , expression . getInstanceReference ( ) , result . getContainingDeclaration ( ) ) ;
 recordThisOrSuperCallInTraceAndCallExtension ( context , result , expression ) ;
 -
 }
 return LabelResolver . LabeledReceiverResolutionResult . labelResolutionSuccess ( result ) ;
 }

Record resolved calls for labeled this expressions


<nb>

 package NAMESPACE ;

 + import NAMESPACE ;
 +
 import NAMESPACE ;

 public class Classifier


<nb> public class ArgDelegationActivator
 COMMENT
 COMMENT
 COMMENT
 - public void start ( BundleContext context ) throws Exception
 + public void start ( BundleContext bc ) throws Exception
 {
 bundleContext = bc ;
 delegationPeer = new ArgDelegationPeerImpl ( bc ) ;

Fixes a wrong var name argh i am getting too distracted


<nb> public class State implements Cloneable {
 return stateData . serviceDay ;
 }

 - public void setServiceDay ( ServiceDay sd ) {
 - stateData . serviceDay = sd ;
 - }
 -
 public Set < String > getBikeRentalNetworks ( ) {
 return stateData . bikeRentalNetworks ;
 }


<nb> public class ContributionListPanel extends JPanel implements Scrollable , Contrib
 boolean isFlagged = ContributionManager . isFlaggedForDeletion ( contrib ) ;
 if ( isFlagged ) {
 description . append ( ContributionListPanel . DELETION_MESSAGE ) ;
 - } else if ( contrib . getSentence ( ) != null ) {
 - String sentence = ContributionListPanel . sanitizeHtmlTags ( contrib . getSentence ( ) ) ;
 - sentence = ContributionListPanel . toHtmlLinks ( sentence ) ;
 + } else {
 + String sentence = contrib . getSentence ( ) ;
 +
 + if ( sentence == null || sentence . isEmpty ( ) ) {
 + sentence = STRING0 ;
 + } else {
 + sentence = ContributionListPanel . sanitizeHtmlTags ( sentence ) ;
 + sentence = ContributionListPanel . toHtmlLinks ( sentence ) ;
 + }
 +
 description . append ( sentence ) ;
 }


<nb> public class PyPackageManager {
 runPythonHelper ( PACKAGING_TOOL , args ) ;
 }

 + public void install ( @ notnull PyRequirement requirement ) throws PyExternalProcessException {
 + myPackagesCache = null ;
 + final List < String > args = new ArrayList < String > ( ) ;
 + args . add ( STRING0 ) ;
 + args . add ( requirement . toString ( ) ) ;
 + runPythonHelper ( PACKAGING_TOOL , args ) ;
 + }
 +
 + @ deprecated
 public void install ( @ notnull PyPackage pkg ) throws PyExternalProcessException {
 SINGLE
 myPackagesCache = null ;


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

 import NAMESPACE ;


<nb>
 COMMENT
 package NAMESPACE ;

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

 - import NAMESPACE ;
 - import NAMESPACE ;
 -
 public abstract class SupposeThreadHandler extends BaseAnnotationHandler < EComponentHolder > {

 public SupposeThreadHandler ( Class < ? > targetClass , ProcessingEnvironment processingEnvironment ) {
 <nb> public abstract class SupposeThreadHandler extends BaseAnnotationHandler < ECompon
 protected void validate ( Element element , AnnotationElements validatedElements , IsValid valid ) {
 validatorHelper . enclosingElementHasEnhancedComponentAnnotation ( element , validatedElements , valid ) ;
 validatorHelper . isNotPrivate ( element , valid ) ;
 + validatorHelper . isNotFinal ( element , valid ) ;
 }

 }


<nb> public class RestrictionsManager {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Fixed a typo in convertRestrictionsToBundle JavaDoc


<nb> public class AntScriptGenerator {
 for ( int i = NUMBER0 ; i < libsDirs . size ( ) ; i ++ ) {
 pack . append ( STRING0 + libsDirs . get ( i ) + STRING1 + sharedLibFiles . get ( i ) + STRING2 ) ;
 }
 +
 + if ( config . sharedLibs != null ) {
 + for ( String sharedLib : config . sharedLibs ) {
 + pack . append ( STRING0 + sharedLib + STRING2 ) ;
 + }
 + }

 template = template . replace ( STRING3 , config . sharedLibName + STRING4 ) ;
 template = template . replace ( STRING5 , clean . toString ( ) ) ;
 <nb> public class BuildConfig {
 public final FileDescriptor libsDir ;
 COMMENT
 public final FileDescriptor jniDir ;
 + COMMENT
 + public String [ ] sharedLibs ;

 COMMENT
 COMMENT


<nb> public class XMPPTCPConnection extends XMPPConnection {
 COMMENT
 COMMENT
 COMMENT
 - void streamCompressionDenied ( ) {
 - synchronized ( this ) {
 - this . notify ( ) ;
 - }
 + synchronized void streamCompressionDenied ( ) {
 + this . notify ( ) ;
 }

 COMMENT


<nb> public class NativeApiPatchingTestCase extends AbstractPatchingTestCase {
 }

 private ModelControllerClient getControllerClient ( ) throws UnknownHostException {
 - return ModelControllerClient . Factory . create ( System . getProperty ( STRING0 , STRING1 ) , NUMBER0 ) ;
 + return ModelControllerClient . Factory . create ( STRING2 , System . getProperty ( STRING0 , STRING1 ) , NUMBER1 ) ;
 }

 }


<nb> class IRFactory {

 private boolean validAssignmentTarget ( Node target ) {
 switch ( target . getType ( ) ) {
 + case Token . CAST : SINGLE
 case Token . NAME :
 case Token . GETPROP :
 case Token . GETELEM :
 <nb> public class IntegrationTest extends IntegrationTestCase {
 STRING0 ) ;
 }

 + public void testLhsCast ( ) {
 + CompilerOptions options = createCompilerOptions ( ) ;
 + test (
 + options ,
 + STRING1 +
 + STRING2 ,
 + STRING1 +
 + STRING3 ) ;
 + }
 +
 public void testRenamePrefix ( ) {
 String code = STRING4 ;
 CompilerOptions options = createCompilerOptions ( ) ;

fix a cryptic warning due to an equally cryptic cast


<nb> public class ReportGenerator implements Job {
 try {
 generateReports ( context . getJobDetail ( ) . getDescription ( ) , context . getJobDetail ( ) . getJobDataMap ( ) ) ;
 } catch ( Exception e ) {
 - e . printStackTrace ( ) ;
 - LOGGER . error ( e . toString ( ) ) ;
 + LOGGER . error ( STRING0 , e ) ;
 }
 }

 <nb> public class ReportGenerator implements Job {
 reportEmailSender . emailReport ( ) ;

 } catch ( IOException e ) {
 - e . printStackTrace ( ) ;
 - LOGGER . error ( e . toString ( ) ) ;
 + LOGGER . error ( STRING1 , e ) ;
 }
 }

Add support for ratio of metrics to thirdeye reporting


<nb> public class PVector {
 return this . x * x + this . y * y + this . z * z ;
 }

 +
 + static public float dot ( PVector v1 , PVector v2 ) {
 + return v1 . x * v2 . x + v1 . y * v2 . y + v1 . z * v2 . z ;
 + }

 COMMENT
 COMMENT

Added static dot PVector v1 PVector v2 to PVector


<nb> public class LogView extends Request {
 }

 private String getOutputLogStem ( ) {
 - String pattern = STRING0 ;
 + String pattern = STRING1 ;
 SimpleDateFormat formatter = new SimpleDateFormat ( pattern ) ;
 String now = formatter . format ( new Date ( ) ) ;

 - return STRING2 + now ;
 + return STRING3 + now ;
 }

 private byte [ ] zipLogs ( byte [ ] [ ] results , String topDir ) throws IOException {

Tweak log file stem name to include full year


<nb> public class GeneralConfigurationForm
 historySizeSpinner . setEnabled ( false ) ;
 }

 + if ( ! ConfigurationManager . isHistoryShown ( ) )
 + {
 + historySizeSpinner . setEnabled ( false ) ;
 + }
 +
 sendMessageComboBox . setSelectedItem (
 ConfigurationManager . getSendMessageCommand ( ) ) ;

Disable chat history size box if the Show history checkbox is false


<nb>
 package NAMESPACE ;

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

 import NAMESPACE ;

 <nb> public class SetColumnNames extends Request {
 @ override protected Response serve ( ) {
 ValueArray tgt = _tgtKey . value ( ) ;
 tgt . setColumnNames ( _srcKey . value ( ) . colNames ( ) ) ;
 + SINGLE
 + SINGLE
 + Futures fs = new Futures ( ) ;
 + DKV . put ( tgt . _key , tgt , fs ) ;
 + fs . blockForPending ( ) ;
 return Inspect . redirect ( new JsonObject ( ) , tgt . _key ) ;
 }
 public static String link ( Key k , String s ) {

Fix header names not getting written back


<nb> public enum ActiveThreadCountErrorType {
 UNSUPPORTED_VERSION ( ( short ) NUMBER0 , STRING0 , StreamCode . TYPE_UNSUPPORT . name ( ) ) ,
 CLUSTER_OPTION_NOT_SET ( ( short ) NUMBER1 , STRING1 , StreamCode . CONNECTION_UNSUPPORT . name ( ) ) ,

 + TIMEOUT ( ( short ) NUMBER2 , STRING2 , TRouteResult . TIMEOUT . name ( ) ) ,
 +
 NOT_FOUND ( ( short ) - NUMBER3 , STRING3 , StreamCode . CONNECTION_NOT_FOUND . name ( ) ) ,
 CLUSTER_CHANNEL_CLOSED ( ( short ) - NUMBER3 , STRING4 , StreamCode . STATE_CLOSED . name ( ) ) ,
 - TIMEOUT ( ( short ) - NUMBER3 , STRING2 , TRouteResult . TIMEOUT . name ( ) ) ,
 PINPOINT_INTERNAL_ERROR ( ( short ) - NUMBER3 , STRING5 ) ;

 private final static Map < String , ActiveThreadCountErrorType > CODE_MAP = Collections . unmodifiableMap ( initializeCodeMapping ( ) ) ;


<nb> public class PlanUpdateService extends Service {
 context . startService ( intent ) ;
 }

 + public static void stopService ( Context context ) {
 + if ( context == null ) return ;
 +
 + Intent intent = new Intent ( context , PlanUpdateService . class ) ;
 + context . stopService ( intent ) ;
 + }
 +
 @ override
 public IBinder onBind ( Intent intent ) {
 return null ;
 <nb> public class PlansActivity extends AppCompatActivity {
 } ) ;
 }

 + @ override
 + protected void onDestroy ( ) {
 + PlanUpdateService . stopService ( this ) ;
 + super . onDestroy ( ) ;
 + }
 +
 private void updatePurchaseUI ( int position ) {
 Fragment fragment = getPageAdapter ( ) . getItem ( position ) ;
 if ( ! ( fragment instanceof PlanFragment ) ) {


<nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class BasicAction extends DumbAwareAction {
 SINGLE

 presentation . setEnabled ( enabled ) ;
 - presentation . setVisible ( enabled ) ;
 + if ( ActionPlaces . isPopupPlace ( e . getPlace ( ) ) ) {
 + presentation . setVisible ( enabled ) ;
 + }
 + else {
 + presentation . setVisible ( true ) ;
 + }
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


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

 + import NAMESPACE ;
 import NAMESPACE ;

 public abstract class Screen {
 protected static Random random = new Random ( ) ;
 private Metagun metagun ;
 + protected SpriteBatch spriteBatch = new SpriteBatch ( NUMBER0 ) ;

 - public void removed ( ) {
 + public void removed ( ) {
 + spriteBatch . dispose ( ) ;
 }

 public final void init ( Metagun metagun ) {


<nb> public class LocalStopFinder {
 }
 }
 }
 -
 +
 SINGLE

 neighborhoods = new HashMap < Stop , HashMap < TableTripPattern , P2 < Double > > > ( ) ;
 <nb> public class LocalStopFinder {
 P2 < Double > distance = entry . getValue ( ) ;
 P2 < Double > previousDistance = previousDistances . get ( key ) ;
 P2 < Double > nextDistance = nextDistances . get ( key ) ;
 - if ( previousDistance == null ) {
 + if ( distance . getFirst ( ) == NUMBER0 ) {
 + local = false ;
 + } else if ( previousDistance == null ) {
 if ( nextDistance == null
 || nextDistance . getFirst ( ) > distance . getFirst ( )
 || nextDistance . getSecond ( ) > distance . getSecond ( ) ) {

Fix bug where same stop transfers were ignored in considering local stops


<nb>

 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> final class TitleRetriever extends SupplementalInfoRetriever {
 if ( m . find ( ) ) {
 String title = m . group ( NUMBER0 ) ;
 if ( title != null && ! title . isEmpty ( ) ) {
 + title = Html . fromHtml ( title ) . toString ( ) ;
 if ( title . length ( ) > MAX_TITLE_LEN ) {
 title = title . substring ( NUMBER1 , MAX_TITLE_LEN ) + STRING0 ;
 }


<nb> public final class AudioAttributes implements Parcelable {
 COMMENT
 public final static int USAGE_NOTIFICATION_RINGTONE = NUMBER0 ;
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - public final static int USAGE_NOTIFICATION_TELEPHONY_RINGTONE = USAGE_NOTIFICATION_RINGTONE ;
 - COMMENT
 COMMENT
 COMMENT
 COMMENT

Remove obsolete USAGE_NOTIFICATION_TELEPHONY_RINGTONE definition


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

 - @ test ( groups = STRING0 )
 public class TestHiveClient
 extends AbstractTestHiveClient
 {
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;

 - @ test ( groups = STRING0 )
 public class TestHiveClientChunkIteratorBackPressure
 extends AbstractTestHiveClient
 {


<nb> public class PathTrieTests {
 assertThat ( trie . retrieve ( STRING0 , params ) , equalTo ( STRING1 ) ) ;
 assertThat ( params . get ( STRING2 ) , equalTo ( STRING3 ) ) ;
 }
 +
 + @ test public void testSameNameOnDifferentPath ( ) {
 + PathTrie < String > trie = new PathTrie < String > ( ) ;
 + trie . insert ( STRING4 , STRING5 ) ;
 + trie . insert ( STRING6 , STRING1 ) ;
 +
 + Map < String , String > params = newHashMap ( ) ;
 + assertThat ( trie . retrieve ( STRING7 , params ) , equalTo ( STRING5 ) ) ;
 + assertThat ( params . get ( STRING2 ) , equalTo ( STRING8 ) ) ;
 +
 + params . clear ( ) ;
 + assertThat ( trie . retrieve ( STRING0 , params ) , equalTo ( STRING1 ) ) ;
 + assertThat ( params . get ( STRING2 ) , equalTo ( STRING3 ) ) ;
 + }
 }


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;

 public interface LanguageSourceSetInternal extends LanguageSourceSet {
 -
 - ModelType < LanguageSourceSet > PUBLIC_MODEL_TYPE = ModelType . of ( LanguageSourceSet . class ) ;
 -
 COMMENT
 COMMENT
 COMMENT
 String getProjectScopedName ( ) ;

 -
 COMMENT
 COMMENT
 COMMENT


<nb> final class WindowState implements WindowManagerPolicy . WindowState {
 SINGLE
 final int layoutXDiff ;
 final int layoutYDiff ;
 - if ( mInsetFrame . isEmpty ( ) && ( fullscreenTask || layoutInParentFrame ( ) ) ) {
 + if ( fullscreenTask || layoutInParentFrame ( ) ) {
 SINGLE
 mContainingFrame . set ( pf ) ;
 mDisplayFrame . set ( df ) ;

Fixed bug with pop up window placement at the bottom in split screen


<nb> public abstract class AbstractPersistentMethods {
 throws IntrospectionException {
 super ( ) ;
 new DelegatingMetaClass ( theClass , this ) ;
 + this . clazz = theClass ;
 this . dynamicMethodInvocations = new ArrayList ( ) ;
 this . staticMethodInvocations = new ArrayList ( ) ;
 }

fixed bug where local clazz field was not being set and then passed on as null


<nb> public class SearchManagerTest extends ActivityInstrumentationTestCase2 < LocalAct
 }

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - @ mediumtest
 - public void testSearchManagerContextRestrictions ( ) {
 - SearchManager searchManager1 = ( SearchManager )
 - mContext . getSystemService ( Context . SEARCH_SERVICE ) ;
 - assertNotNull ( searchManager1 ) ;
 -
 - Context applicationContext = mContext . getApplicationContext ( ) ;
 - SINGLE
 - try {
 - applicationContext . getSystemService ( Context . SEARCH_SERVICE ) ;
 - assertFalse ( STRING0 , true ) ;
 - } catch ( AndroidRuntimeException e ) {
 - SINGLE
 - }
 - }
 -
 - COMMENT
 COMMENT
 COMMENT
 COMMENT

Remove test for SearchManager activity context restriction


<nb> public class WelcomeActivity extends ThemeableActivity implements ICacheWordSubs
 if ( ! mDoLock )
 {
 mApp . maybeInit ( this ) ;
 - mApp . checkForCrashes ( this ) ;
 +
 }

 if ( ImApp . mUsingCacheword )


<nb>
 specific language governing permissions and limitations
 under the License .
 COMMENT
 - p

 package NAMESPACE ;

 <nb>
 specific language governing permissions and limitations
 under the License .
 COMMENT
 - p

 package NAMESPACE ;

 <nb>
 specific language governing permissions and limitations
 under the License .
 COMMENT
 - p
 +

 package NAMESPACE ;

Accidentally added stray char when changing the licence


<nb> public class RoutingRequest implements Cloneable , Serializable {
 public String getBannedRouteStr ( ) {
 return getRouteSetStr ( bannedRoutes ) ;
 }
 +
 + public void setMaxWalkDistance ( double maxWalkDistance ) {
 + this . maxWalkDistance = maxWalkDistance ;
 + if ( walkingOptions != null && walkingOptions != this ) {
 + this . walkingOptions . setMaxWalkDistance ( maxWalkDistance ) ;
 + }
 + }
 }

propagate max walk distance to walking params


<nb> class Clicker {
 }

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

 <nb> public class Solo {
 }

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

Clarified javadoc for the clickOnEditText int method both in Solo and Clicker


<nb> public class AvroVersionedGenericSerializer implements Serializer < Object > {

 Integer version = Integer . valueOf ( bytes [ NUMBER0 ] ) ;

 + if ( version > newestVersion )
 + throw new SerializationException ( STRING0 ) ;
 +
 Schema typeDefWriter = Schema . parse ( typeDefVersions . get ( version ) ) ;

 byte [ ] dataBytes = new byte [ bytes . length - NUMBER1 ] ;
 <nb>
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 +
 package NAMESPACE ;

 import NAMESPACE ;


<nb> public final class LeaderInquireClient {
 if ( masters . size ( ) >= NUMBER0 ) {
 if ( masters . size ( ) == NUMBER0 ) {
 String leader = masters . get ( NUMBER1 ) ;
 - LOG . info ( STRING0 + leader ) ;
 return leader ;
 }


<nb> public class ServerCookieEncoderTest {
 assertTrue ( matcher . find ( ) ) ;
 Date expiresDate = HttpHeaderDateFormat . get ( ) . parse ( matcher . group ( NUMBER0 ) ) ;
 long diff = ( expiresDate . getTime ( ) - System . currentTimeMillis ( ) ) / NUMBER1 ;
 - SINGLE
 - assertTrue ( Math . abs ( diff - maxAge ) <= NUMBER0 ) ;
 + SINGLE
 + assertTrue ( Math . abs ( diff - maxAge ) <= NUMBER2 ) ;
 }

 @ test

Fix an sporadic failure in ServerCookieEncoderTest


<nb> public abstract class FluidRegistry
 FMLLog . getLogger ( ) . log ( Level . ERROR , STRING0 , defaultName , localDefault ) ;
 }
 FMLLog . getLogger ( ) . log ( Level . DEBUG , STRING1 , defaultName , fluid . getName ( ) ) ;
 - fluids . put ( fluid . getName ( ) , fluid ) ;
 - Integer id = fluidIDs . remove ( fluid ) ;
 + Fluid oldFluid = fluids . put ( fluid . getName ( ) , fluid ) ;
 + Integer id = fluidIDs . remove ( oldFluid ) ;
 fluidIDs . put ( fluid , id ) ;
 }
 fluidBlocks = null ;

Replace the OLD fluid in the fluidID map not the new one


<nb> public class DefaultByteBufferPool implements ByteBufferPool {
 }
 }
 }
 + queueIfUnderMax ( buffer ) ;
 + }
 +
 + private void queueIfUnderMax ( ByteBuffer buffer ) {
 int size ;
 do {
 size = currentQueueLength ;
 <nb> public class DefaultByteBufferPool implements ByteBufferPool {
 protected void finalize ( ) throws Throwable {
 super . finalize ( ) ;
 reclaimedThreadLocalsUpdater . incrementAndGet ( DefaultByteBufferPool . this ) ;
 + if ( buffers != null ) {
 + SINGLE
 + ByteBuffer buffer ;
 + while ( ( buffer = buffers . poll ( ) ) != null ) {
 + queueIfUnderMax ( buffer ) ;
 + }
 + }
 }
 }

Reclaim thread buffers after thread collection instead of reallocating


<nb> public class CreateProcedureGenerator extends AbstractSqlGenerator < CreateProcedu
 public Sql [ ] generateSql ( CreateProcedureStatement statement , Database database , SqlGeneratorChain sqlGeneratorChain ) {
 List < Sql > sql = new ArrayList < Sql > ( ) ;

 - String procedureText = addSchemaToText ( statement . getProcedureText ( ) , statement . getSchemaName ( ) , STRING0 , database ) ;
 + String procedureText = statement . getProcedureText ( ) ;
 + SINGLE

 if ( statement . getReplaceIfExists ( ) != null && statement . getReplaceIfExists ( ) ) {
 <nb> public class CreateProcedureGenerator extends AbstractSqlGenerator < CreateProcedu
 sql . add ( new UnparsedSql ( procedureText , statement . getEndDelimiter ( ) ) ) ;

 - surroundWithSchemaSets ( sql , statement . getSchemaName ( ) , database ) ;
 + SINGLE
 return sql . toArray ( new Sql [ sql . size ( ) ] ) ;
 }

Commented out multi schema improvement code cherry picked in


<nb> class FileHistoryCache implements HistoryCache {
 public void store ( History history , File file ) throws Exception {

 File cache = getCachedFile ( file ) ;
 -
 +
 File dir = cache . getParentFile ( ) ;
 if ( ! dir . isDirectory ( ) ) {
 if ( ! dir . mkdirs ( ) ) {
 <nb> class FileHistoryCache implements HistoryCache {
 ( time > env . getHistoryReaderTimeLimit ( ) ) ) ) {
 SINGLE
 try {
 - store ( history , cache ) ;
 + store ( history , file ) ;
 } catch ( Exception e ) {
 OpenGrokLogger . getLogger ( ) . log ( Level . WARNING ,
 STRING0 + cache + STRING1 , e ) ;

Store the history cache to the correct file


<nb> public class ReducerValueUpdater implements ValueUpdater < Object > {

 @ override
 public Object update ( Object stored ) {
 - Object ret = stored ;
 + Object ret = ( stored == null ) ? this . agg . init ( ) : stored ;
 for ( TridentTuple t : tuples ) {
 ret = this . agg . reduce ( ret , t ) ;
 }
 return ret ;
 }
 - }
 + }

Initialising ReducerAggregator if when state is null


<nb>

 package NAMESPACE ;

 + import NAMESPACE ;
 +
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 public class StringCleaning {

 + private static final Pattern punctPattern = Pattern . compile ( STRING0 ) ;
 +
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 public static String stripPunct ( String base ) {
 - return base . replaceAll ( STRING0 , STRING1 ) ;
 -
 + return punctPattern . matcher ( base ) . replaceAll ( STRING1 ) ;
 }
 -
 -
 }

Changed stripPunct function to use a pre compiled regex instead of compiling it every time it is getting called


<nb> import NAMESPACE ;
 @ jsontypeinfo ( use = JsonTypeInfo . Id . NAME , property = STRING0 )
 @ jsonsubtypes ( value = {
 @ jsonsubtypes.type ( name = STRING1 , value = LockAcquireAction . class ) ,
 + @ jsonsubtypes.type ( name = STRING2 , value = LockTryAcquireAction . class ) ,
 @ jsonsubtypes.type ( name = STRING3 , value = LockListAction . class ) ,
 @ jsonsubtypes.type ( name = STRING4 , value = LockReleaseAction . class ) ,
 @ jsonsubtypes.type ( name = STRING5 , value = SegmentInsertAction . class ) ,

Add JsonSubType for LockTryAcquireAction


<nb>

 package NAMESPACE ;

 - import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class MyResourceTest {
 COMMENT
 COMMENT
 COMMENT
 - SINGLE
 + @ deployment
 SINGLE
 public static WebArchive createDeployment ( ) {
 WebArchive war = ShrinkWrap . create ( WebArchive . class ) .

Commenting Arquillian annotations for interim debugging


<nb> public class OpenStreetMapGraphBuilderImpl implements GraphBuilder {
 if ( relation . hasTag ( STRING0 ) && relation . hasTag ( STRING1 ) &&
 relation . hasTag ( STRING2 ) && relation . hasTag ( STRING3 ) ) {

 - tag . time = RepeatingTimePeriod . parseFromOsmTurnRestriction (
 - relation . getTag ( STRING0 ) , relation . getTag ( STRING1 ) ,
 - relation . getTag ( STRING2 ) , relation . getTag ( STRING3 ) ) ;
 + try {
 + tag . time = RepeatingTimePeriod . parseFromOsmTurnRestriction (
 + relation . getTag ( STRING0 ) , relation . getTag ( STRING1 ) ,
 + relation . getTag ( STRING2 ) , relation . getTag ( STRING3 ) ) ;
 + } catch ( NumberFormatException e ) {
 + _log . info ( STRING4 + relation . getId ( ) ) ;
 + }
 }

 MapUtils . addToMapList ( turnRestrictionsByFromWay , from , tag ) ;

handle unparseable turn restrictions bug reported by Colin Tompo


<nb> public class JmsTestConnectionOnStartupTest extends CamelTestSupport {
 context . start ( ) ;
 fail ( STRING0 ) ;
 } catch ( FailedToCreateConsumerException e ) {
 - SINGLE
 assertEquals ( STRING1
 + STRING2 , e . getMessage ( ) ) ;
 }
 <nb> public class JmsTestConnectionOnStartupTest extends CamelTestSupport {
 context . start ( ) ;
 fail ( STRING0 ) ;
 } catch ( FailedToCreateProducerException e ) {
 - SINGLE
 - assertEquals ( STRING3
 - + STRING4
 - + STRING5
 - + STRING6 ,
 - e . getMessage ( ) ) ;
 + assertTrue ( e . getMessage ( ) . startsWith ( STRING7 ) ) ;
 + assertTrue ( e . getMessage ( ) . contains ( STRING8 ) ) ;
 }
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class HttpResponseConcurrentAbortTest extends AbstractHttpClientServerTes

 private void abort ( final Response response )
 {
 - Logger logger = Log . getLogger ( getClass ( ) ) ;
 -
 new Thread ( STRING0 )
 {
 @ override
 <nb> public class HttpResponseConcurrentAbortTest extends AbstractHttpClientServerTes
 SINGLE
 boolean latched = failureLatch . await ( NUMBER0 , TimeUnit . SECONDS ) ;
 success . set ( latched ) ;
 - logger . info ( STRING1 ) ;

 SINGLE
 SINGLE
 latched = completeLatch . await ( NUMBER1 , TimeUnit . SECONDS ) ;
 success . set ( ! latched ) ;
 - logger . info ( STRING2 ) ;

 callbackLatch . countDown ( ) ;
 }


<nb> public class SimplePropertyPreFilter implements PropertyPreFilter {
 }
 }

 + COMMENT
 + COMMENT
 + COMMENT
 public int getMaxLevel ( ) {
 return maxLevel ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 public void setMaxLevel ( int maxLevel ) {
 this . maxLevel = maxLevel ;
 }

SimplePropertyPreFilter add java doc since info D


<nb> public class BlobServerGetTest {
 try {
 byte [ ] remainder = new byte [ data . length - NUMBER0 * receiveBuffer . length ] ;
 BlobUtils . readFully ( is , remainder , NUMBER1 , remainder . length , null ) ;
 - fail ( ) ;
 + SINGLE
 + SINGLE
 }
 catch ( IOException e ) {
 SINGLE


<nb> public class PdfJsWindow extends WindowEx
 } - * / ;

 public final native String getLocationHash ( ) COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT ;

 public final native void applyLocationHash ( String hash ) / * - {

use bookmark href to cache PDF viewer location reduce coupling


<nb> public class NetworkUtilImpl implements NetworkUtil , NetworkEventProvider {
 if ( VERSION . SDK_INT >= Build . VERSION_CODES . M ) {
 listenForIdle ( context ) ;
 }
 - listeNetworkViaConnectivityManager ( context ) ;
 + listenNetworkViaConnectivityManager ( context ) ;
 } else {
 context . getApplicationContext ( ) . registerReceiver ( new BroadcastReceiver ( ) {
 @ override
 <nb> public class NetworkUtilImpl implements NetworkUtil , NetworkEventProvider {
 }

 @ targetapi ( NUMBER0 )
 - private void listeNetworkViaConnectivityManager ( final Context context ) {
 + private void listenNetworkViaConnectivityManager ( final Context context ) {
 ConnectivityManager cm = ( ConnectivityManager ) context . getApplicationContext ( )
 . getSystemService ( Context . CONNECTIVITY_SERVICE ) ;
 NetworkRequest request = new NetworkRequest . Builder ( )


<nb> public class AWSClient {
 }

 public Collection < String > getPrivateIpAddresses ( ) throws Exception {
 - final Map < String , String > result = new DescribeInstances ( awsConfig ) . execute ( endpoint ) ;
 + final Map < String , String > result = new DescribeInstances ( awsConfig ) . execute ( ) ;
 return result . keySet ( ) ;
 }

 public Map < String , String > getAddresses ( ) throws Exception {
 - return new DescribeInstances ( awsConfig ) . execute ( endpoint ) ;
 + return new DescribeInstances ( awsConfig ) . execute ( ) ;
 }

 public void setEndpoint ( String s ) {


<nb> public class DirectionalLight extends Light {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Changed DirectionalLight setDirection javadoc to be more explicit


<nb> public class JobContextService extends AbstractLifecycleComponent < JobContextServ
 SINGLE
 numKilled ++ ;
 }
 - assert activeContexts . size ( ) == NUMBER0 :
 - STRING0 ;
 } finally {
 writeLock . unlock ( ) ;
 }

remove activeContexts assertion from JobContextService


<nb> final class NodeAndNPMInstaller {
 File destination = new File ( targetDir + STRING0 ) ;
 nodeBinary . renameTo ( destination ) ;

 - SINGLE
 + nodeBinary . setExecutable ( true ) ;
 +
 + FileUtils . deleteDirectory ( new File ( targetDir + File . separator + STRING1 ) ) ;

 log . info ( STRING2 ) ;
 }


<nb> public class RollingTheMonkey extends SimpleApplication implements ActionListene
 pickUp . rotate ( pickUpSpeed , pickUpSpeed , pickUpSpeed ) ;
 }

 - TempVars tempVars = TempVars . get ( ) ;
 -
 - Vector3f centralForce = tempVars . vect1 . set ( Vector3f . ZERO ) ;
 + Vector3f centralForce = new Vector3f ( ) ;

 if ( keyForward ) centralForce . addLocal ( cam . getDirection ( ) ) ;
 if ( keyBackward ) centralForce . addLocal ( cam . getDirection ( ) . negate ( ) ) ;
 <nb> public class RollingTheMonkey extends SimpleApplication implements ActionListene

 player . applyCentralForce ( centralForce ) ; SINGLE
 }
 - tempVars . release ( ) ;

 cam . lookAt ( player . getPhysicsLocation ( ) , Vector3f . UNIT_Y ) ;
 }


<nb> public enum OGlobalConfiguration {
 SERVER_CACHE_STATIC_RESOURCES ( STRING0 , STRING1 , Boolean . class , false ) ,

 SINGLE
 - DISTRIBUTED_SERVER_SYNC_REPLICAS ( STRING2 ,
 - STRING3 , Integer . class , NUMBER0 ) ,
 + DISTRIBUTED_ASYNC_TIME_DELAY ( STRING4 ,
 + STRING5 , Integer . class , NUMBER1 ) ,

 - DISTRIBUTED_SERVER_SYNC_TIME_DELAY ( STRING6 , STRING7 ,
 - Integer . class , NUMBER2 ) ,
 -
 - DISTRIBUTED_SERVER_SYNC_MAXRECORDS_BUFFER ( STRING8 ,
 + DISTRIBUTED_SYNC_MAXRECORDS_BUFFER ( STRING9 ,
 STRING10 , Integer . class , NUMBER3 ) ;

 private final String key ;


<nb> public class AtmosphereFramework implements ServletContextProvider {
 } catch ( Throwable t ) {
 logger . error ( STRING0 , t ) ;

 + Throwable a ;
 + while ( ( a = t . getCause ( ) ) != null ) {
 + logger . error ( STRING0 , a ) ;
 + }
 +
 if ( t instanceof ServletException ) {
 throw ( ServletException ) t ;
 }


<nb> public class CheckedTextView extends TextView implements Checkable {
 right = width - mBasePadding ;
 left = right - mCheckMarkWidth ;
 }
 - checkMarkDrawable . setBounds ( left , top , right , bottom ) ;
 + checkMarkDrawable . setBounds ( mScrollX + left , top , mScrollX + right , bottom ) ;
 checkMarkDrawable . draw ( canvas ) ;
 }
 }

Consider mScrollX when drawing the checkMarkDrawable


<nb> public class SubstitutionUtils {
 }

 private static void fillInSubstitutionContext ( List < TypeParameterDescriptor > parameters , List < TypeProjection > contextArguments , Map < TypeConstructor , TypeProjection > parameterValues ) {
 + if ( parameters . size ( ) != contextArguments . size ( ) ) {
 + throw new IllegalArgumentException ( STRING0 ) ;
 + }
 for ( int i = NUMBER0 , parametersSize = parameters . size ( ) ; i < parametersSize ; i ++ ) {
 TypeParameterDescriptor parameter = parameters . get ( i ) ;
 TypeProjection value = contextArguments . get ( i ) ;

Validate parameters in fillInSubstitutionContext


<nb> public class FileBasedDeclarationProviderFactory implements DeclarationProviderF

 @ override
 public PackageMemberDeclarationProvider getPackageMemberDeclarationProvider ( @ notnull FqName packageFqName ) {
 - PackageMemberDeclarationProvider declarationProvider = packageDeclarationProviders . get ( packageFqName ) ;
 - if ( declarationProvider != null ) {
 - return declarationProvider ;
 + PackageMemberDeclarationProvider cached = packageDeclarationProviders . get ( packageFqName ) ;
 + if ( cached != null ) {
 + return cached ;
 }

 if ( ! isPackageDeclaredExplicitly ( packageFqName ) ) {
 <nb> public class FileBasedDeclarationProviderFactory implements DeclarationProviderF
 FileBasedPackageMemberDeclarationProvider provider =
 new FileBasedPackageMemberDeclarationProvider ( storageManager , packageFqName , this , index . get ( ) . filesByPackage . get ( packageFqName ) ) ;

 - return packageDeclarationProviders . putIfAbsent ( packageFqName , provider ) ;
 + PackageMemberDeclarationProvider oldValue = packageDeclarationProviders . putIfAbsent ( packageFqName , provider ) ;
 + if ( oldValue != null ) {
 + return oldValue ;
 + }
 +
 + return provider ;
 }

 @ notnull

Correctly return existing provider if it is there


<nb> public interface Query < T > extends QueryResults < T > , Cloneable {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class AlarmManager {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class AlarmManager {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - @ configurationproperties ( prefix = STRING0 , ignoreUnknownFields = false )
 + @ configurationproperties ( prefix = STRING0 , ignoreUnknownFields = true )
 public class ServerProperties implements EmbeddedServletContainerCustomizer , Ordered {

 COMMENT

Set ignoreUnknownFields true on ServerProperties


<nb> public class NetworkMonitor extends StateMachine {
 httpResponseCode = NUMBER0 ;
 }

 - sendNetworkConditionsBroadcast ( true COMMENT , httpResponseCode == NUMBER0 ,
 + sendNetworkConditionsBroadcast ( true COMMENT ,
 + httpResponseCode != NUMBER0 COMMENT ,
 requestTimestamp , responseTimestamp ) ;
 } catch ( IOException e ) {
 if ( DBG ) log ( STRING0 + e ) ;

Fix flipped captive portal bit in network conditions bcast


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public class OSecurityShared {
 + public class OSecurityShared implements OSecurity {
 private OSharedResourceExternal lock = new OSharedResourceExternal ( ) ;

 public OUser authenticate ( final String iUserName , final String iUserPassword ) {

OSecurityShared class now implements OSecurity interface


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

 - public class TileAssemblyTable extends TileEntity implements IInventory , IPipeConnection {
 + public class TileAssemblyTable extends TileEntity implements IMachine , IInventory , IPipeConnection {

 ItemStack [ ] items = new ItemStack [ NUMBER0 ] ;

 <nb> public class TileAssemblyTable extends TileEntity implements IInventory , IPipeCo
 iCrafting . updateCraftingInventoryInfo ( container , NUMBER1 , ( int ) energyStored ) ;
 }

 + @ override
 + public boolean isActive ( ) {
 + return currentRecipe != null ;
 + }
 +
 + @ override
 + public boolean manageLiquids ( ) {
 + return false ;
 + }
 +
 + @ override
 + public boolean manageSolids ( ) {
 + return false ;
 + }
 +
 + @ override
 + public boolean allowActions ( ) {
 + return false ;
 + }
 +
 }

Added Work scheduled and Work done triggers to Assembly Table


<nb> public class GraphSail < T extends KeyIndexableGraph > extends NotifyingSailBase im

 String [ ] a = tripleIndexes . split ( STRING0 ) ;
 for ( String s : a ) {
 - u . add ( s . trim ( ) ) ;
 + String pattern = s . trim ( ) ;
 + if ( pattern . length ( ) > NUMBER0 ) {
 + u . add ( pattern ) ;
 + }
 }

 if ( ! u . contains ( STRING1 ) ) {


<nb> public abstract class SessionBeanComponent extends EJBComponent implements org . j
 }
 return ( T ) instance . createProxy ( ) ;
 } else {
 - throw new IllegalArgumentException ( STRING0 + businessInterface + STRING1 + this ) ;
 + throw new IllegalStateException ( STRING0 + businessInterface + STRING1 + this ) ;
 }

 }

Throw IllegalStateException as required by the spec


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

 import static NAMESPACE ;
 <nb> public class HttpSetting extends BaseSetting < HttpResponseSetting > implements Set

 @ override
 public HttpResponseSetting redirectTo ( String url ) {
 - return this . response ( status ( HttpResponseStatus . FOUND . code ( ) ) , header ( STRING0 , checkNotNullOrEmpty ( url , STRING1 ) ) ) ;
 + return this . response ( status ( HttpResponseStatus . FOUND . code ( ) ) , header ( HttpHeaders . LOCATION , checkNotNullOrEmpty ( url , STRING1 ) ) ) ;
 }
 }

changed magic string in redirectTo api to enum


<nb> public class ListIndexExpression extends ExpressionImpl < Integer > implements Seri

 public String render ( RenderingContext renderingContext ) {
 return STRING0
 - + origin . getPathIdentifier ( ) + STRING1 + getListAttribute ( ) . getName ( )
 + + origin . getPathIdentifier ( )
 + STRING2 ;
 }


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


<nb> public abstract class ChangeSignatureDialogBase < P extends ParameterInfo , M exten

 @ nullable
 @ override
 - public TableCellEditor getCellEditor ( final int row , final int column ) {
 + public TableCellEditor getCellEditor ( int row , int column ) {
 final TableCellEditor editor = super . getCellEditor ( row , column ) ;
 final DocumentAdapter listener = new DocumentAdapter ( ) {
 @ override
 <nb> public abstract class ChangeSignatureDialogBase < P extends ParameterInfo , M exten
 final TableCellEditor ed = myParametersTable . getCellEditor ( ) ;
 if ( ed != null ) {
 Object editorValue = ed . getCellEditorValue ( ) ;
 - myParametersTableModel . setValueAtWithoutUpdate ( editorValue , row , column ) ;
 + myParametersTableModel . setValueAtWithoutUpdate ( editorValue , myParametersTable . getSelectedRow ( ) , myParametersTable . getSelectedColumn ( ) ) ;
 updateSignature ( ) ;
 }
 }

always update selected row and selected column


<nb> public class ExtendsTest extends UnitTestCase {
 }
 }

 - public void testEntityNamesWithPackageFailureExpected ( ) {
 + public void testEntityNamesWithPackage ( ) {
 Configuration cfg = new Configuration ( ) ;
 try {
 cfg . addResource ( getBaseForMappings ( ) + STRING0 ) ;

fixed validation of failure expected results


<nb> public class ContactDetail
 Map < Class < ? extends OperationSet > , String > preferredProtocols )
 {
 this . preferredProtocols = preferredProtocols ;
 +
 + SINGLE
 + for ( Class < ? extends OperationSet > opsetClass
 + : preferredProtocols . keySet ( ) )
 + {
 + if ( supportedOpSets == null || ! supportedOpSets . contains ( opsetClass ) )
 + addSupportedOpSet ( opsetClass ) ;
 + }
 }

 COMMENT

Fixes call buttons behaviour if provider info is missing and preferred protocol is set


<nb> package NAMESPACE ;

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

 import NAMESPACE ;
 <nb> class PicassoExecutorService extends ThreadPoolExecutor {
 }

 private void setThreadCount ( int threadCount ) {
 - setMaximumPoolSize ( threadCount ) ;
 - setCorePoolSize ( threadCount ) ;
 + if ( Build . VERSION . SDK_INT > NUMBER0 ) {
 + setMaximumPoolSize ( threadCount ) ;
 + setCorePoolSize ( threadCount ) ;
 + } else {
 + setCorePoolSize ( threadCount ) ;
 + setMaximumPoolSize ( threadCount ) ;
 + }
 }

 @ override

Set max pool size and core size according to Android SDK version


<nb> public class CompletableEntityStore < T > implements CompletionStageEntityStore < T >
 return CompletableFuture . supplyAsync ( new Supplier < E > ( ) {
 @ override
 public E get ( ) {
 - return delegate . update ( entity ) ;
 + return delegate . upsert ( entity ) ;
 }
 } , executor ) ;
 }

Fix CompletableEntityStore upsert operation


<nb> public class JabberAccountRegistrationWizard
 {
 try
 {
 - SwingUtilities . invokeAndWait (
 - new Runnable ( )
 - {
 - public void run ( )
 + if ( SwingUtilities . isEventDispatchThread ( ) )
 + {
 + accPanel . setUsername ( userName ) ;
 + accPanel . setPassword ( password ) ;
 + accPanel . setRememberPassword ( rememberPassword ) ;
 + }
 + else
 + {
 + SwingUtilities . invokeAndWait (
 + new Runnable ( )
 {
 - accPanel . setUsername ( userName ) ;
 - accPanel . setPassword ( password ) ;
 - accPanel . setRememberPassword ( rememberPassword ) ;
 - }
 - } ) ;
 + public void run ( )
 + {
 + accPanel . setUsername ( userName ) ;
 + accPanel . setPassword ( password ) ;
 + accPanel . setRememberPassword (
 + rememberPassword ) ;
 + }
 + } ) ;
 + }
 }
 catch ( Exception e )
 {

Fixes error Cannot call invokeAndWait from the event dispatcher thread when creating xmpp account from simple account wizard


<nb>

 package 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 LiveTemplatesTest extends LightCodeInsightFixtureTestCase {

 @ override
 protected void tearDown ( ) throws Exception {
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + getProject ( ) . getMessageBus ( ) . syncPublisher ( ProjectTopics . PROJECT_ROOTS ) . rootsChanged ( new ModuleRootEventImpl ( getProject ( ) , true ) ) ;
 +
 ( ( TemplateManagerImpl ) TemplateManager . getInstance ( getProject ( ) ) ) . setTemplateTesting ( false ) ;
 super . tearDown ( ) ;
 }

Fix blinking test see comments in the code


<nb> public class DiskBasedCache implements Cache {
 COMMENT
 COMMENT
 COMMENT
 - private File getFileForKey ( String key ) {
 + public File getFileForKey ( String key ) {
 return new File ( mRootDirectory , getFilenameForKey ( key ) ) ;
 }


<nb> public class BitmapUtils {

 SINGLE
 resultBitmap = Bitmap . createBitmap ( bitmap , NUMBER0 , NUMBER0 , bitmap . getWidth ( ) , bitmap . getHeight ( ) , matrix , true ) ;
 + if ( resultBitmap != bitmap ) {
 + bitmap . recycle ( ) ;
 + }
 }
 catch ( Exception exception )
 {

Hurry up release of source bitmap in rotations


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class GoFile extends PsiFileBase {
 return PathUtil . getParentPath ( fullPackageName ) ;
 }
 }
 + else {
 + final String path = PathUtil . getParentPath ( virtualFile . getPath ( ) ) ;
 + final int srcFolder = path . indexOf ( STRING0 ) ;
 + if ( srcFolder > - NUMBER0 ) {
 + return StringUtil . nullize ( path . substring ( srcFolder + NUMBER1 ) ) ;
 + }
 + }
 return null ;
 }

Fix full package name for files from libraries


<nb> public class FMLModContainer implements ModContainer

 private void parseSimpleFieldAnnotation ( SetMultimap < String , ASMData > annotations , String annotationClassName , Function < ModContainer , Object > retreiver ) throws IllegalAccessException
 {
 - System . out . println ( annotationClassName ) ;
 String [ ] annName = annotationClassName . split ( STRING0 ) ;
 - System . out . println ( Arrays . toString ( annName ) ) ;
 String annotationName = annName [ annName . length - NUMBER0 ] ;
 for ( ASMData targets : annotations . get ( annotationClassName ) )
 {


<nb> public class HttpClientTimeoutTest extends AbstractHttpClientServerTest
 SINGLE
 Assume . assumeTrue ( true ) ;
 }
 + catch ( Throwable x )
 + {
 + SINGLE
 + Assume . assumeTrue ( false ) ;
 + }
 }

 private class TimeoutHandler extends AbstractHandler


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class IgnoredFilesInfoImpl implements IgnoredFilesInfo {
 new SimpleStringPattern ( STRING0 )
 } ;

 - public static IgnoredFilesInfo EMPTY_FILTER = new IgnoredFilesInfoImpl ( ) {
 + public static final IgnoredFilesInfo EMPTY_FILTER = new IgnoredFilesInfoImpl ( ) {
 public boolean shouldBeIgnored ( String fileName ) {
 if ( checkPatterns ( CvsEntriesManager . getInstance ( ) . getUserDirIgnores ( ) . getPatterns ( ) , fileName ) ) return true ;
 if ( checkPatterns ( PREDEFINED_PATTERNS , fileName ) ) return true ;


<nb> public class HttpBindServlet extends HttpServlet {
 if ( async ) {
 response . getOutputStream ( ) . setWriteListener ( new WriteListenerImpl ( context , byteContent ) ) ;
 } else {
 - SINGLE
 - SINGLE
 - context . getResponse ( ) . setBufferSize ( byteContent . length ) ;
 + SINGLE
 + SINGLE
 + context . getResponse ( ) . setContentLength ( byteContent . length ) ;
 context . getResponse ( ) . getOutputStream ( ) . write ( byteContent ) ;
 context . getResponse ( ) . getOutputStream ( ) . flush ( ) ;
 context . complete ( ) ;


<nb> public class HtmlExporterTests extends RefineTest {

 SINGLE
 SINGLE
 - @ test
 + @ test ( enabled = false )
 public void exportSimpleHtmlTableNoHeader ( ) {
 CreateGrid ( NUMBER0 , NUMBER0 ) ;
 when ( options . getProperty ( STRING0 ) ) . thenReturn ( STRING1 ) ;
 <nb> public class TemplatingExporterTests extends RefineTest {
 Assert . fail ( ) ;
 }

 - SINGLE
 - SINGLE
 + SINGLE
 Assert . assertEquals ( writer . toString ( ) ,
 prefix
 + rowPrefix + STRING2 + cellSeparator + STRING3 + cellSeparator + STRING4 + rowSeparator
 - + rowPrefix + STRING5 + cellSeparator + cellSeparator + STRING6 + rowSeparator
 - + rowPrefix + cellSeparator + STRING7 + cellSeparator + STRING8
 + + rowPrefix + STRING5 + cellSeparator + STRING9 + cellSeparator + STRING6 + rowSeparator
 + + rowPrefix + STRING9 + cellSeparator + STRING7 + cellSeparator + STRING8
 + suffix ) ;

 }


<nb> public class ActivityLauncher {
 }

 public static void showSignInForResult ( Activity activity ) {
 - if ( shouldShowMagicLinksLogin ( activity ) ; ) {
 + if ( shouldShowMagicLinksLogin ( activity ) ) {
 Intent intent = new Intent ( activity , MagicLinkSignInActivity . class ) ;
 activity . startActivityForResult ( intent , RequestCodes . ADD_ACCOUNT ) ;
 } else {


<nb> public class h2odriver extends Configured implements Tool {
 Thread . sleep ( NUMBER0 ) ;
 }
 }
 - catch ( Exception _ ) {
 + catch ( Exception e ) {
 }
 finally {
 if ( ! killed ) {
 <nb> public class h2omapper extends Mapper < Text , Text , Text , Text > {
 try {
 e . printStackTrace ( ) ;
 }
 - catch ( Exception _ ) {
 + catch ( Exception e2 ) {
 System . err . println ( STRING0 ) ;
 - _ . printStackTrace ( ) ;
 + e2 . printStackTrace ( ) ;
 }
 }
 finally {

Rename swallowed exceptions to not be named _


<nb> public final class Display {
 mGlobal = global ;
 mDisplayId = displayId ;
 mDisplayInfo = displayInfo ;
 - mDisplayAdjustments = daj ;
 + mDisplayAdjustments = new DisplayAdjustments ( daj ) ;
 mIsValid = true ;

 SINGLE
 <nb> public class DisplayAdjustments {
 mActivityToken = token ;
 }

 + public DisplayAdjustments ( DisplayAdjustments daj ) {
 + this ( daj . getCompatibilityInfo ( ) , daj . getActivityToken ( ) ) ;
 + }
 +
 public DisplayAdjustments ( CompatibilityInfo compatInfo , IBinder token ) {
 setCompatibilityInfo ( compatInfo ) ;
 mActivityToken = token ;

Do not reuse DisplayAdjustment in Display


<nb> public class S3UnderFileSystem extends UnderFileSystem {
 COMMENT
 COMMENT
 public S3UnderFileSystem ( AlluxioURI uri , Configuration conf , AWSCredentials awsCredentials )
 - throws ServiceException {
 + throws ServiceException {
 super ( uri , conf ) ;
 String bucketName = uri . getHost ( ) ;
 mBucketName = bucketName ;


<nb> public class EdgeServerReplicationIT

 executeOnLeaderWithRetry ( this : : createData , cluster ) ;

 - cluster . addEdgeMemberWithId ( edgeServerId ) ;
 + cluster . addEdgeMemberWithId ( edgeServerId ) . start ( ) ;

 SINGLE
 executeOnLeaderWithRetry ( this : : createData , cluster ) ;

 + awaitEx ( ( ) - > edgesUpToDateAsTheLeader ( cluster . awaitLeader ( ) , cluster . edgeMembers ( ) ) , NUMBER0 , TimeUnit . MINUTES ) ;
 cluster . removeEdgeMemberWithMemberId ( edgeServerId ) ;

 SINGLE


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

 - @ jsontypeinfo ( use = JsonTypeInfo . Id . NAME ,
 - include = JsonTypeInfo . As . PROPERTY ,
 - property = STRING0 ,
 - defaultImpl = HttpConnectorFactory . class )
 + @ jsontypeinfo ( use = JsonTypeInfo . Id . NAME , include = JsonTypeInfo . As . PROPERTY , property = STRING0 )
 public interface ConnectorFactory {
 Connector build ( Server server ,
 MetricRegistry metrics ,


<nb> public class AsyncHttpClient {
 }

 public < T > Future < T > execute ( AsyncHandler < T > handler ) throws IOException {
 - return AsyncHttpClient . this . executeRequest ( build ( ) , decorate ( handler ) ) ;
 + return AsyncHttpClient . this . executeRequest ( build ( ) , handler ) ;
 }

 public Future < Response > execute ( ) throws IOException {
 - return AsyncHttpClient . this . executeRequest ( build ( ) , decorate ( new AsyncCompletionHandlerBase ( ) ) ) ;
 + return AsyncHttpClient . this . executeRequest ( build ( ) , new AsyncCompletionHandlerBase ( ) ) ;
 }

 SINGLE


<nb> public class WindowOperatorTest extends TestLogger {
 expectedOutput . add ( new StreamRecord < > ( new Tuple2 < > ( STRING0 , NUMBER0 ) , Long . MAX_VALUE ) ) ;
 expectedOutput . add ( new StreamRecord < > ( new Tuple2 < > ( STRING1 , NUMBER0 ) , Long . MAX_VALUE ) ) ;

 - System . out . println ( STRING2 + outputBeforeClose ) ;
 - System . out . println ( STRING3 + testHarness . getOutput ( ) ) ;
 -
 TestHarnessUtil . assertOutputEqualsSorted ( STRING4 , expectedOutput , Iterables . concat ( outputBeforeClose , testHarness . getOutput ( ) ) , new Tuple2ResultSortComparator ( ) ) ;

 testHarness . close ( ) ;

hotfix tests Remove leftover sysout logging code


<nb> abstract class BasicInvocation implements ResponseHandler , Runnable {
 return error ;
 }

 + @ edu.umd.cs.findbugs.annotations.suppresswarnings ( value = STRING0 ,
 + justification = STRING1 )
 private Object resolveCallTimeout ( ) {
 if ( logger . isFinestEnabled ( ) ) {
 logger . finest ( STRING2 + toString ( ) ) ;


<nb> public class OsmandApplication extends Application implements ClientContext {
 uiHandler . post ( new Runnable ( ) {
 @ override
 public void run ( ) {
 - AccessibleToast . makeText ( uiContext , b . toString ( ) , Toast . LENGTH_LONG ) . show ( ) ;
 + AccessibleToast . makeText ( uiContext , b , Toast . LENGTH_LONG ) . show ( ) ;
 }
 } ) ;
 }

Fix redundant toString on a String object


<nb> public class Tsurgeon {
 SINGLE
 break ;
 }
 - Matcher m = commentPattern . matcher ( thisLine ) ;
 - if ( m . matches ( ) ) {
 - SINGLE
 - thisLine = m . replaceFirst ( STRING0 ) ;
 - }
 + thisLine = removeComments ( thisLine ) ;
 if ( ! emptyLinePattern . matcher ( thisLine ) . matches ( ) ) {
 matchString . append ( thisLine ) ;
 }

Fix comment escaping in Tsurgeon command files


<nb> public class MaterialAutoCompleteTextView extends AutoCompleteTextView {
 postInvalidate ( ) ;
 }

 - public boolean getHideUnderline ( ) {
 + public boolean isHideUnderline ( ) {
 return hideUnderline ;
 }

 <nb> public class MaterialEditText extends EditText {
 postInvalidate ( ) ;
 }

 - public boolean getHideUnderline ( ) {
 + public boolean isHideUnderline ( ) {
 return hideUnderline ;
 }

 <nb> public class MaterialMultiAutoCompleteTextView extends MultiAutoCompleteTextView
 postInvalidate ( ) ;
 }

 - public boolean getHideUnderline ( ) {
 + public boolean isHideUnderline ( ) {
 return hideUnderline ;
 }

Rename getHideUnderline to isHideUnderline


<nb> public abstract class LangScriptingContextConfigurable implements Configurable ,
 private final ScriptingLibrariesPanelStub myPanel ;
 private final ScriptingLibraryManager myLibManager ;
 private ScriptingContextsConfigurable myContextsConfigurable ;
 - private final String productName = System . getProperty ( STRING0 ) ;

 public LangScriptingContextConfigurable ( Project project , LangScriptingContextProvider provider ) {
 myLibManager = new ScriptingLibraryManager ( project , provider . getLibraryType ( ) ) ;
 - myPanel = useDedicatedLibraryUI ( ) ? new ScriptingLibrariesPanel ( provider , project , myLibManager ) : new ScriptingLibrariesPanelStub ( ) ;
 + myPanel = useDedicatedLibraryUI ( project ) ? new ScriptingLibrariesPanel ( provider , project , myLibManager ) : new ScriptingLibrariesPanelStub ( ) ;
 myContextsConfigurable = new ScriptingContextsConfigurable ( project , provider . getLibraryMappings ( project ) ) ;
 }

 - private boolean useDedicatedLibraryUI ( ) {
 - SINGLE
 - return STRING1 . equalsIgnoreCase ( productName ) || STRING2 . equalsIgnoreCase ( productName ) ;
 + private static boolean useDedicatedLibraryUI ( Project project ) {
 + return project . getPicoContainer ( ) . getComponentInstance ( STRING3 ) == null ;
 }

 @ nls

correctly detect availability of global library configuration UI


<nb> public class NIOConnection implements Connection {

 public void deliver ( Packet packet ) throws UnauthorizedException {
 if ( state != State . RUNNING ) {
 - SINGLE
 - if ( backupDeliverer == null ) {
 - Log . error ( STRING0 + packet . toXML ( ) ) ;
 - throw new IllegalStateException ( STRING1 ) ;
 - }
 - SINGLE
 - PacketDeliverer backup = backupDeliverer ;
 - backupDeliverer = null ;
 - backup . deliver ( packet ) ;
 + backupDeliverer . deliver ( packet ) ;
 }
 else {
 boolean errorDelivering = false ;


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


<nb> import NAMESPACE ;
 public class ScoreSortBuilder extends SortBuilder < ScoreSortBuilder > {

 public static final String NAME = STRING0 ;
 - public static final ParseField REVERSE_FIELD = new ParseField ( STRING1 ) ;
 public static final ParseField ORDER_FIELD = new ParseField ( STRING2 ) ;
 - private static final ParseField REVERSE_FORBIDDEN = new ParseField ( STRING1 ) ;
 private static final SortField SORT_SCORE = new SortField ( null , SortField . Type . SCORE ) ;
 private static final SortField SORT_SCORE_REVERSE = new SortField ( null , SortField . Type . SCORE , true ) ;

Remove unused reverse parse field from ScoreSortBuilder


<nb> public class SelectBeforeRunTaskDialog extends DialogWrapper {

 myCheckbox . setBackground ( UIUtil . getTreeTextBackground ( ) ) ;
 setBackground ( selected ? UIUtil . getTreeSelectionBackground ( ) : UIUtil . getTreeTextBackground ( ) ) ;
 - Color foreground = selected ? UIUtil . getTreeSelectonForeground ( ) : UIUtil . getTreeTextForeground ( ) ;
 + Color foreground = selected ? UIUtil . getTreeSelectionForeground ( ) : UIUtil . getTreeTextForeground ( ) ;
 setForeground ( foreground ) ;
 myCheckbox . setForeground ( foreground ) ;
 myLabel . setForeground ( foreground ) ;
 <nb> public class MavenUIUtil {
 return baseComponent ;
 }

 - final Color foreground = selected ? UIUtil . getTreeSelectonForeground ( ) : UIUtil . getTreeTextForeground ( ) ;
 + final Color foreground = selected ? UIUtil . getTreeSelectionForeground ( ) : UIUtil . getTreeTextForeground ( ) ;

 panel . add ( baseComponent , BorderLayout . CENTER ) ;
 panel . setBackground ( selected ? UIUtil . getTreeSelectionBackground ( ) : UIUtil . getTreeTextBackground ( ) ) ;

remove duplicate typo method getTreeSelectonForeground


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public abstract class ConfigurableVisitor {
 - protected boolean accept ( Configurable configurable ) {
 - return true ;
 - }
 + public static final ConfigurableVisitor ALL = new ConfigurableVisitor ( ) {
 + @ override
 + protected boolean accept ( Configurable configurable ) {
 + return true ;
 + }
 + } ;
 +
 + protected abstract boolean accept ( Configurable configurable ) ;

 public final Configurable find ( @ notnull ConfigurableGroup . . . groups ) {
 for ( ConfigurableGroup group : groups ) {

Add predefined instance of ConfigurableVisitor to visit all configurables


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

 COMMENT
 <nb> public class EmbeddedMongoAutoConfiguration {
 COMMENT
 COMMENT
 @ configuration
 - @ conditionalonclass ( MongoClient . class )
 + @ conditionalonclass ( { MongoClient . class , MongoClientFactoryBean . class } )
 protected static class EmbeddedMongoDependencyConfiguration
 extends MongoClientDependsOnBeanFactoryPostProcessor {


<nb> import NAMESPACE ;

 abstract public class Contribution {
 + static final String SPECIAL_CATEGORY_NAME = STRING0 ;
 static final List validCategories =
 Arrays . asList ( STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 ,
 - STRING7 , STRING8 , STRING9 , STRING10 , STRING11 ,
 + STRING7 , STRING8 , STRING9 , STRING10 , SPECIAL_CATEGORY_NAME , STRING11 ,
 STRING12 , STRING13 , STRING14 ) ;

 SINGLE
 <nb> abstract public class Contribution {
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + boolean isSpecial ( ) {
 + if ( authorList . indexOf ( STRING15 ) != - NUMBER0 || categories . contains ( SPECIAL_CATEGORY_NAME ) )
 + return true ;
 + return false ;
 + }
 +
 +
 COMMENT
 COMMENT
 COMMENT

Added isSpecial to check if contrib is to be highlighted


<nb> public class SettingsPort implements Serializable
 @ override
 public List < ? extends Option > options ( )
 {
 - return Arrays . asList ( nativePort , thriftPort ) ;
 + return Arrays . asList ( nativePort , thriftPort , jmxPort ) ;
 }
 }


<nb> public class TieredBlockStoreTest {
 private static final long TEMP_BLOCK_ID = NUMBER0 ;
 private static final long BLOCK_SIZE = NUMBER1 ;
 private static final StorageLevelAlias FIRST_TIER_ALIAS = TieredBlockStoreTestUtils . TIER_ALIAS [ NUMBER2 ] ;
 - private static final StorageLevelAlias SECOND_TIER_ALIAS =
 - TieredBlockStoreTestUtils . TIER_ALIAS [ NUMBER3 ] ;
 +
 @ rule
 public TemporaryFolder mTestFolder = new TemporaryFolder ( ) ;
 @ rule


<nb> public interface Cache {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Cache get key type explicitly defines an IllegalStateException in case of a type mismatch


<nb> public class WPActivityUtils {
 resources . updateConfiguration ( conf , resources . getDisplayMetrics ( ) ) ;

 if ( restart ) {
 - Intent refresh = new Intent ( context , context . getClass ( ) ) ;
 + SINGLE
 + Intent refresh = context . getIntent ( ) ;
 + if ( refresh == null ) {
 + refresh = new Intent ( context , context . getClass ( ) ) ;
 + }
 +
 refresh . addFlags ( Intent . FLAG_ACTIVITY_NO_ANIMATION ) ;
 context . startActivity ( refresh ) ;
 context . finish ( ) ;

Using original intent of activity it was started with to restart it


<nb> public final class Native implements Version {
 }

 - private static Map registeredClasses = new HashMap ( ) ;
 - private static Map registeredLibraries = new HashMap ( ) ;
 + private static Map registeredClasses = new WeakHashMap ( ) ;
 + private static Map registeredLibraries = new WeakHashMap ( ) ;

 private static void unregisterAll ( ) {
 synchronized ( registeredClasses ) {


<nb> import NAMESPACE ;
 COMMENT
 public class TransactionCommittingResponseUnpacker implements ResponseUnpacker , Lifecycle
 {
 - private static final int DEFAULT_BATCH_SIZE = NUMBER0 ;
 + private static final int DEFAULT_BATCH_SIZE = NUMBER1 ;

 private class BatchingResponseHandler implements Response . Handler ,
 Visitor < CommittedTransactionRepresentation , IOException >

Increase slave commit batch size to reduce effects of forcing


<nb> public class TextMergeChange extends ThreesideDiffChangeBase {

 @ nullable
 private MyGutterOperation createOperation ( @ notnull ThreeSide side ) {
 - if ( side == ThreeSide . BASE ) return null ;
 if ( isResolved ( side ) ) return null ;

 EditorEx editor = myViewer . getEditor ( side ) ;
 <nb> public class TextMergeChange extends ThreesideDiffChangeBase {
 myCtrlPressed = myViewer . getModifierProvider ( ) . isCtrlPressed ( ) ;
 myShiftPressed = myViewer . getModifierProvider ( ) . isShiftPressed ( ) ;

 - if ( mySide != ThreeSide . BASE ) {
 + if ( mySide == ThreeSide . BASE ) {
 + return createRevertRenderer ( ) ;
 + }
 + else {
 Side versionSide = mySide . select ( Side . LEFT , null , Side . RIGHT ) ;
 assert versionSide != null ;

 <nb> public class TextMergeChange extends ThreesideDiffChangeBase {
 }
 return createApplyRenderer ( versionSide ) ;
 }
 -
 - return null ;
 }
 }

show cancel change action the middle editor


<nb> public final class AlluxioWorkerRestApiTest extends RestApiTest {
 Map < String , Long > metrics = ( Map < String , Long > ) new ObjectMapper ( ) . readValue ( result ,
 new TypeReference < Map < String , Long > > ( ) { } ) ;

 - Assert . assertTrue ( metrics . get ( STRING0 ) >= NUMBER0 ) ;
 + String blocksAccessedMetricName =
 + WorkerContext . getWorkerSource ( ) . getName ( ) + STRING1 + WorkerSource . BLOCKS_ACCESSED ;
 + Assert . assertTrue ( metrics . get ( blocksAccessedMetricName ) >= NUMBER0 ) ;
 }

 @ test


<nb> public class StreamRouterEngine {
 final List < Rule > regexRules = Lists . newArrayList ( ) ;

 for ( Stream stream : streams ) {
 - final boolean sufficient = stream . getMatchingType ( ) == Stream . MatchingType . OR ;
 for ( StreamRule streamRule : stream . getStreamRules ( ) ) {
 final Rule rule ;
 try {
 <nb> public class StreamRouterEngine {
 }
 }

 -
 for ( Stream stream : result ) {
 streamMetrics . markIncomingMeter ( stream . getId ( ) ) ;
 }
 <nb> public class StreamRouterEngine {
 private final StreamRuleMatcher matcher ;
 private final Stream . MatchingType matchingType ;

 -
 public Rule ( Stream stream , StreamRule rule , Stream . MatchingType matchingType ) throws InvalidStreamRuleTypeException {
 this . stream = stream ;
 this . rule = rule ;


<nb> public class ActivityMain extends ActivityBase implements OnItemSelectedListener
 boolean parentAsked = ( ! ondemand || parentValue . contains ( STRING0 ) ) ;

 SINGLE
 - String value = PrivacyManager . getSetting ( userId , Meta . cTypeTemplate , settingName ,
 - Boolean . toString ( parentRestricted && ! hook . isDangerous ( ) ) + ( parentAsked ? STRING1 : STRING2 ) ) ;
 + String value = PrivacyManager . getSetting ( userId , Meta . cTypeTemplate , settingName , null ) ;
 + if ( value == null )
 + value = Boolean . toString ( parentRestricted && ! hook . isDangerous ( ) ) + ( parentAsked ? STRING1 : STRING2 ) ;
 holder . restricted = value . contains ( STRING3 ) ;
 holder . asked = ( ! ondemand || value . contains ( STRING0 ) ) ;
 Bitmap bmRestricted = ( parentRestricted && holder . restricted ? getFullCheckBox ( ) : getOffCheckBox ( ) ) ;


<nb> public class WindowManagerService extends IWindowManager . Stub
 + attrs . token + STRING0 ) ;
 return WindowManagerGlobal . ADD_BAD_APP_TOKEN ;
 }
 + } else if ( token . appWindowToken != null ) {
 + Slog . i ( TAG , STRING1 + type ) ;
 + SINGLE
 + token . appWindowToken = null ;
 }

 win = new WindowState ( this , session , client , token ,


<nb> public class DefaultDaemonCommandExecuter implements DaemonCommandExecuter {
 new CatchAndForwardDaemonFailure ( ) ,
 new HandleStop ( ) ,
 new UpdateDaemonStateAndHandleBusyDaemon ( ) ,
 + new ForwardClientInput ( executorFactory ) ,
 new ReturnResult ( ) ,
 new ForwardOutput ( loggingOutput ) ,
 new ResetDeprecationLogger ( ) ,
 <nb> public class DefaultDaemonCommandExecuter implements DaemonCommandExecuter {
 new HandleSleep ( ) ,
 new EstablishBuildEnvironment ( ) ,
 new WatchForDisconnection ( ) ,
 - new ForwardClientInput ( executorFactory ) ,
 new ExecuteBuild ( loggingServices , launcherFactory )
 ) . proceed ( ) ;
 }
 <nb> public class ForwardClientInput implements DaemonCommandAction {
 } catch ( Exception e ) {
 throw UncheckedException . asUncheckedException ( e ) ;
 } finally {
 - inputReceiver . requestStop ( ) ;
 + SINGLE
 + SINGLE
 + SINGLE
 + inputReceiver . stop ( ) ;
 }
 }

Change the daemon processing pipeline to continue to wait for forwarded input until the client closes the connection


<nb> public class ODistributedServerManager extends OServerHandlerAbstract {
 protected int serverOutSynchMaxBuffers ;
 protected boolean serverElectedForLeadership ;

 - private ODistributedServerDiscoverySignaler discoverySignaler ;
 - private ODistributedServerDiscoveryListener discoveryListener ;
 - private ODistributedServerLeaderChecker leaderCheckerTask ;
 + private volatile ODistributedServerDiscoverySignaler discoverySignaler ;
 + private volatile ODistributedServerDiscoveryListener discoveryListener ;
 + private volatile ODistributedServerLeaderChecker leaderCheckerTask ;
 private ODistributedServerRecordHook trigger ;
 private final OSharedResourceExternal lock = new OSharedResourceExternal ( ) ;

fixed bug on leader election when there are few seconds between messages


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ProjectWorkspace {
 new DefaultClock ( ) ) ;
 }

 + public BuildTarget newBuildTarget ( String fullyQualifiedName )
 + throws IOException , InterruptedException {
 + return BuildTargetFactory . newInstance ( asCell ( ) . getFilesystem ( ) , fullyQualifiedName ) ;
 + }
 +
 COMMENT
 public static class ProcessResult {
 private final int exitCode ;

Add a newBuildTarget method to ProjectWorkspace


<nb> public class ContextPreparer {
 COMMENT
 private void postPrepare ( JobExecutionContext . Builder contextBuilder ,
 PreparerContext preparerContext ) {
 - while ( ! preparerContext . executionPhasesToProcess . isEmpty ( ) ) {
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + int reProcessLimit = preparerContext . executionPhasesToProcess . size ( ) * NUMBER0 ;
 + for ( int i = NUMBER1 ; i < reProcessLimit && ! preparerContext . executionPhasesToProcess . isEmpty ( ) ; i ++ ) {
 List < ExecutionPhase > executionPhasesToProcess = Lists . newArrayList ( preparerContext . executionPhasesToProcess ) ;
 preparerContext . executionPhasesToProcess . clear ( ) ;
 for ( ExecutionPhase executionPhase : executionPhasesToProcess ) {
 processExecutionPhase ( executionPhase , preparerContext , contextBuilder ) ;
 }
 }
 + if ( ! preparerContext . executionPhasesToProcess . isEmpty ( ) ) {
 + throw new IllegalStateException ( STRING0 ) ;
 + }
 }

 private void processExecutionPhase ( ExecutionPhase executionPhase ,

add infinite loop protection to ContextPreparer


<nb>
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb>
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb>
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb>
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb>
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb>
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class FallbackFactoryTest {
 public void fallbackFactory_example_retro ( ) {
 server . enqueue ( new MockResponse ( ) . setResponseCode ( NUMBER0 ) ) ;

 - SINGLE
 TestInterface api = target ( new FallbackApiRetro ( ) ) ;

 assertThat ( api . invoke ( ) ) . isEqualTo ( STRING0 ) ;


<nb> abstract class HdmiCecLocalDevice {
 void addAndStartAction ( final HdmiCecFeatureAction action ) {
 assertRunOnServiceThread ( ) ;
 mActions . add ( action ) ;
 - if ( mService . isPowerStandbyOrTransient ( ) ) {
 + if ( mService . isPowerStandby ( ) ) {
 Slog . i ( TAG , STRING0 + action ) ;
 return ;
 }
 <nb> final class HdmiCecLocalDeviceTv extends HdmiCecLocalDevice {
 @ override
 @ servicethreadonly
 protected void disableDevice ( boolean initiatedByCec , PendingActionClearedCallback callback ) {
 - super . disableDevice ( initiatedByCec , callback ) ;
 assertRunOnServiceThread ( ) ;
 mService . unregisterTvInputCallback ( mTvInputCallback ) ;
 SINGLE
 <nb> final class HdmiCecLocalDeviceTv extends HdmiCecLocalDevice {

 disableSystemAudioIfExist ( ) ;
 disableArcIfExist ( ) ;
 +
 + super . disableDevice ( initiatedByCec , callback ) ;
 clearDeviceInfoList ( ) ;
 checkIfPendingActionsCleared ( ) ;
 }

Let arc termination start before standby


<nb> public class DocumentsActivity extends BaseActivity {

 private volatile boolean mRestoredStack ;
 private volatile boolean mExternal ;
 - private Context mContext ;
 private State mState ;

 public RestoreStackTask ( DocumentsActivity activity ) {
 <nb> public class DocumentsActivity extends BaseActivity {
 if ( DEBUG && ! mState . stack . isEmpty ( ) ) {
 Log . w ( TAG , STRING0 ) ;
 }
 - RootsCache roots = DocumentsApplication . getRootsCache ( mContext ) ;
 + RootsCache roots = DocumentsApplication . getRootsCache ( mOwner ) ;

 String packageName = mOwner . getCallingPackageMaybeExtra ( ) ;
 Uri resumeUri = RecentsProvider . buildResume ( packageName ) ;


<nb> public class Element {
 }
 final boolean setsPos = tokenReference . setsPos ( ) ;
 if ( ! setsPos ) {
 - stringToken = referenceString . replaceAll ( STRING0
 + stringToken = referenceString . replace ( STRING1
 + tokenReference . getTokenRef ( ) ,
 tokenReference . toTokenString ( ) ) ;
 }
 <nb> public class Element {
 }
 setPosElement ( posReference , tokenReference . posRegExp ( ) , negation ) ;
 }
 - stringToken = referenceString . replaceAll ( STRING0
 + stringToken = referenceString . replace ( STRING1
 + tokenReference . getTokenRef ( ) , STRING2 ) ;
 inflected = true ;
 }

fix in case the checked text contains backslashes in unexpected places


<nb> public class TiledMapPacker {
 final Settings texturePackerSettings = new Settings ( ) ;
 texturePackerSettings . paddingX = NUMBER0 ;
 texturePackerSettings . paddingY = NUMBER0 ;
 - texturePackerSettings . duplicatePadding = true ;
 + texturePackerSettings . bleed = true ;
 texturePackerSettings . alias = true ;
 texturePackerSettings . useIndexes = true ;


<nb> public class TechnicalDebt implements Serializable {
 return result ;
 }

 - @ override
 - public String toString ( ) {
 - return super . toString ( ) ;
 - }
 }


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

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


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


<nb> public class PyActiveSdkConfigurable implements UnnamedConfigurable {
 if ( ! sdkList . contains ( selection ) ) {
 selection = null ;
 }
 - final boolean showAll = VirtualEnvProjectFilter . removeNotMatching ( myProject , sdkList ) ;
 + VirtualEnvProjectFilter . removeNotMatching ( myProject , sdkList ) ;
 SINGLE
 if ( selection != null && ! sdkList . contains ( selection ) ) {
 sdkList . add ( NUMBER0 , selection ) ;
 <nb> public class PyActiveSdkConfigurable implements UnnamedConfigurable {
 items . add ( sdk ) ;
 }

 - if ( showAll ) {
 - items . add ( PySdkListCellRenderer . SEPARATOR ) ;
 - items . add ( SHOW_ALL ) ;
 - }
 + items . add ( PySdkListCellRenderer . SEPARATOR ) ;
 + items . add ( SHOW_ALL ) ;

 mySdkCombo . setRenderer ( new PySdkListCellRenderer ( ) ) ;
 SINGLE

show all in project interpreter combobox regardless virtualenv association


<nb> public class SingleInspectionProfilePanel extends JPanel {

 @ override
 protected void onScopeAdded ( ) {
 + myTreeTable . updateUI ( ) ;
 updateOptionsAndDescriptionPanel ( ) ;
 }

adding scope to group does not update containing inspections in tree view


<nb> public class View implements Drawable . Callback , KeyEvent . Callback , Accessibility
 COMMENT
 public static final int LAYER_TYPE_HARDWARE = NUMBER0 ;

 - @ viewdebug.exportedproperty ( category = STRING0 )
 + @ viewdebug.exportedproperty ( category = STRING0 , mapping = {
 + @ viewdebug.inttostring ( from = LAYER_TYPE_NONE , to = STRING1 ) ,
 + @ viewdebug.inttostring ( from = LAYER_TYPE_SOFTWARE , to = STRING2 ) ,
 + @ viewdebug.inttostring ( from = LAYER_TYPE_HARDWARE , to = STRING3 )
 + } )
 int mLayerType = LAYER_TYPE_NONE ;
 Paint mLayerPaint ;


<nb> public class ServiceBuilder {

 System . out . println ( STRING0 + entity . getName ( ) ) ;

 - if ( true ||
 + if ( true ) { / * ||
 entity . getName ( ) . equals ( STRING1 ) ||
 - entity . getName ( ) . equals ( STRING2 ) ) {
 + COMMENT

 if ( entity . hasColumns ( ) ) {
 _createHbm ( entity ) ;


<nb> public class TelephonyManager {
 public void listen ( PhoneStateListener listener , int events ) {
 String pkgForDebug = mContext != null ? mContext . getPackageName ( ) : STRING0 ;
 try {
 - Boolean notifyNow = ( getITelephony ( ) != null ) ;
 + Boolean notifyNow = true ;
 sRegistry . listen ( pkgForDebug , listener . callback , events , notifyNow ) ;
 } catch ( RemoteException ex ) {
 SINGLE

TelephonyManager listen can have notifyNow always true


<nb> public class ChartCalculator {
 }

 public void setAxesMargin ( int axisXMargin , int axisYMargin ) {
 - mContentRectWithMargins . left = mContentRectWithMargins . left + axisXMargin ;
 - mContentRectWithMargins . bottom = mContentRectWithMargins . bottom - axisYMargin ;
 - mContentRect . left = mContentRect . left + axisXMargin ;
 - mContentRect . bottom = mContentRect . bottom - axisYMargin ;
 + mContentRectWithMargins . bottom = mContentRectWithMargins . bottom - axisXMargin ;
 + mContentRectWithMargins . left = mContentRectWithMargins . left + axisYMargin ;
 + mContentRect . left = mContentRect . left + axisYMargin ;
 + mContentRect . bottom = mContentRect . bottom - axisXMargin ;
 }

 public void calculateViewport ( ) {


<nb> public class IntegrationTest {

 @ test
 public void resolveSomeUrls ( ) throws InterruptedException {
 - physicalWebCollection . addUrlDevice ( new RankedDevice ( STRING0 , STRING1 , FLOAT0 ) ) ;
 - physicalWebCollection . addUrlDevice ( new RankedDevice ( STRING2 , STRING3 , FLOAT1 ) ) ;
 + physicalWebCollection . addUrlDevice ( new UrlDevice ( STRING0 , STRING1 ) ) ;
 + physicalWebCollection . addUrlDevice ( new UrlDevice ( STRING2 , STRING3 ) ) ;
 FetchPwsResultsTask task = new FetchPwsResultsTask ( NUMBER0 ) ;
 assertTrue ( task . run ( ) ) ;
 assertNull ( task . getException ( ) ) ;

Removed RankedDevice from IntegrationTest


<nb> public class IndicesMemoryCleaner extends AbstractComponent {
 public void fullMemoryClean ( ) {
 for ( IndexService indexService : indicesService ) {
 for ( IndexShard indexShard : indexService ) {
 - indexShard . flush ( new Engine . Flush ( ) . full ( true ) ) ;
 + try {
 + indexShard . flush ( new Engine . Flush ( ) . full ( true ) ) ;
 + } catch ( FlushNotAllowedEngineException e ) {
 + SINGLE
 + } catch ( IllegalIndexShardStateException e ) {
 + SINGLE
 + } catch ( Exception e ) {
 + logger . warn ( indexShard . shardId ( ) + STRING0 , e ) ;
 + }
 }
 }
 }

ignore state exceptions when trying to flush


<nb> class ViewFetcher {
 T viewToReturn = null ;
 long drawingTime = NUMBER0 ;
 if ( views == null ) {
 - views = getCurrentViews ( classToFilterBy ) ;
 + views = RobotiumUtils . removeInvisibleViews ( getCurrentViews ( classToFilterBy ) ) ;
 }
 for ( T view : views ) {
 if ( view . getDrawingTime ( ) > drawingTime && view . getHeight ( ) > NUMBER0 ) {

Modified getView to only return a visible view


<nb> public class MediaBrowserActivity extends ActionBarActivity implements MediaGrid
 mMediaItemFragment = MediaItemFragment . newInstance ( mediaId ) ;
 ft . add ( R . id . media_browser_container , mMediaItemFragment , MediaItemFragment . TAG ) ;
 ft . addToBackStack ( null ) ;
 - ft . commit ( ) ;
 + ft . commitAllowingStateLoss ( ) ;
 }
 }

Using commitAllowingStateLoss to avoid runtime issues


<nb> public class PaneManager
 case Build :
 return STRING0 ;
 case Learning :
 - return STRING1 ;
 + return getTab ( tab ) . getTitle ( ) ;
 }
 return STRING2 ;
 }

use correct caption for minimized version of learning tab


<nb> public class RunClassInSeparateJvmMachine {
 String systemPropertyDevMode
 = STRING0 + NinjaConstant . MODE_KEY_NAME + STRING1 + NinjaConstant . MODE_DEV ;

 + String contextPath = System . getProperty ( STRING2 , STRING3 ) ;
 +
 + String systemPropertyContextPath = STRING4 + contextPath ;
 +
 ProcessBuilder builder = new ProcessBuilder (
 - javaBin , systemPropertyDevMode , STRING5 , classpathAsString ,
 - classNameWithMainToRun ) ;
 + javaBin , systemPropertyDevMode , systemPropertyContextPath ,
 + STRING5 , classpathAsString , classNameWithMainToRun ) ;

 builder . directory ( new File ( System . getProperty ( NinjaMavenPluginConstants . USER_DIR ) ) ) ;

Adding support of ninja context for SuperDevMode


<nb> public class HttpDownloader extends Downloader {
 SINGLE
 SINGLE
 if ( request . getFeedfileType ( ) == FeedMedia . FEEDFILETYPE_FEEDMEDIA ) {
 - String contentType = response . header ( STRING0 ) ;
 - Log . d ( TAG , STRING1 + contentType ) ;
 int contentLength = - NUMBER0 ;
 String contentLen = response . header ( STRING2 ) ;
 if ( contentLen != null ) {
 <nb> public class HttpDownloader extends Downloader {
 } catch ( NumberFormatException e ) { }
 }
 Log . d ( TAG , STRING3 + contentLength ) ;
 - if ( contentType . startsWith ( STRING4 ) && contentLength < NUMBER1 * NUMBER2 ) {
 + String contentType = response . header ( STRING0 ) ;
 + Log . d ( TAG , STRING1 + contentType ) ;
 + if ( contentType != null && contentType . startsWith ( STRING4 ) &&
 + contentLength < NUMBER1 * NUMBER2 ) {
 onFail ( DownloadError . ERROR_FILE_TYPE , null ) ;
 return ;
 }


<nb> public class HttpClientCodec implements ChannelUpstreamHandler ,
 SINGLE
 SINGLE
 if ( HttpMethod . HEAD . equals ( method ) ) {
 - return true ;
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + return ! msg . isChunked ( ) ;
 }
 break ;
 case STRING0 :

Fixed a bug where HEAD response is not read completely if it s transfer encoding is chunked


<nb> public class FXAAFilter extends Filter {
 public void setSubPixelShift ( float subPixelShift ) {
 this . subPixelShift = subPixelShift ;
 if ( material != null ) {
 - material . setFloat ( STRING0 , this . subPixelShift ) ;
 + material . setFloat ( STRING1 , this . subPixelShift ) ;
 }
 }

Fixed a typo in the setSubPixelShift in the FXAA filter that was causing a crash


<nb> public abstract class ActivityManagerNative extends Binder implements IActivityM
 IActivityController watcher = IActivityController . Stub . asInterface (
 data . readStrongBinder ( ) ) ;
 setActivityController ( watcher ) ;
 + reply . writeNoException ( ) ;
 return true ;
 }

add reply writeNoException for quick response


<nb> public class MetaClassImpl implements MetaClass , MutableMetaClass {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 COMMENT
 public final static class MetaConstructor extends MetaMethod {

dup author tag shouldn t be at method level


<nb> public class DocumentImpl extends UserDataHolderBase implements DocumentEx {

 boolean markAsNeedsStrippingLater = false ;
 CharSequence text = myText . getCharArray ( ) ;
 - RangeMarker caretMarker = caretOffset < NUMBER0 ? null : createRangeMarker ( caretOffset , caretOffset ) ;
 + RangeMarker caretMarker = caretOffset < NUMBER0 || caretOffset > getTextLength ( ) ? null : createRangeMarker ( caretOffset , caretOffset ) ;
 try {
 for ( int line = NUMBER0 ; line < myLineSet . getLineCount ( ) ; line ++ ) {
 if ( inChangedLinesOnly && ! myLineSet . isModified ( line ) ) continue ;

fix strip trailing spaces when caret points after end of document


<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 ;
 +
 + @ runwith ( Arquillian . class )
 + @ runasclient
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public class InherritanceAnnSFSBTestCase extends AnnSBTest {
 <nb> package NAMESPACE ;

 import NAMESPACE ;

 - import NAMESPACE ;
 + import NAMESPACE ;

 COMMENT
 COMMENT
 COMMENT
 - @ stateless
 + @ stateful
 @ securitydomain ( STRING0 )
 - public class InherritanceAnnOnlyCheckSFSB extends ParentAnnOnlyCheck {
 + public class InherritanceAnnOnlyCheckSFSB extends ParentAnnOnlyCheck implements SimpleAuthorizationRemote {
 }
 <nb> import NAMESPACE ;
 COMMENT
 @ stateless
 @ securitydomain ( STRING0 )
 - public class InherritanceAnnOnlyCheckSLSB extends ParentAnnOnlyCheck {
 + public class InherritanceAnnOnlyCheckSLSB extends ParentAnnOnlyCheck implements SimpleAuthorizationRemote {
 }


<nb> public final class EmbeddedGraphDatabase extends AbstractGraphDatabase implement
 graphDbImpl . shutdown ( ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 public boolean enableRemoteShell ( )
 {
 return graphDbImpl . enableRemoteShell ( ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 public boolean enableRemoteShell (
 final Map < String , Serializable > initialProperties )
 {
 <nb> public final class EmbeddedReadOnlyGraphDatabase extends AbstractGraphDatabase
 graphDbImpl . shutdown ( ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 public boolean enableRemoteShell ( )
 {
 return graphDbImpl . enableRemoteShell ( ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 public boolean enableRemoteShell (
 final Map < String , Serializable > initialProperties )
 {

Added missing deprecated tags they are not copied from the interface


<nb> import NAMESPACE
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class EditPostActivity extends AppCompatActivity implements EditorFragmen
 mEditorFragment = ( EditorFragmentAbstract ) fragment ;
 if ( mEditorFragment instanceof EditorMediaUploadListener ) {
 mEditorMediaUploadListener = ( EditorMediaUploadListener ) mEditorFragment ;
 +
 + SINGLE
 + mEditorFragment . setWebViewHeader ( STRING0 , WordPress . getUserAgent ( ) ) ;
 +
 + SINGLE
 + SINGLE
 + Blog currentBlog = WordPress . getCurrentBlog ( ) ;
 + String token = AccountHelper . getDefaultAccount ( ) . getAccessToken ( ) ;
 + if ( currentBlog != null && currentBlog . isPrivate ( ) && ! TextUtils . isEmpty ( token ) ) {
 + mEditorFragment . setWebViewHeader ( STRING1 , STRING2 + token ) ;
 + }
 }
 break ;
 case NUMBER0 :

Set User Agent and Authorization HTTP headers for the visual editor


<nb> package NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class TransactionManagerPostProcessor extends InstantiationAwareBeanPostP
 private PlatformTransactionManager transactionManager ;
 private boolean initialized = false ;

 - public void setTransactionManager ( PlatformTransactionManager transactionManager ) {
 - this . transactionManager = transactionManager ;
 - }
 -
 COMMENT
 COMMENT
 COMMENT
 <nb> public class TransactionManagerPostProcessor extends InstantiationAwareBeanPostP
 SINGLE
 SINGLE
 if ( ! this . initialized ) {
 - String [ ] beanNames = this . beanFactory . getBeanNamesForType ( PlatformTransactionManager . class ) ;
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + String [ ] beanNames = BeanFactoryUtils . beanNamesForTypeIncludingAncestors (
 + this . beanFactory ,
 + PlatformTransactionManager . class ,
 + false ,
 + false ) ;

 SINGLE
 SINGLE

Fixed bug that was causing Grails applications to hang on startup and throw OutOfMemoryErrors


<nb> public class TaskListActivity extends AstridActivity implements MainMenuListener
 mainMenuPopover . suppressNextKeyEvent ( ) ;
 mainMenu . performClick ( ) ;
 return true ;
 + } else if ( keyCode == KeyEvent . KEYCODE_BACK ) {
 + TaskEditFragment tef = getTaskEditFragment ( ) ;
 + if ( tef != null && tef . onKeyDown ( keyCode ) )
 + return true ;
 }
 return super . onKeyDown ( keyCode , event ) ;
 }

Fixed a bug where tablet back button wouldn t fully dismiss the task edit screen


<nb> public abstract class Number implements java . io . Serializable {
 public short shortValue ( ) {
 return NUMBER0 ;
 }
 -
 - private static final long serialVersionUID = - NUMBER1
 }

Fixed syntax error in previous pull request


<nb> public abstract class LagartoServletFilter implements Filter {
 BufferResponseWrapper wrapper = new BufferResponseWrapper ( response ) ;
 filterChain . doFilter ( servletRequest , wrapper ) ;

 + SINGLE
 + SINGLE
 + servletResponse . setContentLength ( - NUMBER0 ) ;
 +
 char [ ] content = wrapper . getBufferContentAsChars ( ) ;

 if ( ( content != null ) && ( content . length != NUMBER1 ) ) {


<nb> public class JavaParameters extends SimpleJavaParameters {

 private ProjectRootsTraversing . RootTraversePolicy getPolicy ( Project project , Module module , int classPathType ) {
 ProjectRootsTraversing . RootTraversePolicy result = ( classPathType & TESTS_ONLY ) != NUMBER0
 - ? ProjectClasspathTraversing . FULL_CLASSPATH_RECURSIVE
 - : ProjectClasspathTraversing . FULL_CLASSPATH_WITHOUT_TESTS ;
 + ? ( classPathType & JDK_ONLY ) != NUMBER0 ? ProjectClasspathTraversing . FULL_CLASSPATH_RECURSIVE : ProjectClasspathTraversing . FULL_CLASS_RECURSIVE_WO_JDK
 + : ( classPathType & JDK_ONLY ) != NUMBER0 ? ProjectClasspathTraversing . FULL_CLASSPATH_WITHOUT_TESTS : ProjectClasspathTraversing . FULL_CLASSPATH_WITHOUT_JDK_AND_TESTS ;

 for ( JavaClasspathPolicyExtender each : Extensions . getExtensions ( JavaClasspathPolicyExtender . EP_NAME ) ) {
 if ( project == null ) {

add groovy all jar to script classpath in case of embeddable distribution


<nb> public class MapRoutePreferencesControl extends MapControls {
 list . add ( new GPXLocalRoutingParameter ( R . string . calculate_osmand_route_gpx ,
 getString ( R . string . calculate_osmand_route_gpx ) , rparams . isCalculateOsmAndRoute ( ) ) ) ;
 }
 - if ( rm == null || ! settings . CALC_GPX_ROUTE . get ( ) ) {
 + if ( rm == null || ( rparams != null && ! rparams . isCalculateOsmAndRoute ( ) ) ) {
 return list ;
 }
 for ( RoutingParameter r : rm . getParameters ( ) . values ( ) ) {
 <nb> public class MapRoutePreferencesControl extends MapControls {
 public void onItemSelected ( AdapterView < ? > parent , View view , int position , long id ) {
 if ( position == NUMBER0 ) {
 mapActivity . getRoutingHelper ( ) . setGpxParams ( null ) ;
 + updateParameters ( ) ;
 } else if ( position == NUMBER1 ) {
 openGPXFileSelection ( gpxSpinner ) ;
 } else if ( position == NUMBER2 ) {


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ApacheDSContainer implements InitializingBean , DisposableBean , Life
 SINGLE

 if ( ldifs != null && ldifs . length > NUMBER0 ) {
 - String ldifFile = ldifs [ NUMBER0 ] . getURI ( ) . toString ( ) ;
 + String ldifFile ;
 +
 + try {
 + ldifFile = ldifs [ NUMBER0 ] . getFile ( ) . getAbsolutePath ( ) ;
 + } catch ( IOException e ) {
 + ldifFile = ldifs [ NUMBER0 ] . getURI ( ) . toString ( ) ;
 + }
 logger . info ( STRING0 + ldifFile ) ;
 LdifFileLoader loader = new LdifFileLoader ( service . getAdminSession ( ) , ldifFile ) ;
 loader . execute ( ) ;

Only use URI for ldif path if file isn t found


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class InstalledPluginsManagerMain extends PluginManagerMain {
 myActionsPanel . add ( installFromDisk ) ;

 StatusText emptyText = pluginTable . getEmptyText ( ) ;
 - emptyText . setText ( STRING0 ) ;
 - emptyText . appendText ( STRING1 ) ;
 - emptyText . appendText ( STRING2 , SimpleTextAttributes . LINK_ATTRIBUTES , new BrowseRepoListener ( null ) ) ;
 - emptyText . appendText ( STRING3 ) ;
 + emptyText . setText ( STRING4 ) ;
 + emptyText . appendText ( STRING5 , SimpleTextAttributes . LINK_ATTRIBUTES , new BrowseRepoListener ( null ) ) ;
 }

 private static void chooseAndInstall ( @ notnull final InstalledPluginsTableModel model ,


<nb>
 package NAMESPACE ;

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

 COMMENT
 COMMENT
 <nb> public class LiquidStack
 {
 return true ;
 }
 -
 +
 return isLiquidEqual ( LiquidContainerRegistry . getLiquidForFilledItem ( other ) ) ;
 }

 <nb> public class LiquidStack
 liquidstack . readFromNBT ( nbt ) ;
 return liquidstack . itemID == NUMBER0 ? null : liquidstack ;
 }
 +
 + @ sideonly ( CLIENT )
 + private Icon renderingIcon ;
 +
 + @ sideonly ( CLIENT )
 + public Icon getRenderingIcon ( )
 + {
 + return renderingIcon ;
 + }
 +
 + @ sideonly ( CLIENT )
 + public void setRenderingIcon ( Icon icon )
 + {
 + this . renderingIcon = icon ;
 + }
 }

Add an Icon to the LiquidStack for rendering the liquid in various ways


<nb> public class DevicePolicyManagerService extends IDevicePolicyManager . Stub {
 mHandler . post ( new Runnable ( ) {
 public void run ( ) {
 try {
 - ActivityManagerNative . getDefault ( ) . switchUser ( UserHandle . USER_OWNER ) ;
 + IActivityManager am = ActivityManagerNative . getDefault ( ) ;
 + if ( am . getCurrentUser ( ) . id == userHandle ) {
 + am . switchUser ( UserHandle . USER_OWNER ) ;
 + }
 if ( ! mUserManager . removeUser ( userHandle ) ) {
 Slog . w ( LOG_TAG , STRING0 + userHandle ) ;
 }

Only switch user if current user is being wiped


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class DialogBuilder implements Disposable {
 }

 private MyDialogWrapper showImpl ( boolean isModal ) {
 - LOG . assertTrue ( myTitle != null && myTitle . trim ( ) . length ( ) != NUMBER0 ,
 + LOG . assertTrue ( ! StringUtil . isEmptyOrSpaces ( myTitle ) ,
 String . format ( STRING0 , myTitle ) ) ;
 myDialogWrapper . setTitle ( myTitle ) ;
 myDialogWrapper . init ( ) ;
 <nb> public class DialogBuilder implements Disposable {
 myDialogWrapper . setOKActionEnabled ( isEnabled ) ;
 }

 + @ notnull
 + public DialogBuilder okActionEnabled ( boolean isEnabled ) {
 + myDialogWrapper . setOKActionEnabled ( isEnabled ) ;
 + return this ;
 + }
 +
 public CustomizableAction getOkAction ( ) {
 return get ( getActionDescriptors ( ) , OkActionDescriptor . class ) ;
 }

use our string util add convenient okActionEnabled


<nb> public class RecipientListParallelTest extends ContextTestSupport {

 public void testRecipientListParallel ( ) throws Exception {
 MockEndpoint mock = getMockEndpoint ( STRING0 ) ;
 - mock . expectedBodiesReceived ( STRING1 , STRING2 , STRING3 ) ;
 + mock . expectedBodiesReceivedInAnyOrder ( STRING1 , STRING2 , STRING3 ) ;

 template . sendBodyAndHeader ( STRING4 , STRING5 , STRING6 , STRING7 ) ;


<nb> abstract public class GDataExtension {
 }
 }
 }
 + scanner . close ( ) ;
 if ( row != null ) {
 rows . add ( row ) ;
 }


<nb> public class IndexDatabase {
 COMMENT
 COMMENT
 COMMENT
 - void addIndexChangedListener ( IndexChangedListener listener ) {
 + public void addIndexChangedListener ( IndexChangedListener listener ) {
 listeners . add ( listener ) ;
 }

 <nb> public class IndexDatabase {
 COMMENT
 COMMENT
 COMMENT
 - void removeIndexChangedListener ( IndexChangedListener listener ) {
 + public void removeIndexChangedListener ( IndexChangedListener listener ) {
 listeners . remove ( listener ) ;
 }


<nb> class Clicker {
 }

 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> class Clicker {
 }

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

 <nb> class Clicker {
 }

 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class Solo {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class Solo {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class Solo {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Clarified javadoc for the clickOnText methods both in Solo and Clicker


<nb> public abstract class GrTypeDefinitionImpl extends GroovyPsiElementImpl implemen
 }
 i = extendsRefs . length ;
 } else if ( ! isInterface ( ) ) {
 - SINGLE
 - result [ NUMBER0 ] = getManager ( ) . getElementFactory ( ) . createTypeByFQClassName ( STRING0 , getResolveScope ( ) ) ;
 + result [ NUMBER0 ] = getManager ( ) . getElementFactory ( ) . createTypeByFQClassName ( STRING1 , getResolveScope ( ) ) ;
 i = NUMBER1 ;
 }


<nb> public class DataBindingUtils {
 public static BindingResult bindObjectToDomainInstance ( GrailsDomainClass domain , Object object ,
 Object source , List include , List exclude , String filter ) {
 BindingResult bindingResult = null ;
 - SINGLE
 boolean useLegacyBinder = false ;
 - final GrailsApplication grailsApplication = GrailsWebRequest . lookupApplication ( ) ;
 + GrailsApplication grailsApplication = null ;
 + if ( domain != null ) {
 + grailsApplication = domain . getGrailsApplication ( ) ;
 + }
 + if ( grailsApplication == null ) {
 + grailsApplication = GrailsWebRequest . lookupApplication ( ) ;
 + }
 if ( grailsApplication != null ) {
 if ( Boolean . TRUE . equals ( grailsApplication . getFlatConfig ( ) . get ( STRING0 ) ) ) {
 useLegacyBinder = true ;

rearrange code which retrieves GrailsApplication for data binding