<nb> public class JacORBExtension implements Extension {

 @ override
 public void initialize ( ExtensionContext context ) {
 - final SubsystemRegistration subsystem = context . registerSubsystem ( SUBSYSTEM_NAME , NUMBER0 , NUMBER1 ) ;
 + final SubsystemRegistration subsystem = context . registerSubsystem ( SUBSYSTEM_NAME , NUMBER0 , NUMBER0 ) ;
 final ManagementResourceRegistration subsystemRegistration = subsystem . registerSubsystemModel ( JacORBSubsystemResource . INSTANCE ) ;
 subsystemRegistration . registerOperationHandler ( DESCRIBE , GenericSubsystemDescribeHandler . INSTANCE , GenericSubsystemDescribeHandler . INSTANCE , false , OperationEntry . EntryType . PRIVATE ) ;
 subsystem . registerXMLElementWriter ( PARSER ) ;
 <nb> public class SecurityExtension implements Extension {

 final boolean registerRuntimeOnly = context . isRuntimeOnlyRegistrationValid ( ) ;

 - final SubsystemRegistration subsystem = context . registerSubsystem ( SUBSYSTEM_NAME , NUMBER0 , NUMBER1 ) ;
 + final SubsystemRegistration subsystem = context . registerSubsystem ( SUBSYSTEM_NAME , NUMBER0 , NUMBER0 ) ;
 final ManagementResourceRegistration registration = subsystem . registerSubsystemModel ( SecuritySubsystemRootResourceDefinition . INSTANCE ) ;
 registration . registerOperationHandler ( DESCRIBE , GenericSubsystemDescribeHandler . INSTANCE , GenericSubsystemDescribeHandler . INSTANCE , false , OperationEntry . EntryType . PRIVATE ) ;

Bump management api version for security and jacorb following Stefan s fixes


<nb> public class MulticastParallelTimeout3Test extends ContextTestSupport {

 from ( STRING0 ) . to ( STRING1 ) . setBody ( constant ( STRING2 ) ) ;

 - from ( STRING3 ) . delay ( NUMBER0 ) . to ( STRING4 ) . setBody ( constant ( STRING5 ) ) ;
 + from ( STRING3 ) . delay ( NUMBER1 ) . to ( STRING4 ) . setBody ( constant ( STRING5 ) ) ;
 SINGLE
 }
 } ;
 <nb> public class MulticastParallelTimeoutTest extends ContextTestSupport {
 . end ( )
 . to ( STRING6 ) ;

 - from ( STRING7 ) . delay ( NUMBER0 ) . to ( STRING8 ) . setBody ( constant ( STRING9 ) ) ;
 + from ( STRING7 ) . delay ( NUMBER1 ) . to ( STRING8 ) . setBody ( constant ( STRING9 ) ) ;

 from ( STRING0 ) . to ( STRING1 ) . setBody ( constant ( STRING2 ) ) ;


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

 import NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;

 COMMENT


<nb> public final class DashMediaSource implements MediaPeriod , MediaSource ,
 manifestUri = manifest . location ;
 }
 if ( ! prepared ) {
 - durationUs = manifest . dynamic ? C . UNSET_TIME_US : manifest . duration * NUMBER0 ;
 + durationUs = manifest . dynamic ? C . UNSET_TIME_US : manifest . getPeriodDuration ( NUMBER1 ) * NUMBER0 ;
 buildTrackGroups ( manifest ) ;
 if ( manifest . utcTiming != null ) {
 resolveUtcTimingElement ( manifest . utcTiming ) ;


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


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

 <nb> public abstract class DynamicDialog extends DialogWrapper {
 }
 } ) ;

 - final PsiClassType objectType = TypesUtil . getJavaLangObject ( myReferenceExpression ) ;
 - myTypeComboBox . getEditor ( ) . setItem ( createDocument ( objectType . getPresentableText ( ) ) ) ;
 + final TypeConstraint [ ] constrants = GroovyExpectedTypesUtil . calculateTypeConstraints ( myReferenceExpression ) ;
 + PsiType type = constrants . length == NUMBER0 ? constrants [ NUMBER1 ] . getType ( ) : TypesUtil . getJavaLangObject ( myReferenceExpression ) ;
 + myTypeComboBox . getEditor ( ) . setItem ( createDocument ( type . getPresentableText ( ) ) ) ;
 }

 protected void addDataChangeListener ( ) {


<nb> public class SchemaResolver implements EntityResolver {
 COMMENT
 COMMENT
 COMMENT
 + @ override
 public InputSource resolveEntity ( String publicId , String systemId )
 throws SAXException {


<nb> public final class Blockmania {
 private int _activeViewingDistance = NUMBER0 ;

 COMMENT
 - private final ThreadPoolExecutor _threadPool = ( ThreadPoolExecutor ) Executors . newFixedThreadPool ( NUMBER1 ) ;
 + private final ThreadPoolExecutor _threadPool = ( ThreadPoolExecutor ) Executors . newCachedThreadPool ( ) ;

 COMMENT
 private static final int FRAME_SKIP_MAX_FRAMES = NUMBER2 ;

Replaces fixed thread pool with a cached alternative


<nb>
 package NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class PsiFileNode extends BasePsiNode < PsiFile > {
 }

 protected void updateImpl ( PresentationData data ) {
 - data . setPresentableText ( getValue ( ) . getName ( ) ) ;
 - data . setIcons ( IconUtilEx . getIcon ( getValue ( ) , Iconable . ICON_FLAG_READ_STATUS , getProject ( ) ) ) ;
 + final PsiFile value = getValue ( ) ;
 + data . setPresentableText ( value . getName ( ) ) ;
 + data . setIcons ( value . getIcon ( Iconable . ICON_FLAG_READ_STATUS ) ) ;
 }

 public VirtualFile getVirtualFile ( ) {


<nb> public class SslTransportLayer implements TransportLayer {
 try {
 return sslEngine . getSession ( ) . getPeerPrincipal ( ) ;
 } catch ( SSLPeerUnverifiedException se ) {
 - log . warn ( STRING0 ) ;
 + log . debug ( STRING0 ) ;
 return KafkaPrincipal . ANONYMOUS ;
 }
 }

Reduce the log level when the peer isn t authenticated but is using SSL


<nb> import NAMESPACE ;
 public class SwipeDismissLayout extends FrameLayout {
 private static final String TAG = STRING0 ;

 - private static final float DISMISS_MIN_DRAG_WIDTH_RATIO = FLOAT0 ;
 + private static final float DISMISS_MIN_DRAG_WIDTH_RATIO = FLOAT1 ;

 public interface OnDismissedListener {
 void onDismissed ( SwipeDismissLayout layout ) ;

Make a smaller cliff for dismissing cards


<nb>
 COMMENT
 package NAMESPACE ;

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

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

 package NAMESPACE ;

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


<nb> public class WebStartTest extends TestCase {
 f . setLocation ( NUMBER0 , NUMBER0 ) ;
 f . setVisible ( true ) ;
 f . setDefaultCloseOperation ( JFrame . EXIT_ON_CLOSE ) ;
 - if ( timeout ) {
 + if ( timeout != NUMBER1 ) {
 try { Thread . sleep ( timeout ) ; } catch ( Exception e ) { }
 }
 }

 public static void main ( String [ ] args ) {
 try {
 - if ( args . length == NUMBER2 && STRING0 . equals ( args [ NUMBER3 ] ) ) {
 + if ( args . length == NUMBER2
 + && STRING0 . equals ( args [ NUMBER3 ] )
 + && ! runningWebStart ( ) ) {
 System . setProperty ( STRING1 , STRING2 ) ;
 }
 if ( runningWebStart ( ) ) {

only set javawebstart version if not already set


<nb>

 package NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;

 COMMENT
 COMMENT
 <nb> public class CacheSizes {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 - public static int sizeOfList ( List list ) {
 + public static int sizeOfCollection ( Collection list ) {
 if ( list == null ) {
 return NUMBER0 ;
 }

Renamed sizeOfList to sizeOfCollection to accept Collections and not only Lists


<nb> public abstract class AbstractCommandViewAttributeTest < ViewType extends View , Co
 @ suppresswarnings ( STRING0 )
 protected void bindViewListenersAwareAttribute ( ViewListeners viewListeners )
 {
 + assertThat ( attribute , instanceOf ( ViewListenersAware . class ) ) ;
 ( ( ViewListenersAware < ViewListeners > ) attribute ) . setViewListeners ( viewListeners ) ;
 bindAttribute ( ) ;
 }

Added a minor improvement to AbstractCommandViewAttributeTest


<nb> public class Utils {
 }
 return ret ;
 }
 +
 + public static byte [ ] toByteArray ( ByteBuffer buffer ) {
 + byte [ ] ret = new byte [ buffer . remaining ( ) ] ;
 + buffer . get ( ret , NUMBER0 , ret . length ) ;
 + return ret ;
 + }
 }


<nb> public class RuleMeasure extends Measure {
 COMMENT
 @ deprecated
 public RuleMeasure ( Metric metric , @ nullable Rule rule , @ nullable RulePriority rulePriority , @ nullable Integer ruleCategory ) {
 - this ( metric , rule . ruleKey ( ) , rulePriority , ruleCategory ) ;
 + this ( metric , rule != null ? rule . ruleKey ( ) : null , rulePriority , ruleCategory ) ;
 }

 public RuleMeasure ( Metric metric , @ nullable RuleKey ruleKey , @ nullable RulePriority rulePriority , @ nullable Integer ruleCategory ) {


<nb> public class Rapids {
 if ( val . isFrame ( ) ) {
 Frame fr = val . getFrame ( ) ;
 assert fr . _key != null ; SINGLE
 - if ( ses . FRAMES . containsKey ( fr ) ) {
 + if ( ses . FRAMES . containsKey ( fr . _key ) ) {
 throw water . H2O . unimpl ( ) ;
 } else {
 ses . addRefCnt ( fr , - NUMBER0 ) ;

Fix a bug with incorrect access to Session FRAMES


<nb> public class EntityBeanEjbSelectCheck
 log ( nameAST . getLineNo ( ) , nameAST . getColumnNo ( ) ,
 STRING0 , STRING1 + name ) ;
 }
 + if ( ! Utils . hasThrows ( aAST , STRING2 ) ) {
 + log ( nameAST . getLineNo ( ) , nameAST . getColumnNo ( ) ,
 + STRING3 ,
 + new Object [ ] { name , STRING2 } ) ;
 + }
 }
 }
 }
 <nb> public class EntityBeanEjbSelectCheckTest extends BaseCheckTestCase
 STRING4 ,
 STRING5 ,
 STRING6 ,
 + STRING7 ,
 } ;
 verify ( checkConfig , getPath ( STRING8 ) , expected ) ;
 }

added check for FinderException throws clause to ejbSelect check


<nb> public class KryoSerializer extends Kryo implements Serializer {
 else if ( type . isArray ( ) ) {
 return isValidClass ( type . getComponentType ( ) ) ;
 } else {
 - for ( Constructor c : type . getConstructors ( ) ) {
 + for ( Constructor c : type . getDeclaredConstructors ( ) ) {
 if ( c . getParameterTypes ( ) . length == NUMBER0 ) return true ;
 }
 return false ;


<nb> final class HttpResponseConduit extends AbstractStreamSinkConduit < StreamSinkCond
 COMMENT
 COMMENT
 private int processWrite ( int state , final Object userData , int pos , int length ) throws IOException {
 - if ( done ) {
 + if ( done || exchange == null ) {
 throw new ClosedChannelException ( ) ;
 }
 try {
 <nb> final class HttpResponseConduit extends AbstractStreamSinkConduit < StreamSinkCond
 }

 private void bufferDone ( ) {
 + if ( exchange == null ) {
 + return ;
 + }
 HttpServerConnection connection = ( HttpServerConnection ) exchange . getConnection ( ) ;
 if ( connection . getExtraBytes ( ) != null && connection . isOpen ( ) && exchange . isRequestComplete ( ) ) {
 SINGLE
 <nb> final class HttpResponseConduit extends AbstractStreamSinkConduit < StreamSinkCond

 pooledBuffer . close ( ) ;
 pooledBuffer = null ;
 + this . exchange = null ;
 }
 }


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

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public final class CryptoHelper {
 } else if ( fingerprint . length ( ) < NUMBER0 ) {
 return fingerprint ;
 }
 - StringBuilder builder = new StringBuilder ( fingerprint . replaceAll ( STRING0 , STRING1 ) ) ;
 + StringBuilder builder = new StringBuilder ( fingerprint . toLowerCase ( Locale . US ) . replaceAll ( STRING0 , STRING1 ) ) ;
 for ( int i = NUMBER1 ; i < builder . length ( ) ; i += NUMBER2 ) {
 builder . insert ( i , STRING2 ) ;
 }


<nb> public class RequestHint {

 private boolean myIgnoreFilters = false ;
 private boolean myRestoreBreakpoints = false ;
 - private final boolean mySkipThisMethod = false ;

 public RequestHint ( final ThreadReferenceProxyImpl stepThread , final SuspendContextImpl suspendContext , @ notnull MethodFilter methodFilter ) {
 this ( stepThread , suspendContext , StepRequest . STEP_INTO , methodFilter ) ;
 <nb> public class RequestHint {
 }

 public int getDepth ( ) {
 - return mySkipThisMethod ? StepRequest . STEP_OUT : myDepth ;
 + return myDepth ;
 }

 @ nullable


<nb> public abstract class FolderPermissionBase {
 ret = driver . run ( STRING0 + tableName ) ;
 Assert . assertEquals ( NUMBER0 , ret . getResponseCode ( ) ) ;

 + assertExistence ( warehouseDir + STRING1 + tableName ) ;
 + verifyPermission ( warehouseDir + STRING1 + tableName ) ;
 +
 ret = driver . run ( STRING2 + tableName + STRING3 ) ;
 Assert . assertEquals ( NUMBER0 , ret . getResponseCode ( ) ) ;

 <nb> public abstract class FolderPermissionBase {

 assertExistence ( partition ) ;
 verifyPermission ( partition ) ;
 +
 + SINGLE
 + ret = driver . run ( STRING0 + tableName + STRING4 ) ;
 + Assert . assertEquals ( NUMBER0 , ret . getResponseCode ( ) ) ;
 +
 + assertExistence ( partition ) ;
 + verifyPermission ( partition ) ;
 }

 private void setSinglePartition ( String tableLoc , int index ) throws Exception {

Add test case to check permissions when truncating partition


<nb> public class SysOperationsTest extends SQLTransportIntegrationTest {
 public void testQueryNameFromSysOperations ( ) throws Exception {
 SQLResponse resp = execute ( STRING0 ) ;

 - SINGLE
 + SINGLE
 SINGLE
 SINGLE

 - assertThat ( resp . rowCount ( ) , Matchers . greaterThanOrEqualTo ( NUMBER0 ) ) ;
 + assertThat ( resp . rowCount ( ) , Matchers . greaterThanOrEqualTo ( ( long ) internalCluster ( ) . numDataNodes ( ) ) ) ;
 List < String > names = new ArrayList < > ( ) ;
 for ( Object [ ] objects : resp . rows ( ) ) {
 names . add ( ( String ) objects [ NUMBER1 ] ) ;


<nb> public class ValueBuilder implements Expression , Predicate {
 SINGLE
 SINGLE

 - public Predicate matches ( Predicate predicate ) {
 - return onNewPredicate ( predicate ) ;
 - }
 -
 public Predicate matches ( Expression expression ) {
 return onNewPredicate ( ExpressionToPredicateAdapter . toPredicate ( expression ) ) ;
 }
 <nb> package NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 <nb> public class ValueBuilderTest extends ContextTestSupport {
 return type . cast ( answer ) ;
 }
 } ) ;
 - mock . message ( NUMBER0 ) . body ( ) . matches ( new Predicate ( ) {
 - public boolean matches ( Exchange exchange ) {
 - String body = exchange . getIn ( ) . getBody ( String . class ) ;
 - return body . contains ( STRING0 ) ;
 - }
 - } ) ;

 template . sendBody ( STRING1 , STRING2 ) ;
 mock . assertIsSatisfied ( ) ;

Reverted Add missing matches predicate method to ValueBuilder


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

 - import NAMESPACE ;
 -
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class HttpClientImpl extends twitter4j . internal . http . HttpClientImpl imple
 SINGLE
 SINGLE
 client . setConnectionPool ( new ConnectionPool ( MAX_IDLE_CONNECTIONS , KEEP_ALIVE_DURATION_MS ) ) ;
 -
 - SINGLE
 - SINGLE
 - SSLContext sslContext ;
 - try {
 - sslContext = SSLContext . getInstance ( STRING0 ) ;
 - sslContext . init ( null , null , null ) ;
 - } catch ( GeneralSecurityException e ) {
 - throw new AssertionError ( ) ; SINGLE
 - }
 - client . setSslSocketFactory ( sslContext . getSocketFactory ( ) ) ;
 }
 }
 }

erase the trick for SSLContext it have done by OkHttpClient itself


<nb> class ApiClientImpl implements ApiClient {
 || ( response . getStatusCode ( ) >= NUMBER0 && response . getStatusCode ( ) < NUMBER1 ) ) {
 T result ;
 try {
 + if ( response . getResponseBody ( ) . isEmpty ( ) ) {
 + return null ;
 + }
 +
 if ( responseContentType . is ( MediaType . JSON_UTF_8 . withoutParameters ( ) ) ) {
 result = deserializeJson ( response , responseClass ) ;
 } else {
 <nb> class ApiClientImpl implements ApiClient {
 throw new APIException ( request , response ) ;
 }

 + if ( result == null ) {
 + throw new APIException ( request , response ) ;
 + }
 +
 return result ;
 } catch ( Exception e ) {
 log . error ( STRING0 + e ) ;


<nb> public abstract class RosieFragment extends Fragment implements ErrorView , Rosie
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 @ override public void onViewCreated ( View view , Bundle savedInstanceState ) {
 super . onViewCreated ( view , savedInstanceState ) ;


<nb> public class BinaryRoutePlanner {
 rlist . add ( rr ) ;
 }
 }
 + runRecalculation = rlist . size ( ) > NUMBER0 ;
 if ( rlist . size ( ) > NUMBER0 ) {
 for ( RouteSegmentResult rr : rlist ) {
 RouteSegment segment = new RouteSegment ( rr . getObject ( ) , rr . getEndPointIndex ( ) ) ;
 <nb> public class BinaryRoutePlanner {
 visitedOppositeSegments . put ( t , segment ) ;
 }
 previous = segment ;
 -
 }
 end = previous ;
 }

Fix critical issue empty route recalculation


<nb> import NAMESPACE ;

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public class SerialMessage {

Updated comments to provide information on the frame format


<nb> public abstract class ActionBarSherlock {
 HashMap < Implementation , Class < ? extends ActionBarSherlock > > impls =
 new HashMap < Implementation , Class < ? extends ActionBarSherlock > > ( IMPLEMENTATIONS ) ;
 boolean hasQualfier ;
 - final boolean isTvDpi = activity . getResources ( ) . getDisplayMetrics ( ) . densityDpi == DisplayMetrics . DENSITY_TV ;

 COMMENT
 hasQualfier = false ;
 <nb> public abstract class ActionBarSherlock {
 }
 }
 if ( hasQualfier ) {
 - SINGLE
 + final boolean isTvDpi = activity . getResources ( ) . getDisplayMetrics ( ) . densityDpi == DisplayMetrics . DENSITY_TV ;
 for ( Iterator < Implementation > keys = impls . keySet ( ) . iterator ( ) ; keys . hasNext ( ) ; ) {
 int keyDpi = keys . next ( ) . dpi ( ) ;
 if ( ( isTvDpi && keyDpi != DisplayMetrics . DENSITY_TV )


<nb> public enum BlockType {
 COMMENT
 public static BlockType lookup ( String name , boolean fuzzy ) {
 String testName = name . replace ( STRING0 , STRING1 ) . toLowerCase ( ) ;
 +
 + if ( testName . length ( ) == NUMBER0 ) {
 + return null ;
 + }

 BlockType type = lookup . get ( testName ) ;

 <nb> public enum ItemType {
 COMMENT
 public static ItemType lookup ( String name , boolean fuzzy ) {
 String testName = name . replace ( STRING0 , STRING1 ) . toLowerCase ( ) ;
 +
 + if ( testName . length ( ) == NUMBER0 ) {
 + return null ;
 + }

 ItemType type = lookup . get ( testName ) ;

Fix handling of empty strings passed to Block ItemType


<nb> public class ProjectWorkspace {

 MoreFiles . copyRecursively ( templatePath , destPath , BUILD_FILE_RENAME ) ;

 - SINGLE
 + SINGLE
 Path localProperties = FileSystems . getDefault ( ) . getPath ( STRING0 ) ;
 - try {
 - java . nio . file . Files . copy ( localProperties , destPath . resolve ( localProperties . getFileName ( ) ) ) ;
 - } catch ( SecurityException | IOException e ) {
 - SINGLE
 - System . err . println ( STRING1 + e ) ;
 + Path destLocalProperties = destPath . resolve ( localProperties . getFileName ( ) ) ;
 +
 + if ( localProperties . toFile ( ) . exists ( ) && ! destLocalProperties . toFile ( ) . exists ( ) ) {
 + java . nio . file . Files . copy ( localProperties , destLocalProperties ) ;
 }

 if ( Platform . detect ( ) == Platform . WINDOWS ) {


<nb> public class KeyStoreTest extends ActivityUnitTestCase < Activity > {
 assertEquals ( STRING0 , KeyStore . NO_ERROR , rc ) ;
 OperationResult result = mKeyStore . begin ( name , KeymasterDefs . KM_PURPOSE_ENCRYPT ,
 true , args , null , out ) ;
 - assertEquals ( STRING1 , KeyStore . NO_ERROR , result . resultCode ) ;
 + assertEquals ( STRING2 , KeyStore . OP_AUTH_NEEDED ,
 + result . resultCode ) ;
 IBinder token = result . token ;
 result = mKeyStore . update ( token , null , new byte [ ] { NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3 } ) ;
 assertEquals ( STRING3 ,


<nb> catch ( Throwable t )
 {

 }
 + else if ( action == JingleAction . SESSION_INFO )
 + {
 + SessionInfoPacketExtension info = ( SessionInfoPacketExtension )
 + jingleIQ . getExtension ( SessionInfoPacketExtension . NAMESPACE ) ;
 +
 + if ( info == null )
 + return ;
 +
 + if ( info . getType ( ) == SessionInfoType . ringing )
 + {
 + CallPeerJabberImpl callPeer =
 + activeCallsRepository . findCallPeer ( jingleIQ . getSID ( ) ) ;
 +
 + if ( callPeer == null )
 + {
 + if ( logger . isDebugEnabled ( ) )
 + logger . debug ( STRING0 ) ;
 + return ;
 + }
 +
 + SINGLE
 + callPeer . setState ( CallPeerState . ALERTING_REMOTE_SIDE ) ;
 + }
 + }
 }

 COMMENT

Adds support for Ringing responses to Jabber


<nb> public class TextToSpeech {

 try {
 mService . setCallback ( getCallerIdentity ( ) , mCallback ) ;
 - String [ ] defaultLanguage = mService . getClientDefaultLanguage ( ) ;

 - mParams . putString ( Engine . KEY_PARAM_LANGUAGE , defaultLanguage [ NUMBER0 ] ) ;
 - mParams . putString ( Engine . KEY_PARAM_COUNTRY , defaultLanguage [ NUMBER1 ] ) ;
 - mParams . putString ( Engine . KEY_PARAM_VARIANT , defaultLanguage [ NUMBER2 ] ) ;
 + if ( mParams . getString ( Engine . KEY_PARAM_LANGUAGE ) == null ) {
 + String [ ] defaultLanguage = mService . getClientDefaultLanguage ( ) ;
 + mParams . putString ( Engine . KEY_PARAM_LANGUAGE , defaultLanguage [ NUMBER0 ] ) ;
 + mParams . putString ( Engine . KEY_PARAM_COUNTRY , defaultLanguage [ NUMBER1 ] ) ;
 + mParams . putString ( Engine . KEY_PARAM_VARIANT , defaultLanguage [ NUMBER2 ] ) ;
 + }

 Log . i ( TAG , STRING0 + mName ) ;
 return SUCCESS ;

Do not reset language in case of the TTS service reconnect


<nb> public class KotlinExtractFunctionDialog extends DialogWrapper {
 boolean enableVisibility = isVisibilitySectionAvailable ( ) ;
 visibilityBox . setEnabled ( enableVisibility ) ;
 if ( enableVisibility ) {
 - String visibility = originalDescriptor . getDescriptor ( ) . getVisibility ( ) ;
 - visibilityBox . setSelectedItem ( visibility . isEmpty ( ) ? STRING0 : visibility ) ;
 + visibilityBox . setSelectedItem ( STRING1 ) ;
 }
 visibilityBox . addItemListener (
 new ItemListener ( ) {

Make member top level function private by default


<nb> class ImapFolderPusher extends ImapFolder {
 } catch ( Exception me ) {
 Log . e ( LOG_TAG , STRING0 + getLogId ( ) , me ) ;
 }
 +
 + connection = null ;
 }

 private long getNewUidNext ( ) throws MessagingException {

Don t reuse connection after exception in ImapFolderPusher


<nb> public class WifiConfiguration implements Parcelable {

 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + public String lastFailure ;
 +
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class WifiConfiguration implements Parcelable {
 if ( source . visibility != null ) {
 visibility = new Visibility ( source . visibility ) ;
 }
 +
 + lastFailure = source . lastFailure ;
 }
 }


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

 <nb> class ActionBarImplICS extends ActionBar {
 mActionBar . removeOnMenuVisibilityListener ( l ) ;
 }

 + @ override
 + public void setHomeButtonEnabled ( boolean enabled ) {
 + mActionBar . setHomeButtonEnabled ( enabled ) ;
 + }
 +
 static class OnNavigationListenerWrapper implements android . app . ActionBar . OnNavigationListener {

 private final OnNavigationListener mWrappedListener ;


<nb> public class FileBasedIndex implements ApplicationComponent {
 if ( file instanceof VirtualFileWithId ) {
 boolean oldStuff = true ;
 if ( ! isTooLarge ( file ) ) {
 - for ( ID < ? , ? > indexId : myIndices . keySet ( ) ) {
 + final Set < ID < ? , ? > > ids = new HashSet < ID < ? , ? > > ( myIndices . keySet ( ) ) ;
 + ids . removeAll ( myNotRequiringContentIndices ) ;
 +
 + for ( ID < ? , ? > indexId : ids ) {
 try {
 if ( shouldIndexFile ( file , indexId ) ) {
 myFiles . add ( file ) ;

Do not push content of the files to the queue if we only need to index its name


<nb> package NAMESPACE ;

 import NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class DesktopApplicationHeader implements ApplicationHeader
 return selection . isEmpty ( ) ;
 }

 - String selectionText = DomUtils . getSelectionText ( Document . get ( ) ) ;
 - return StringUtil . isNullOrEmpty ( selectionText ) ;
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + return false ;
 }

 private static boolean isFocusInAceInstance ( )


<nb> public class FunctionRefTests extends ScriptTestCase {
 public void testOwnStaticMethodReference ( ) {
 SINGLE
 SINGLE
 - assertEquals ( NUMBER0 , exec ( STRING0 +
 + assertEquals ( NUMBER0 , exec ( STRING1 +
 STRING2 ) ) ;
 }

 @ awaitsfix ( bugUrl = STRING3 )
 public void testOwnStaticMethodReferenceDef ( ) {
 - assertEquals ( NUMBER0 , exec ( STRING0 +
 + assertEquals ( NUMBER0 , exec ( STRING1 +
 STRING4 ) ) ;
 }


<nb> public class CheckerTest
 public void testPackageNames ( ) throws CheckstyleException
 {
 final Checker c = new Checker ( ) ;
 + assertNotNull ( c ) ;

 SINGLE
 SINGLE


<nb> public abstract class BaseLayoutManager extends TwoWayLayoutManager {
 }

 final int itemCount = state . getItemCount ( ) ;
 - mItemEntries . setAdapterSize ( itemCount ) ;
 +
 + if ( mItemEntries != null ) {
 + mItemEntries . setAdapterSize ( itemCount ) ;
 + }

 final int anchorItemPosition = getAnchorItemPosition ( state ) ;

layouts Fix NPE when restoring ListLayoutManager state


<nb> public class PokeBank {
 this . instance = instance ;
 }

 - public void addPokemon ( Pokemon pokemon ) {
 + public void addPokemon ( final Pokemon pokemon ) {
 pokemon . setPgo ( instance ) ;
 - pokemons . add ( pokemon ) ;
 + List < Pokemon > alreadyAdded = StreamSupport . stream ( pokemons ) . filter ( new Predicate < Pokemon > ( ) {
 + @ override
 + public boolean test ( Pokemon p ) {
 + return pokemon . getId ( ) == p . getId ( ) ;
 + }
 + } ) . collect ( Collectors . < Pokemon > toList ( ) ) ;
 + if ( alreadyAdded . size ( ) < NUMBER0 ) {
 + pokemons . add ( pokemon ) ;
 + }
 }

Added check to see if pokemon was already in the inventory


<nb> public final class ContactsContract {
 public static final String LIMIT_PARAM_KEY = STRING0 ;

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static final String PRIMARY_ACCOUNT_NAME = STRING1 ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static final String PRIMARY_ACCOUNT_TYPE = STRING2 ;
 +
 +
 + COMMENT
 COMMENT
 COMMENT
 public static final class Preferences {

Add params for primary account to ContactsContract


<nb> public final class FuncallExpression extends Expression {
 obj = value ;
 objClass = value . getClass ( ) ;
 }
 - MethodDescriptor methodDescriptor = call . findJavaMethod ( objClass , method , positionalArgs ) ;
 if ( ! keyWordArgs . isEmpty ( ) ) {
 throw new EvalException (
 call . func . getLocation ( ) ,
 <nb> public final class FuncallExpression extends Expression {
 method ,
 EvalUtils . getDataTypeNameFromClass ( objClass ) ) ) ;
 }
 + MethodDescriptor methodDescriptor = call . findJavaMethod ( objClass , method , positionalArgs ) ;
 return callMethod ( methodDescriptor , method , obj , positionalArgs . toArray ( ) , location , env ) ;
 }
 }
 <nb> public class SkylarkEvaluationTest extends EvaluationTest {
 new SkylarkTest ( )
 . update ( STRING0 , new Mock ( ) )
 . testIfExactError ( STRING1
 - + STRING2 ,
 - STRING3 ) ;
 + + STRING4 ,
 + STRING5 ) ;
 }

 @ test

Prioritize kwarg presence error in invokeObjectMethod


<nb> public class ModuleWithDependenciesScope extends GlobalSearchScope {

 if ( myModules != null ) {
 final Module module = myProjectFileIndex . getModuleForFile ( file ) ;
 - if ( module != null ) return myModules . contains ( module ) && myFileIndex . getOrderEntryForFile ( file ) != null ;
 + if ( module != null ) return myModules . contains ( module ) &&
 + myFileIndex . getOrderEntryForFile ( file ) != null &&
 + ( myIncludeTests || ! myProjectFileIndex . isInTestSourceContent ( file ) ) ;
 }

 final List < OrderEntry > entries = myFileIndex . getOrderEntriesForFile ( file ) ;

Editor allows production code in module A to reference test code in module B when A depends on B


<nb> public class MongoOptions {
 socketFactory = SocketFactory . getDefault ( ) ;
 }

 + public MongoOptions copy ( ) {
 + MongoOptions m = new MongoOptions ( ) ;
 + m . connectionsPerHost = connectionsPerHost ;
 + m . threadsAllowedToBlockForConnectionMultiplier = threadsAllowedToBlockForConnectionMultiplier ;
 + m . maxWaitTime = maxWaitTime ;
 + m . connectTimeout = connectTimeout ;
 + m . socketTimeout = socketTimeout ;
 + m . socketKeepAlive = socketKeepAlive ;
 + m . autoConnectRetry = autoConnectRetry ;
 + m . maxAutoConnectRetryTime = maxAutoConnectRetryTime ;
 + m . slaveOk = slaveOk ;
 + m . safe = safe ;
 + m . w = w ;
 + m . wtimeout = wtimeout ;
 + m . fsync = fsync ;
 + m . j = j ;
 + m . dbDecoderFactory = dbDecoderFactory ;
 + m . dbEncoderFactory = dbEncoderFactory ;
 + m . socketFactory = socketFactory ;
 + return m ;
 + }
 +
 COMMENT
 COMMENT
 COMMENT


<nb> public class HttpAsyncCallbackTest extends CamelTestSupport {
 assertMockEndpointsSatisfied ( ) ;

 SINGLE
 - Thread . sleep ( NUMBER0 ) ;
 + Thread . sleep ( NUMBER1 ) ;

 SINGLE
 assertEquals ( NUMBER2 , callback . getData ( ) . size ( ) ) ;
 <nb> public class HttpAsyncCallbackTest extends CamelTestSupport {
 SINGLE
 SINGLE
 from ( STRING0 )
 - . delay ( NUMBER1 )
 + . delay ( NUMBER3 )
 . transform ( body ( ) . prepend ( STRING1 ) )
 . to ( STRING2 ) ;
 SINGLE
 }
 } ;
 }
 -
 }


<nb> import NAMESPACE ;
 } )
 public class Person {
 @ id
 - @ generatedvalue ( strategy = GenerationType . AUTO )
 + @ generatedvalue ( strategy = GenerationType . IDENTITY )
 private long id ;

 @ column ( name = STRING0 , nullable = false )


<nb> class DumbModeIndicator extends StatusBarCustomComponentFactory < DumbModeIndicato
 STRING0 +
 STRING1 +
 STRING2 +
 - STRING3 +
 - STRING4 +
 - STRING5 + DumbServiceImpl . FILE_INDEX_BACKGROUND + STRING6 +
 - STRING7 +
 STRING8 , STRING9 , DUMB_MODE_ICON ) ;
 }
 } ) ;

don t mention registry in dumb mode disclaimer


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

 import NAMESPACE ;
 import NAMESPACE ;


<nb> public class EvalExpressionDialog extends InputExpressionDialog < EvalFormPanel > {
 public EvalExpressionDialog ( Project project , Config settings , HistoryElement [ ] history ) {
 super ( project , settings , history , new EvalFormPanel ( ) ) ;
 setTitle ( STRING0 ) ;
 + setOKButtonText ( STRING1 ) ;
 }

 protected void init ( ) {

Evaluate XPath Expression OK button text


<nb> public class NotificationManagerService extends INotificationManager . Stub
 pw . println ( prefix + STRING0 + notification . deleteIntent ) ;
 pw . println ( prefix + STRING1 + notification . tickerText ) ;
 pw . println ( prefix + STRING2 + notification . contentView ) ;
 + pw . println ( prefix + STRING3 + uid ) ;
 pw . println ( prefix + STRING4 + Integer . toHexString ( notification . defaults ) ) ;
 pw . println ( prefix + STRING5 + Integer . toHexString ( notification . flags ) ) ;
 pw . println ( prefix + STRING6 + notification . sound ) ;

Dump the uid of a notification for debugging


<nb> public class MailComponent extends DefaultComponent implements HeaderFilterStrat

 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public static MailComponent mailComponent ( ) {
 return new MailComponent ( ) ;
 <nb> public class MailComponent extends DefaultComponent implements HeaderFilterStrat

 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public static MailComponent mailComponent ( MailConfiguration configuration ) {
 return new MailComponent ( configuration ) ;
 <nb> public class MailComponent extends DefaultComponent implements HeaderFilterStrat

 @ override
 protected Endpoint createEndpoint ( String uri , String remaining , Map parameters ) throws Exception {
 -
 URI url = new URI ( uri ) ;
 if ( STRING0 . equalsIgnoreCase ( url . getScheme ( ) ) ) {
 throw new UnsupportedOperationException ( STRING1 ) ;
 <nb> public class MailComponent extends DefaultComponent implements HeaderFilterStrat

 public void setHeaderFilterStrategy ( HeaderFilterStrategy strategy ) {
 headerFilterStrategy = strategy ;
 -
 }
 }

polished code and marked methods for deprecation


<nb> public class VideoItemDetailFragment extends Fragment {
 }
 @ override
 public void run ( ) {
 - boolean show_age_restricted_content = PreferenceManager . getDefaultSharedPreferences ( getActivity ( ) )
 - . getBoolean ( activity . getString ( R . string . show_age_restricted_content ) , false ) ;
 - if ( streamInfo . age_limit == NUMBER0 || show_age_restricted_content ) {
 - updateInfo ( streamInfo ) ;
 - } else {
 - onNotSpecifiedContentErrorWithMessage ( R . string . video_is_age_restricted ) ;
 + Activity a = getActivity ( ) ;
 + if ( a != null ) {
 + boolean show_age_restricted_content = PreferenceManager . getDefaultSharedPreferences ( a )
 + . getBoolean ( activity . getString ( R . string . show_age_restricted_content ) , false ) ;
 + if ( streamInfo . age_limit == NUMBER0 || show_age_restricted_content ) {
 + updateInfo ( streamInfo ) ;
 + } else {
 + onNotSpecifiedContentErrorWithMessage ( R . string . video_is_age_restricted ) ;
 + }
 }
 }
 }


<nb> public class RenderQueue {

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

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public GeometryComparator getGeometryComparator ( Bucket bucket ) {
 + switch ( bucket ) {
 + case Gui :
 + return guiList . getComparator ( ) ;
 + case Opaque :
 + return opaqueList . getComparator ( ) ;
 + case Sky :
 + return skyList . getComparator ( ) ;
 + case Transparent :
 + return transparentList . getComparator ( ) ;
 + case Translucent :
 + return translucentList . getComparator ( ) ;
 + default :
 + throw new UnsupportedOperationException ( STRING0 + bucket ) ;
 + }
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Added an accessor for accessing the current GeometryComparator


<nb> public class FastAdapter < Item extends IItem > extends RecyclerView . Adapter < Recycl
 private boolean mSelectable = false ;
 SINGLE
 private boolean mOnlyOneExpandedItem = false ;
 - SINGLE
 + SINGLE
 private boolean mPositionBasedStateManagement = false ;

 SINGLE
 <nb> public class FastAdapter < Item extends IItem > extends RecyclerView . Adapter < Recycl
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public FastAdapter < Item > withPositionBasedStateManagement ( boolean mPositionBasedStateManagement ) {
 + this . mPositionBasedStateManagement = mPositionBasedStateManagement ;
 + return this ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 public boolean isSelectable ( ) {

add setter for to configure the new StateManagment or use the previous variant


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class LwjglContext implements JmeContext {

 if ( settings . getRenderer ( ) . equals ( AppSettings . LWJGL_OPENGL2 )
 || settings . getRenderer ( ) . equals ( AppSettings . LWJGL_OPENGL3 ) ) {
 - renderer = new LwjglRenderer ( ) ;
 - ( ( LwjglRenderer ) renderer ) . initialize ( ) ;
 + LwjglGL gl = new LwjglGL ( ) ;
 + LwjglGLExt glext = new LwjglGLExt ( ) ;
 + renderer = new GLRenderer ( gl , glext ) ;
 + renderer . initialize ( ) ;
 } else {
 throw new UnsupportedOperationException ( STRING0 + settings . getRenderer ( ) ) ;
 }

Use unified renderer architecture for LWJGL by default other backends pending


<nb> public class OsmandSettings {
 return customBooleanRoutingProps . get ( attrName ) ;
 }

 + public final OsmandPreference < Boolean > USE_OSM_LIVE_FOR_ROUTING = new BooleanPreference ( STRING0 , false ) . makeGlobal ( ) ;
 +
 public final OsmandPreference < Boolean > VOICE_MUTE = new BooleanPreference ( STRING1 , false ) . makeGlobal ( ) ;

 SINGLE
 <nb> public class ResourceManager {
 warnings . add ( MessageFormat . format ( context . getString ( R . string . version_index_is_not_supported ) , f . getName ( ) ) ) ; SINGLE
 }
 }
 - if ( mapReader . containsRouteData ( ) ) {
 + SINGLE
 + if ( mapReader . containsRouteData ( ) && ( ! f . getParentFile ( ) . equals ( liveDir ) ||
 + context . getSettings ( ) . USE_OSM_LIVE_FOR_ROUTING . get ( ) ) ) {
 try {
 RandomAccessFile raf = new RandomAccessFile ( f , STRING2 ) ; SINGLE
 routingMapFiles . put ( f . getName ( ) , new BinaryMapIndexReader ( raf , mapReader ) ) ;


<nb> public final class CrossLanguageRegexpHeaderCheck extends AbstractFileSetCheck
 private final RegexpHeaderInfo mHeaderInfo = new RegexpHeaderInfo ( ) ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class SpringApplicationJsonEnvironmentPostProcessor

 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 private Map < String , Object > flatten ( Map < String , Object > map ) {
 Map < String , Object > result = new LinkedHashMap < String , Object > ( ) ;

Fix the javadoc in SpringApplicationJsonEnvironmentPostProcessor


<nb> public interface Block {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 - void setTypeID ( int type ) ;
 + boolean setTypeID ( int type ) ;

 COMMENT
 COMMENT

Changed Block setTypeID to return a boolean indicating whether the block was changed as provided by Minecraft


<nb> public class MediaRouteControllerDialog extends AlertDialog {
 if ( pi != null ) {
 try {
 pi . send ( ) ;
 + dismiss ( ) ;
 } catch ( PendingIntent . CanceledException e ) {
 Log . e ( TAG , pi + STRING0 ) ;
 }
 }
 }
 - dismiss ( ) ;
 }
 } ;
 mArtView = ( ImageView ) findViewById ( R . id . mr_art ) ;

Dismiss the controller dialog only when a pending intent is set


<nb> public class Response
 outputBuffer . setResponse ( coyoteResponse ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 public org . apache . coyote . Response getCoyoteResponse ( ) {
 return this . coyoteResponse ;
 }

Restore Javadoc to the getCoyoteResponse method


<nb> public abstract class AbstractProtocol implements ProtocolHandler ,
 this . handler = handler ;
 }

 + @ suppresswarnings ( STRING0 ) SINGLE
 @ override
 public boolean push ( Processor < S > processor ) {
 int cacheSize = handler . getProtocol ( ) . getProcessorCache ( ) ;
 <nb> public abstract class AbstractProtocol implements ProtocolHandler ,
 return result ;
 }

 + @ suppresswarnings ( STRING0 ) SINGLE
 @ override
 public Processor < S > pop ( ) {
 Processor < S > result = super . pop ( ) ;


<nb> import NAMESPACE ;
 COMMENT
 class DomainApiHandler implements ManagementHttpHandler {

 - private static final String DOMAIN_API_CONTEXT = STRING0 ;
 + private static final String DOMAIN_API_CONTEXT = STRING1 ;
 private static final String UPLOAD_REQUEST = DOMAIN_API_CONTEXT + STRING2 ;

 private static Pattern MULTIPART_FD_BOUNDARY = Pattern . compile ( STRING3 ) ;


<nb> public final class SourceMapDecoder {
 }

 List < String > sources = readSources ( sourcesReader , sourceRoot ) ;
 + if ( sources . isEmpty ( ) ) {
 + SINGLE
 + return null ;
 + }

 @ suppresswarnings ( STRING0 )
 List < MappingEntry > [ ] reverseMappingsBySourceUrl = new List [ sources . size ( ) ] ;


<nb>
 package NAMESPACE ;

 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class Metrics {
 HEALTH_CHECKS . putIfAbsent ( name , healthCheck ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static Map < MetricName , Metric > allMetrics ( ) {
 + return Collections . unmodifiableMap ( METRICS ) ;
 + }
 +
 @ suppresswarnings ( STRING0 )
 private static < T extends Metric > T getOrAdd ( MetricName name , T metric ) {
 final Metric existingMetric = METRICS . get ( name ) ;

Added an unmodifiable view into all metrics


<nb> import static NAMESPACE ;
 @ suppresswarnings ( STRING0 )
 public abstract class HttpBase < T > {

 + public static final String HEADER_ACCEPT = STRING1 ;
 public static final String HEADER_ACCEPT_ENCODING = STRING2 ;
 public static final String HEADER_CONTENT_TYPE = STRING3 ;
 public static final String HEADER_CONTENT_LENGTH = STRING4 ;
 <nb> public abstract class HttpBase < T > {
 return header ( HEADER_CONTENT_ENCODING ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + public String accept ( ) {
 + return header ( HEADER_ACCEPT ) ;
 + }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + public T accept ( String encodings ) {
 + header ( HEADER_ACCEPT , encodings , true ) ;
 + return ( T ) this ;
 + }
 +
 COMMENT
 COMMENT
 COMMENT


<nb> public class Viewport {
 COMMENT
 protected RectD mCurrentViewport = new RectD ( ) ;

 - protected long mMaxXAxisViewportSize = NUMBER0 ;
 + protected double mMaxXAxisViewportSize = NUMBER0 ;

 COMMENT
 COMMENT
 <nb> public class Viewport {
 COMMENT
 COMMENT
 COMMENT
 - public void setMaxXAxisViewportSize ( long mMaxXAxisViewportSize ) {
 + public void setMaxXAxisViewportSize ( double mMaxXAxisViewportSize ) {
 this . mMaxXAxisViewportSize = mMaxXAxisViewportSize ;
 }
 }

Changed mMaxXAxisViewportSize from long to double


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

 if ( from <= V2_14_4 )
 - newVersionString ( changeLog , STRING0 , new String [ ] {
 + newVersionString ( changeLog , STRING1 , new String [ ] {
 STRING2 +
 STRING3 +
 STRING4 +
 <nb> public final class UpgradeService {
 STRING5 ,
 } ) ;
 if ( from >= V3_0_0 && from < V3_3_0 )
 - newVersionString ( changeLog , STRING6 , new String [ ] {
 - STRING7 ,
 + newVersionString ( changeLog , STRING1 , new String [ ] {
 + STRING8 ,
 + STRING9 ,
 + STRING10 ,
 + STRING11 ,
 + STRING12 ,
 } ) ;
 if ( from >= V3_0_0 && from < V3_2_0 )
 newVersionString ( changeLog , STRING13 , new String [ ] {


<nb> public enum DyeColor {
 COMMENT
 public static DyeColor getByWoolData ( final byte data ) {
 int i = NUMBER0 & data ;
 - if ( i > BY_WOOL_DATA . length ) {
 + if ( i >= BY_WOOL_DATA . length ) {
 return null ;
 }
 return BY_WOOL_DATA [ i ] ;
 <nb> public enum DyeColor {
 COMMENT
 public static DyeColor getByDyeData ( final byte data ) {
 int i = NUMBER0 & data ;
 - if ( i > BY_DYE_DATA . length ) {
 + if ( i >= BY_DYE_DATA . length ) {
 return null ;
 }
 return BY_DYE_DATA [ i ] ;


<nb> public class TestStringFunctions
 }

 @ test
 + public void testVarcharToVarcharX ( )
 + {
 + assertFunction ( STRING0 , createVarcharType ( Integer . MAX_VALUE ) , STRING1 ) ;
 + }
 +
 + @ test
 public void testLower ( )
 {
 assertFunction ( STRING2 , createVarcharType ( NUMBER0 ) , STRING3 ) ;

Add test for calling varchar x function with varchar


<nb> public class RecentsConfiguration {
 SINGLE
 SINGLE
 boolean isLandscape = windowRect . width ( ) > windowRect . height ( ) ;
 - hasTransposedNavBar = isLandscape && isLargeScreen && ! isXLargeScreen ;
 - hasTransposedSearchBar = isLandscape && isLargeScreen && ! isXLargeScreen ;
 + hasTransposedNavBar = isLandscape && ! isXLargeScreen ;
 + hasTransposedSearchBar = isLandscape && ! isXLargeScreen ;
 }

 COMMENT
 <nb> class FilteredTaskList {

 COMMENT
 int indexOf ( Task t ) {
 - if ( mTaskIndices . containsKey ( t . key ) ) {
 + if ( t != null && mTaskIndices . containsKey ( t . key ) ) {
 return mTaskIndices . get ( t . key ) ;
 }
 return - NUMBER0 ;

Fixing landscape transition into Recents


<nb> public class ViewPager extends ViewGroup {
 setCurrentItemInternal ( item , true , false ) ;
 }

 + public int getCurrentItem ( ) {
 + return mCurItem ;
 + }
 +
 void setCurrentItemInternal ( int item , boolean smoothScroll , boolean always ) {
 if ( mAdapter == null || mAdapter . getCount ( ) <= NUMBER0 ) {
 setScrollingCacheEnabled ( false ) ;


<nb> public class OpenSSLContext implements org . apache . tomcat . util . net . SSLContext {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 @ override
 public synchronized void init ( KeyManager [ ] kms , TrustManager [ ] tms , SecureRandom sr ) {
 <nb> import NAMESPACE ;

 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public final class OpenSSLServerSessionContext extends OpenSSLSessionContext {
 OpenSSLServerSessionContext ( long context ) {


<nb> public class ThemeWebActivity extends WPWebViewActivity {
 public static final String THEME_NAME = STRING0 ;
 private static final String THEME_DOMAIN_PUBLIC = STRING1 ;
 private static final String THEME_DOMAIN_PREMIUM = STRING2 ;
 - private static final String THEME_URL_PREVIEW = STRING3 ;
 + private static final String THEME_URL_PREVIEW = STRING4 ;
 private static final String THEME_URL_SUPPORT = STRING5 ;
 private static final String THEME_URL_DETAILS = STRING6 ;
 private static final String THEME_URL_DEMO_PARAMETER = STRING7 ;


<nb> public class ScorePhrasesLearnFeatWt < E extends Pattern > extends PhraseScorer < E >

 public ScorePhrasesLearnFeatWt ( ConstantsAndVariables constvar ) {
 super ( constvar ) ;
 - if ( constvar . useWordVectorsToComputeSim && ( constvar . subsampleUnkAsNegUsingSim || constvar . expandPositivesWhenSampling ) && wordVectors == null ) {
 + if ( constvar . useWordVectorsToComputeSim && ( constvar . subsampleUnkAsNegUsingSim || constvar . expandPositivesWhenSampling || constvar . expandNegativesWhenSampling || constVars . usePhraseEvalWordVector ) && wordVectors == null ) {
 if ( Data . rawFreq == null ) {
 Data . rawFreq = new ClassicCounter < CandidatePhrase > ( ) ;
 Data . computeRawFreqIfNull ( PatternFactory . numWordsCompound , constvar . batchProcessSents ) ;


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

 import NAMESPACE ;
 <nb> public class LookupDimensionSpec implements DimensionSpec
 final LookupExtractor lookupExtractor = Strings . isNullOrEmpty ( name )
 ? this . lookup
 : Preconditions . checkNotNull (
 - this . lookupReferencesManager . get ( name ) . get ( ) ,
 - STRING0 ,
 + lookupReferencesManager . get ( name ) ,
 + STRING1 ,
 name
 - ) ;
 + ) . get ( ) ;
 +
 return new LookupExtractionFn (
 lookupExtractor ,
 retainMissingValue ,
 <nb> public class LookupDimensionSpec implements DimensionSpec
 lookupExtractor . isOneToOne ( ) ,
 optimize
 ) ;
 -
 }

 @ override

Improve NPE message in LookupDimensionSpec when lookup does not exist


<nb> public class AdbHelper {
 SINGLE
 if ( successCount > NUMBER0 ) {
 console . printSuccess (
 - String . format ( STRING0 , adbCallable , successCount ) ) ;
 + String . format ( STRING1 , adbCallable , successCount ) ) ;
 }
 if ( failureCount > NUMBER0 ) {
 console . printBuildFailure (


<nb> public class Activity extends ContextThemeWrapper
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public void setActionBar ( @ nullable Toolbar toolbar ) {
 final ActionBar ab = getActionBar ( ) ;
 <nb> public class Activity extends ContextThemeWrapper
 ab . onDestroy ( ) ;
 }

 - ToolbarActionBar tbab = new ToolbarActionBar ( toolbar , getTitle ( ) , this ) ;
 - mActionBar = tbab ;
 - mWindow . setCallback ( tbab . getWrappedWindowCallback ( ) ) ;
 - mActionBar . invalidateOptionsMenu ( ) ;
 + if ( toolbar != null ) {
 + final ToolbarActionBar tbab = new ToolbarActionBar ( toolbar , getTitle ( ) , this ) ;
 + mActionBar = tbab ;
 + mWindow . setCallback ( tbab . getWrappedWindowCallback ( ) ) ;
 + } else {
 + mActionBar = null ;
 + SINGLE
 + mWindow . setCallback ( this ) ;
 + }
 +
 + invalidateOptionsMenu ( ) ;
 }

 COMMENT


<nb> public class JmsMessage extends DefaultMessage {
 @ override
 public void copyFrom ( org . apache . camel . Message that ) {
 SINGLE
 - SINGLE
 + SINGLE
 getHeaders ( ) . clear ( ) ;

 boolean copyMessageId = true ;
 <nb> public class JmsRouteEndpointTest extends CamelTestSupport {

 template . sendBody ( jms , STRING0 ) ;

 + assertEndpointUri ( jms , STRING1 ) ;
 +
 result . assertIsSatisfied ( ) ;
 }


<nb> public abstract class HotwordRecognitionService extends Service {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public void onHotwordEvent ( int eventType , Bundle eventBundle ) throws RemoteException {
 <nb> public abstract class HotwordRecognitionService extends Service {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public void onHotwordRecognized ( Intent activityIntent ) throws RemoteException {
 mListener . onHotwordRecognized ( activityIntent ) ;
 <nb> public abstract class HotwordRecognitionService extends Service {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 public void onError ( int errorCode ) throws RemoteException {
 mListener . onHotwordError ( errorCode ) ;


<nb> public class RegionCommands {

 @ command (
 aliases = { STRING0 } ,
 - usage = STRING1 ,
 + usage = STRING2 ,
 desc = STRING3 ,
 min = NUMBER0 ,
 max = NUMBER1
 <nb> public class RegionCommands {

 @ command (
 aliases = { STRING4 } ,
 - usage = STRING5 ,
 + usage = STRING6 ,
 + flags = STRING7 ,
 desc = STRING8 ,
 min = NUMBER0 ,
 max = NUMBER2
 <nb> public class RegionCommands {
 args . argsLength ( ) > NUMBER3 ? args . getString ( NUMBER3 ) . toLowerCase ( ) : STRING9 ) ;

 int affected = editSession . stackCuboidRegion ( session . getRegion ( ) ,
 - dir , count , true ) ;
 + dir , count , ! args . hasFlag ( STRING10 ) ) ;
 player . print ( affected + STRING11 ) ;
 }
 }

Added support for stack a to not stack air


<nb> public final class AlluxioWorker {
 COMMENT
 COMMENT
 public String getDataBindHost ( ) {
 - return mBlockWorker . getDataBindHost ( ) ;
 + return mDataServer . getBindHost ( ) ;
 }

 COMMENT
 COMMENT
 COMMENT
 public int getDataLocalPort ( ) {
 - return mBlockWorker . getDataLocalPort ( ) ;
 + return mDataServer . getPort ( ) ;
 }

 COMMENT
 <nb> public final class BlockWorker extends AbstractWorker {
 }

 COMMENT
 - COMMENT
 - COMMENT
 - public String getDataBindHost ( ) {
 - return mDataServer . getBindHost ( ) ;
 - }
 -
 - COMMENT
 - COMMENT
 - COMMENT
 - public int getDataLocalPort ( ) {
 - return mDataServer . getPort ( ) ;
 - }
 -
 - COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class Presence extends Packet {
 return buf . toString ( ) ;
 }

 + public String toString ( ) {
 + StringBuffer buf = new StringBuffer ( ) ;
 + buf . append ( type ) ;
 + if ( mode != null ) {
 + buf . append ( STRING0 ) . append ( mode ) ;
 + }
 + if ( status != null ) {
 + buf . append ( STRING1 ) . append ( status ) . append ( STRING2 ) ;
 + }
 + return buf . toString ( ) ;
 + }
 +
 COMMENT
 COMMENT
 COMMENT


<nb> public class Requirements {
 String ourVersion = Util . getSelfVersionName ( context ) ;
 StringBuilder sb = new StringBuilder ( text ) ;
 sb . insert ( NUMBER0 , STRING0 ) ;
 + sb . insert ( NUMBER0 , String . format ( STRING1 , Build . DISPLAY ) ) ;
 + sb . insert ( NUMBER0 , String . format ( STRING2 , Build . HOST ) ) ;
 sb . insert ( NUMBER0 , String . format ( STRING3 , Build . MODEL , Build . PRODUCT ) ) ;
 sb . insert ( NUMBER0 , String . format ( STRING4 , Build . VERSION . RELEASE ,
 Build . VERSION . SDK_INT ) ) ;

Add build host and display to support info


<nb> public final class DriverProcessor implements DeploymentUnitProcessor {
 DriverService driverService = new DriverService ( driverMetadata , driver ) ;
 phaseContext
 . getServiceTarget ( )
 - . addService ( ServiceName . JBOSS . append ( STRING0 , driverName . replaceAll ( STRING1 , STRING2 ) ) , driverService )
 + . addService ( ServiceName . JBOSS . append ( STRING0 , driverName . replaceAll ( STRING3 , STRING2 ) ) , driverService )
 . addDependency ( ConnectorServices . JDBC_DRIVER_REGISTRY_SERVICE , DriverRegistry . class ,
 driverService . getDriverRegistryServiceInjector ( ) ) . setInitialMode ( Mode . ACTIVE ) . install ( ) ;


<nb> public class NotationParserBuilder < T > {
 }
 composites . addAll ( this . notationParsers ) ;

 - return new NotationConverterToNotationParserAdapter < Object , T > ( new CompositeNotationConverter < Object , T > ( composites ) ) ;
 + return new NotationConverterToNotationParserAdapter < Object , T > ( composites . size ( ) == NUMBER0 ? composites . get ( NUMBER1 ) : new CompositeNotationConverter < Object , T > ( composites ) ) ;
 }
 }

Don t wrap notation converters in a composite when there is only one converter


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

 import NAMESPACE ;
 - import NAMESPACE ;

 COMMENT
 COMMENT
 COMMENT
 public class ExampleSimpleWriteReadMain {
 public static void main ( String . . . args ) throws IOException {
 - final int runs = NUMBER0 * NUMBER1 ;
 + final long runs = NUMBER2 * NUMBER3 ;
 + final int batchSize = NUMBER4 ;
 + System . out . printf ( STRING0 , runs , batchSize ) ;
 long start = System . nanoTime ( ) ;
 final String basePath = System . getProperty ( STRING1 ) + STRING2 ;
 ChronicleTools . deleteOnExit ( basePath ) ;


<nb> public final class RIL extends BaseCommands implements CommandsInterface {
 case RIL_REQUEST_GET_SMSC_ADDRESS : ret = responseString ( p ) ; break ;
 case RIL_REQUEST_SET_SMSC_ADDRESS : ret = responseVoid ( p ) ; break ;
 case RIL_REQUEST_EXIT_EMERGENCY_CALLBACK_MODE : ret = responseVoid ( p ) ; break ;
 + case RIL_REQUEST_REPORT_SMS_MEMORY_STATUS : ret = responseVoid ( p ) ; break ;
 default :
 throw new RuntimeException ( STRING0 + rr . mRequest ) ;
 SINGLE

Process the response of RIL_REQUEST_REPORT_SMS_MEMORY_STATUS


<nb> public class DoWhileLoop
 @ override
 public void accept ( MethodVisitor visitor , MethodGenerationContext generationContext )
 {
 - checkState ( condition . isEmpty ( ) , STRING0 ) ;
 + checkState ( ! condition . isEmpty ( ) , STRING0 ) ;

 Block block = new Block ( )
 . visitLabel ( beginLabel )
 <nb> public class WhileLoop
 @ override
 public void accept ( MethodVisitor visitor , MethodGenerationContext generationContext )
 {
 - checkState ( condition . isEmpty ( ) , STRING1 ) ;
 + checkState ( ! condition . isEmpty ( ) , STRING1 ) ;

 Block block = new Block ( )
 . visitLabel ( continueLabel )

Fix compilation of While and DoWhile loops


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

 import NAMESPACE ;


<nb> public class DefaultConnection implements ConnectionVersion4 {
 File gradleUserHomeDir = GUtil . elvis ( operationParameters . getGradleUserHomeDir ( ) , StartParameter . DEFAULT_GRADLE_USER_HOME ) ;

 DaemonParameters parameters = new DaemonParameters ( ) ;
 - parameters . configureFromBuildDir ( operationParameters . getProjectDir ( ) , operationParameters . isSearchUpwards ( ) ) ;
 + boolean searchUpwards = operationParameters . isSearchUpwards ( ) != null ? operationParameters . isSearchUpwards ( ) : true ;
 + parameters . configureFromBuildDir ( operationParameters . getProjectDir ( ) , searchUpwards ) ;
 parameters . configureFromGradleUserHome ( gradleUserHomeDir ) ;
 parameters . configureFromSystemProperties ( System . getProperties ( ) ) ;
 if ( operationParameters . getDaemonMaxIdleTimeValue ( ) != null && operationParameters . getDaemonMaxIdleTimeUnits ( ) != null ) {

Fixed NPE when search upwards is not specified


<nb> public class OsmandMapTileView implements IMapDownloaderCallback {
 final LatLon r = calc . getLatLonFromPixel ( cp . x + dx , cp . y + dy ) ;
 setLatLon ( r . getLatitude ( ) , r . getLongitude ( ) ) ;
 int baseZoom = initialViewport . getZoom ( ) ;
 - LOG . debug ( STRING0 + baseZoom ) ;
 while ( initialViewport . getZoomFloatPart ( ) + dz > NUMBER0 ) {
 dz -- ;
 if ( baseZoom < mainLayer . getMaximumShownMapZoom ( ) ) {
 <nb> public class OsmandMapTileView implements IMapDownloaderCallback {
 baseZoom -- ;
 }
 }
 - LOG . debug ( STRING0 + baseZoom ) ;
 zoomToAnimate ( baseZoom , dz , true ) ;
 rotateToAnimate ( calcRotate ) ;
 }


<nb> public class RedisDispatcher implements Recorder {
 this . host = host ;
 this . port = port ;

 - jedis = new Jedis ( host , port ) ;
 + SINGLE
 SINGLE
 SINGLE
 }

 @ override
 public void record ( String session , RecordEvent message ) {
 - SINGLE
 + Jedis jedis = new Jedis ( host , port ) ;
 Long msgid = jedis . incr ( STRING0 ) ;
 jedis . hmset ( STRING1 + COLON + session + COLON + msgid , message . toMap ( ) ) ;
 jedis . rpush ( STRING2 + COLON + session + COLON + STRING3 , msgid . toString ( ) ) ;

can t get redis pool working connect each time for now


<nb> import NAMESPACE ;
 public interface DateTimeField {

 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> package NAMESPACE ;
 public interface DurationField extends Comparable {

 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class PackageParser {
 }
 }

 + addSharedLibrariesForBackwardCompatibility ( owner ) ;
 +
 return true ;
 }

 + private static void addSharedLibrariesForBackwardCompatibility ( Package owner ) {
 + if ( owner . applicationInfo . targetSdkVersion <= Build . VERSION_CODES . LOLLIPOP_MR1 ) {
 + owner . usesLibraries = ArrayUtils . add ( owner . usesLibraries , STRING0 ) ;
 + }
 + }
 +
 COMMENT
 COMMENT
 COMMENT

Conditionally include org apache http legacy in app classpaths


<nb> public class DirDiffSettings {
 public boolean showNewOnTarget = true ;
 public boolean showCompareModes = true ;
 public CompareMode compareMode = CompareMode . CONTENT ;
 + public double compareTimestampAccuracy = NUMBER0 ;

 public boolean showInFrame = true ; SINGLE

 <nb> public class DTree {
 dtype = isEqual ( src , trg ) ? DType . EQUAL : DType . CHANGED ;
 break ;
 case TIMESTAMP :
 - dtype = src . getTimeStamp ( ) == trg . getTimeStamp ( ) ? DType . EQUAL : DType . CHANGED ;
 + dtype = Math . abs ( src . getTimeStamp ( ) - trg . getTimeStamp ( ) ) <= settings . compareTimestampAccuracy ? DType . EQUAL : DType . CHANGED ;
 break ;
 }
 }

Compare by Timestamp reports files uploaded from project to server as different


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 -
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public class CamelContextConfig {
 - private final List < Bean < ? > > routeBuilderBeans = new ArrayList < Bean < ? > > ( ) ;
 - private final List < ProcessAnnotatedType < ? > > patRouteBuilders = new ArrayList < ProcessAnnotatedType < ? > > ( ) ;
 + SINGLE
 + private final Set < Bean < ? > > routeBuilderBeans = new LinkedHashSet < Bean < ? > > ( ) ;
 + private final Set < ProcessAnnotatedType < ? > > patRouteBuilders = new LinkedHashSet < ProcessAnnotatedType < ? > > ( ) ;

 public void addRouteBuilderBean ( Bean < ? > bean ) {
 routeBuilderBeans . add ( bean ) ;

Fixed camel cdi adding duplicate RouteBuilder in internal list of discovered RouteBuilders


<nb> import NAMESPACE ;

 import NAMESPACE ;

 - public class TestConvertingSerializer357
 + public class ConvertingSerializer357Test
 extends com . fasterxml . jackson . databind . BaseMapTest
 {
 SINGLE

fix a problem introduced by IDE via refactoring


<nb> public class CarrierConfigManager {
 COMMENT
 public static final String KEY_CARRIER_METERED_APN_TYPES_STRINGS =
 STRING0 ;
 -
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static final String KEY_CARRIER_METERED_ROAMING_APN_TYPES_STRINGS =
 + STRING1 ;
 COMMENT
 COMMENT
 COMMENT
 <nb> public class CarrierConfigManager {
 sDefaults . putInt ( KEY_DURATION_BLOCKING_DISABLED_AFTER_EMERGENCY_INT , NUMBER0 ) ;
 sDefaults . putStringArray ( KEY_CARRIER_METERED_APN_TYPES_STRINGS ,
 new String [ ] { STRING2 , STRING3 , STRING4 , STRING5 } ) ;
 + sDefaults . putStringArray ( KEY_CARRIER_METERED_ROAMING_APN_TYPES_STRINGS ,
 + new String [ ] { STRING2 , STRING3 , STRING4 , STRING5 } ) ;

 sDefaults . putStringArray ( KEY_GSM_ROAMING_NETWORKS_STRING_ARRAY , null ) ;
 sDefaults . putStringArray ( KEY_GSM_NONROAMING_NETWORKS_STRING_ARRAY , null ) ;


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


<nb>
 package NAMESPACE ;

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


<nb> public class PVector implements Serializable {

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 static public PVector div ( PVector v1 , PVector v2 ) {

fixing up some reference things in PVector


<nb> public class WikiTests extends BaseTests {
 public WikiTests ( ) {
 addTestSuite ( AddPageTest . class ) ;
 addTestSuite ( AddPortletTest . class ) ;
 - addTestSuite ( AddArticleTest . class ) ;
 - addTestSuite ( AddCommentTest . class ) ;
 - addTestSuite ( SearchTest . class ) ;
 + SINGLE
 + SINGLE
 + SINGLE
 }

 }

Commented out certain tests until stable version


<nb> public class XMLRPCUtils {

 private static String verifyXmlrpcUrl ( final String siteUrl , final String httpUsername , final String httpPassword )
 throws XMLRPCUtilsException {
 - final String sanitizedSiteUrl = XMLRPCUtils . sanitizeSiteUrl ( siteUrl , true ) ;
 + final String sanitizedSiteUrlHttps = XMLRPCUtils . sanitizeSiteUrl ( siteUrl , true ) ;
 + final String sanitizedSiteUrlHttp = XMLRPCUtils . sanitizeSiteUrl ( siteUrl , false ) ;

 SINGLE
 final Set < String > urlsToTry = new LinkedHashSet < > ( ) ;

 - SINGLE
 - urlsToTry . add ( XMLRPCUtils . appendXMLRPCPath ( sanitizedSiteUrl ) ) ;
 + SINGLE
 + urlsToTry . add ( XMLRPCUtils . appendXMLRPCPath ( sanitizedSiteUrlHttps ) ) ;
 + urlsToTry . add ( XMLRPCUtils . appendXMLRPCPath ( sanitizedSiteUrlHttp ) ) ;

 - SINGLE
 - urlsToTry . add ( sanitizedSiteUrl ) ;
 + SINGLE
 + urlsToTry . add ( sanitizedSiteUrlHttps ) ;
 + urlsToTry . add ( sanitizedSiteUrlHttp ) ;

 SINGLE
 urlsToTry . add ( siteUrl ) ;


<nb> public final class Futures {
 if ( super . cancel ( mayInterruptIfRunning ) ) {
 ListenableFuture < ? extends I > localInputFuture = inputFuture ;
 if ( localInputFuture != null ) {
 - inputFuture . cancel ( mayInterruptIfRunning ) ;
 + localInputFuture . cancel ( mayInterruptIfRunning ) ;
 }
 return true ;
 }

fix potential npe in ChainingListenableFuture cancel


<nb> public class DiscreteSeekBar extends View {
 }

 if ( mValue != value ) {
 - notifyProgress ( value , fromUser ) ;
 mValue = value ;
 + notifyProgress ( value , fromUser ) ;
 updateProgressMessage ( value ) ;
 updateThumbPosFromCurrentProgress ( ) ;
 }

Don t notify listeners before updating our internal value


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

 <nb> public class AppPoller {
 SINGLE
 private static final String [ ] IGNORE_ACTIVITIES = { STRING0 ,
 STRING1 ,
 - BuildConfig . PACKAGE_NAME + STRING2 + HideAllBubblesActivity . class . getName ( ) } ;
 + BuildConfig . PACKAGE_NAME + STRING2 + HideAllBubblesActivity . class . getName ( ) ,
 + BuildConfig . PACKAGE_NAME + STRING2 + EntryActivity . class . getName ( ) } ;
 private boolean shouldIgnoreActivity ( String flatComponentName ) {
 for ( String string : IGNORE_ACTIVITIES ) {
 if ( string . equals ( flatComponentName ) ) {


<nb> public class ManagedServlet implements Lifecycle {

 @ override
 public void release ( ) {
 - instance . destroy ( ) ;
 +
 }
 } ;
 }


<nb> public class SystemUtils {

 public void setWiFiData ( Boolean turnedOn ) {
 WifiManager wifiManager = ( WifiManager ) instrumentation . getTargetContext ( ) . getSystemService ( Context . WIFI_SERVICE ) ;
 - wifiManager . setWifiEnabled ( turnedOn ) ;
 -
 + try {
 + wifiManager . setWifiEnabled ( turnedOn ) ;
 + } catch ( Exception e ) {
 + e . printStackTrace ( ) ;
 + }
 }
 -
 -
 -
 }


<nb> public class DynamicServerListLoadBalancer < T extends Server > extends
 }

 @ visiblefortesting
 - void updateListOfServers ( ) {
 + public void updateListOfServers ( ) {
 List < T > servers = new ArrayList < T > ( ) ;
 if ( serverListImpl != null ) {
 servers = serverListImpl . getUpdatedListOfServers ( ) ;

Make DynamicServerListLoadBalancer updateListOfServers public to provide alternative way to update servers at runtime instead of relying on scheduler


<nb> public abstract class StringLogger
 {
 public static final String DEFAULT_NAME = STRING0 ;
 public static final StringLogger SYSTEM =
 - new ActualStringLogger ( new PrintWriter ( System . out ) )
 + new ActualStringLogger ( new PrintWriter ( System . out , true ) )
 {
 @ override
 public void close ( )

StringLogger SYSTEM has automatic line flushing just like the file based StringLogger has


<nb> public final class CharSeq implements Kind1 < CharSeq , Character > , CharSequence , I

 @ override
 public IndexedSeq < Character > scan ( Character zero , BiFunction < ? super Character , ? super Character , ? extends Character > operation ) {
 - return scanLeft ( zero , operation ) ;
 + return Collections . scanLeft ( this , zero , operation , Iterator : : toCharSeq ) ;
 }

 @ override
 <nb> public final class PriorityQueue < T > extends AbstractsQueue < T , PriorityQueue < T > >
 @ override
 public < U > PriorityQueue < U > scanLeft ( U zero , BiFunction < ? super U , ? super T , ? extends U > operation ) {
 Objects . requireNonNull ( operation , STRING0 ) ;
 -
 return Collections . scanLeft ( this , zero , operation , it - > ofAll ( naturalComparator ( ) , it ) ) ;
 }

refactored CharSeq scan to return CharSeq


<nb> public class CacheManagingDrawTask extends DrawTask {
 case CLEAR_ALL_CACHES :
 evictAll ( ) ;
 reset ( ) ;
 - mCacheTimer . update ( mTimer . currMillisecond ) ;
 mSeekedFlag = true ;
 clearFlag = NUMBER0 ;
 break ;


<nb> public class LaunchConfigBuilder {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class LaunchConfigBuilder {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public abstract class Groovy {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class MongoDbClient extends DB {
 System . err . println ( STRING0 + startkey ) ;
 return NUMBER0 ;
 }
 +
 + result . ensureCapacity ( recordcount ) ;
 +
 while ( cursor . hasNext ( ) ) {
 HashMap < String , ByteIterator > resultMap = new HashMap < String , ByteIterator > ( ) ;

Ensure capacity in results for MongoDBClient scan


<nb> public class ExcludeEjbSubsystemTestCase {
 return jar ;
 }

 - @ test ( expected = NameNotFoundException . class )
 + @ test
 public void testEjbNotInstalled ( ) throws NamingException {
 - Object result = initialContext . lookup ( STRING0 + SimpleEjb . class . getSimpleName ( ) ) ;
 - Assert . fail ( STRING1 + result + STRING2 ) ;
 + try {
 + Object result = initialContext . lookup ( STRING0 + SimpleEjb . class . getSimpleName ( ) ) ;
 + Assert . fail ( STRING1 + result + STRING2 ) ;
 + } catch ( NameNotFoundException expected ) { }
 }


<nb> public class TextToSpeech {
 mCachedParams [ Engine . TTS_PARAM_POSITION_LANGUAGE + NUMBER0 ] = loc . getISO3Language ( ) ;
 mCachedParams [ Engine . TTS_PARAM_POSITION_COUNTRY + NUMBER0 ] = loc . getISO3Country ( ) ;
 mCachedParams [ Engine . TTS_PARAM_POSITION_VARIANT + NUMBER0 ] = loc . getVariant ( ) ;
 - SINGLE
 - SINGLE
 - SINGLE
 - result = mITts . isLanguageAvailable (
 +
 + result = mITts . setLanguage ( mPackageName ,
 mCachedParams [ Engine . TTS_PARAM_POSITION_LANGUAGE + NUMBER0 ] ,
 mCachedParams [ Engine . TTS_PARAM_POSITION_COUNTRY + NUMBER0 ] ,
 mCachedParams [ Engine . TTS_PARAM_POSITION_VARIANT + NUMBER0 ] ) ;

Revert the setLanguage call to its previous implementation as


<nb> public class NetworkPublication implements RetransmitSender , AutoCloseable
 private final int mtuLength ;
 private final int termWindowLength ;

 - private long timeOfLastSendOrHeartbeat ;
 private long timeOfFlush = NUMBER0 ;
 + private long timeOfLastSendOrHeartbeat ;
 + private long senderPositionLimit ;
 private int statusMessagesReceivedCount = NUMBER0 ;
 - private int refCount = NUMBER0 ;

 - private volatile long senderPositionLimit ;
 + private int refCount = NUMBER0 ;
 private boolean trackSenderLimits = true ;
 + private boolean shouldSendSetupFrame = true ;
 private volatile boolean isActive = true ;
 - private volatile boolean shouldSendSetupFrame = true ;

 public NetworkPublication (
 final SendChannelEndpoint channelEndpoint ,

Remove volatile from NetworkPublication fields that are now only referenced by the Sender


<nb> public abstract class TregexPattern implements Serializable {
 return patternString ;
 }

 - public void setPatternString ( String patternString ) {
 + COMMENT
 + void setPatternString ( String patternString ) {
 this . patternString = patternString ;
 }


<nb> package NAMESPACE ;

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

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class DescriptorBasedEJBClientContextService implements Service < EJBClient
 SINGLE
 this . clientContext . unregisterReconnectHandler ( this ) ;
 SINGLE
 - this . clientContext . registerConnection ( connection ) ;
 + final EJBReceiver receiver = new RemotingConnectionEJBReceiver ( connection , this , OptionMap . EMPTY ) ;
 + this . clientContext . registerEJBReceiver ( receiver ) ;
 } catch ( Exception e ) {
 logger . debug ( STRING0 + this . reconnectAttemptCount + STRING1 + this . outboundConnectionServiceName , e ) ;
 }

Minor fix use the correct constructor now that jboss ejb client is upgraded


<nb> public class LinkedInApi extends DefaultApi10a

 public LinkedInApi ( )
 {
 - scopes = Collections . EMPTY_SET ;
 + scopes = Collections . emptySet ( ) ;
 }

 public LinkedInApi ( Set < String > scopes )


<nb> public abstract class AbstractDetailsDescriptionPresenter extends Presenter {
 public final void onBindViewHolder ( Presenter . ViewHolder viewHolder , Object item ) {
 ViewHolder vh = ( ViewHolder ) viewHolder ;
 DetailsOverviewRow row = ( DetailsOverviewRow ) item ;
 - onBindDescription ( vh , row ) ;
 + onBindDescription ( vh , row . getItem ( ) ) ;
 }

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 - protected abstract void onBindDescription ( ViewHolder vh , DetailsOverviewRow row ) ;
 + protected abstract void onBindDescription ( ViewHolder vh , Object item ) ;

 public void onUnbindViewHolder ( Presenter . ViewHolder viewHolder ) { }
 }

Pass the details overview row item to the presenter


<nb> public class Activity extends ContextThemeWrapper
 COMMENT
 public boolean onMenuOpened ( int featureId , Menu menu ) {
 if ( featureId == Window . FEATURE_ACTION_BAR ) {
 + initActionBar ( ) ;
 if ( mActionBar != null ) {
 mActionBar . dispatchMenuVisibilityChanged ( true ) ;
 } else {

Fix a bug where the lazy initialized ActionBar object was being too lazy


<nb> public class ReceiveChannelEndpoint implements AutoCloseable
 private final StatusMessageFlyweight smHeader = new StatusMessageFlyweight ( ) ;
 private final NakFlyweight nakHeader = new NakFlyweight ( ) ;

 - private final DataFrameHandler onDataFrameFunc ;
 - private final SetupFrameHandler onSetupFrameFunc ;
 -
 private volatile boolean closed = false ;

 public ReceiveChannelEndpoint (
 <nb> public class ReceiveChannelEndpoint implements AutoCloseable
 {
 smHeader . wrap ( smBuffer , NUMBER0 ) ;
 nakHeader . wrap ( nakBuffer , NUMBER0 ) ;
 - onDataFrameFunc = this : : onDataFrame ;
 - onSetupFrameFunc = this : : onSetupFrame ;

 this . logger = logger ;
 - this . transport = new ReceiverUdpChannelTransport ( udpChannel , onDataFrameFunc , onSetupFrameFunc , logger , lossGenerator ) ;
 this . dispatcher = new DataFrameDispatcher ( conductorProxy , this ) ;
 + this . transport = new ReceiverUdpChannelTransport (
 + udpChannel , dispatcher : : onDataFrame , dispatcher : : onSetupFrame , logger , lossGenerator ) ;
 }

 public UdpChannelTransport transport ( )

Java Remove a level of indirection on dispatch


<nb> public abstract class Layout {

 mText = text ;
 mPaint = paint ;
 - mWorkPaint = new TextPaint ( ) ;
 mWidth = width ;
 mAlignment = align ;
 mSpacingMult = spacingMult ;
 <nb> public abstract class Layout {

 private CharSequence mText ;
 private TextPaint mPaint ;
 - COMMENT
 private int mWidth ;
 private Alignment mAlignment = Alignment . ALIGN_NORMAL ;
 private float mSpacingMult ;


<nb> public abstract class AbstractInstanceRegistry implements InstanceRegistry {
 COMMENT
 COMMENT
 COMMENT
 + @ override
 public List < Pair < Long , String > > getLastNCanceledInstances ( ) {
 List < Pair < Long , String > > list = new ArrayList < Pair < Long , String > > ( ) ;
 synchronized ( recentCanceledQueue ) {
 <nb> public interface InstanceRegistry extends LeaseManager < InstanceInfo > , LookupServ

 List < Pair < Long , String > > getLastNRegisteredInstances ( ) ;

 + List < Pair < Long , String > > getLastNCanceledInstances ( ) ;
 +
 COMMENT
 COMMENT
 COMMENT

Adding additional api methods required by resources


<nb> public class Deserializer {
 switch ( field . type ) {
 case STRING0 :
 return in . readString ( ) ;
 -
 +
 + case STRING1 :
 + case STRING2 :
 + case STRING3 :
 + case STRING4 :
 + return readArray ( field . get ( NUMBER0 ) ) ;
 +
 case STRING5 :
 case STRING6 :
 return readArray ( field ) ;

Reading collections now by reading just the array field in them


<nb> import NAMESPACE ;

 import NAMESPACE ;

 -
 public abstract class AbstractAtomicReferenceOperation extends Operation
 implements PartitionAwareOperation , IdentifiedDataSerializable {

Fixed added whitespace in AbstractAtomicReferenceOperation


<nb> public final class BluetoothInputDevice implements BluetoothProfile {
 public static final String ACTION_PROTOCOL_MODE_CHANGED =
 STRING0 ;

 + COMMENT
 + COMMENT
 + COMMENT
 + @ sdkconstant ( SdkConstantType . BROADCAST_INTENT_ACTION )
 + public static final String ACTION_REPORT =
 + STRING1 ;

 COMMENT
 COMMENT


<nb> public abstract class AbstractNioByteChannel extends AbstractNioChannel {
 byteBuf = allocHandle . allocate ( allocator ) ;
 int localReadAmount = doReadBytes ( byteBuf ) ;
 if ( localReadAmount <= NUMBER0 ) {
 + SINGLE
 + byteBuf . release ( ) ;
 close = localReadAmount < NUMBER0 ;
 break ;
 }

Fix regression which lead to leak buffers when nothing could be read from the Channel


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

 - import NAMESPACE ;
 -
 import NAMESPACE ;

 @ entity
 <nb> import NAMESPACE ;
 public class Feed extends AbstractModel {

 @ column ( length = NUMBER0 , nullable = false , unique = true )
 - @ index ( name = STRING0 )
 private String url ;

 @ transient
 <nb> import NAMESPACE ;
 public class FeedEntry extends AbstractModel {

 @ column ( length = NUMBER0 , nullable = false , unique = true )
 - @ index ( name = STRING1 )
 private String guid ;

 @ manytoone
 <nb> public class SubscriptionsREST extends AbstractREST {
 @ get
 @ path ( STRING2 )
 public Response deleteCategory ( @ queryparam ( STRING3 ) Long id ) {
 + feedCategoryService . deleteById ( id ) ;
 return Response . ok ( ) . build ( ) ;
 }


<nb> public class SourceFormatter {
 }

 if ( line . startsWith ( STRING0 ) ) {
 + if ( line . endsWith ( STRING1 ) ) {
 + _sourceFormatterHelper . printError (
 + fileName , STRING2 + fileName + STRING3 + lineCount ) ;
 + }
 +
 int pos = line . lastIndexOf ( StringPool . PERIOD ) ;

 if ( pos != - NUMBER0 ) {


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

 public class ComponentCaller extends JComponent {
 <nb> public class ComponentCaller extends JComponent {

 private void buildUI ( ) {
 setLayout ( new BorderLayout ( ) ) ;
 - add ( ScrollPaneFactory . createScrollPane ( ( Component ) component1 ) ) ;
 + add ( new JScrollPane ( component1 ) ) ;
 }

 public void doSomething ( ) {
 <nb>
 - import NAMESPACE ;
 -
 - import NAMESPACE ;
 import NAMESPACE ;

 public class ComponentCaller extends JComponent {
 <nb> public class ComponentCaller extends JComponent {

 private void buildUI ( ) {
 setLayout ( new BorderLayout ( ) ) ;
 - add ( ScrollPaneFactory . createScrollPane ( ( Component ) component1 ) ) ;
 + add ( new JScrollPane ( component1 ) ) ;
 }

 public void doSomething ( ) {

Fix testdata accidentially modified during scrollpane refactoring


<nb> class JDBCHistoryCache implements HistoryCache {
 for ( ListIterator < HistoryEntry > it =
 entries . listIterator ( entries . size ( ) ) ;
 it . hasPrevious ( ) ; ) {
 + HistoryEntry entry = it . previous ( ) ;
 retry:
 for ( int i = NUMBER0 ; ; i ++ ) {
 try {
 - HistoryEntry entry = it . previous ( ) ;
 addChangeset . setString ( NUMBER1 , entry . getRevision ( ) ) ;
 addChangeset . setInt ( NUMBER2 , authors . get ( entry . getAuthor ( ) ) ) ;
 addChangeset . setTimestamp ( NUMBER3 ,

Fixed NoSuchElementException after timeout in JDBCHistoryCache


<nb> public class TachyonFileIntegrationTest {
 COMMENT
 COMMENT
 COMMENT
 + SINGLE
 + COMMENT
 @ test
 public void isInMemoryTest2 ( ) throws IOException {
 for ( int k = NUMBER0 ; k < MAX_FILES ; k ++ ) {
 <nb> public class TachyonFileIntegrationTest {
 Assert . assertTrue ( file . isInMemory ( ) ) ;
 }
 }
 + COMMENT

 COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 + SINGLE
 + COMMENT
 @ test
 public void isInMemoryTest3 ( ) throws IOException {
 TachyonURI pin = new TachyonURI ( STRING0 ) ;
 <nb> public class TachyonFileIntegrationTest {
 Assert . assertTrue ( file . isInMemory ( ) ) ;
 }
 }
 -
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class HttpSnoopClient {
 Channel ch = b . connect ( host , port ) . sync ( ) . channel ( ) ;

 SINGLE
 - HttpRequest request = new DefaultHttpRequest (
 + HttpRequest request = new DefaultFullHttpRequest (
 HttpVersion . HTTP_1_1 , HttpMethod . GET , uri . getRawPath ( ) ) ;
 request . headers ( ) . set ( HttpHeaders . Names . HOST , host ) ;
 request . headers ( ) . set ( HttpHeaders . Names . CONNECTION , HttpHeaders . Values . CLOSE ) ;

Tweak snoop example to send a full HTTP request


<nb> public class CodeItem {
 } else if ( instruction instanceof OffsetInstruction ) {
 int offset = ( ( OffsetInstruction ) instruction ) . getCodeOffset ( ) ;
 String sign = offset >= NUMBER0 ? STRING0 : STRING1 ;
 - args . add ( String . format ( STRING2 , sign , offset ) ) ;
 + args . add ( String . format ( STRING2 , sign , Math . abs ( offset ) ) ) ;
 } else if ( instruction instanceof NarrowLiteralInstruction ) {
 int value = ( ( NarrowLiteralInstruction ) instruction ) . getNarrowLiteral ( ) ;
 if ( NumberUtils . isLikelyFloat ( value ) ) {

Fix formatting issue with negative jump offsets in dump output


<nb> public class DefaultOSGIService implements OSGIService {
 }
 }

 - private void installAndStartBundles ( final Framework framework ) throws BundleException {
 + private void installAndStartBundles ( final Framework framework ) {
 try {
 final BundleContext context = framework . getBundleContext ( ) ;

 <nb> public class DefaultOSGIService implements OSGIService {
 SINGLE
 for ( final Bundle bundle : installedBundles ) {
 logger . info ( STRING0 , bundle . getLocation ( ) ) ;
 - bundle . start ( ) ;
 + try {
 + bundle . start ( ) ;
 + } catch ( BundleException e ) {
 + logger . warn ( STRING1 , e ) ;
 + }
 }
 } catch ( PluginConfigException e ) {
 logger . error ( STRING2 , e ) ;
 + } catch ( BundleException e ) {
 + logger . error ( STRING2 , e ) ;
 }
 }


<nb> public class TvView extends ViewGroup {
 if ( this != mSessionCallback ) {
 return ;
 }
 + mOverlayViewCreated = false ;
 + mOverlayViewFrame = null ;
 mSessionCallback = null ;
 mSession = null ;
 if ( mListener != null ) {

Recreate overlay view after the TIS crashes


<nb> public class SSTableLoader implements StreamEventHandler
 private final List < SSTableReader > sstables = new ArrayList < > ( ) ;
 private final Multimap < InetAddress , StreamSession . SSTableStreamingSections > streamingDetails = HashMultimap . create ( ) ;

 - static
 - {
 - }
 -
 public SSTableLoader ( File directory , Client client , OutputHandler outputHandler )
 {
 this ( directory , client , outputHandler , NUMBER0 ) ;


<nb> public abstract class HelpStrategy
 {
 String selectedItem = qname . name ;

 - if ( selectedItem . endsWith ( STRING0 ) )
 + if ( selectedItem . endsWith ( STRING1 ) )
 {
 assert StringUtil . isNullOrEmpty ( qname . pkgName )
 : STRING2 +
 qname . pkgName + STRING3 + qname . name ;
 - selectedItem = selectedItem . substring ( NUMBER0 , selectedItem . length ( ) - NUMBER1 ) ;
 + selectedItem = selectedItem . substring ( NUMBER0 , selectedItem . length ( ) - NUMBER2 ) ;

 parameter_ = selectedItem ;
 if ( helpInfo_ != null )

correctly match suffix for completion parameter help


<nb> public class EmulatorView extends View implements GestureDetector . OnGestureListe
 }
 return isHandled ;
 }
 -
 +
 + public boolean onKeyPreIme ( int keycode , KeyEvent event ) {
 + SINGLE
 + int preImeMetastate = event . getMetaState ( ) ;
 + if ( mAltSendsEsc && ( ( preImeMetastate & KeyEvent . META_ALT_ON ) != NUMBER0 ) ) {
 + if ( event . getAction ( ) == KeyEvent . ACTION_DOWN ) {
 + return onKeyDown ( keycode , event ) ;
 + } else {
 + return onKeyUp ( keycode , event ) ;
 + }
 + } else {
 + return false ;
 + }
 + }
 +
 COMMENT
 private boolean isInterceptedSystemKey ( int keyCode ) {
 return keyCode == KeyEvent . KEYCODE_BACK && mBackKeySendsCharacter ;


<nb> public class IdeaJdk extends SdkType implements ApplicationComponent {
 }

 private boolean addOrderEntries ( OrderRootType orderRootType , ProjectRootType projectRootType , Sdk sdk , SdkModificator toModificator ) {
 + boolean wasSmthAdded = false ;
 final String [ ] docs = sdk . getRootProvider ( ) . getUrls ( orderRootType ) ;
 for ( int i = NUMBER0 ; i < docs . length ; i ++ ) {
 VirtualFile virtualFile = VirtualFileManager . getInstance ( ) . findFileByUrl ( docs [ i ] ) ;
 toModificator . addRoot ( virtualFile , projectRootType ) ;
 - return true ;
 + wasSmthAdded = true ;
 }
 - return false ;
 + return wasSmthAdded ;
 }

 public AdditionalDataConfigurable createAdditionalDataConfigurable ( final SdkModel sdkModel , SdkModificator sdkModificator ) {


<nb> public class MapRenderingTypes {
 if ( t != null ) {
 if ( amenityNameToType . containsKey ( t ) ) {
 System . err . println ( STRING0 + t + STRING1 + amenityNameToType . get ( t ) + STRING2 + e . getKey ( ) ) ;
 - }
 - amenityNameToType . put ( t , e . getKey ( ) ) ;
 + } else {
 + amenityNameToType . put ( t , e . getKey ( ) ) ;
 + }
 +
 }
 }
 }

Keep order don t overwrite conflict in map rendering types


<nb> public class ElementCompletionTest extends HighlightingTestBase {
 }

 public void testElementCompletionRoot ( ) throws Throwable {
 - doTestCompletion ( STRING0 , STRING1 , STRING2 , STRING3 , STRING4 ) ;
 + doTestCompletion ( STRING0 , STRING5 , STRING6 , STRING1 , STRING2 , STRING3 , STRING7 , STRING4 ) ;
 }

 public void testElementCompletion1 ( ) throws Throwable {

now we complete all possible tags as roots


<nb> public class TagNameReference implements PsiReference {
 final XmlExtension extension = XmlExtension . getExtensionByElement ( element ) ;
 return extension == null ? null : extension . createTagNameReference ( nameElement , startTagFlag ) ;
 }
 +
 + public boolean isStartTagFlag ( ) {
 + return myStartTagFlag ;
 + }
 }

jsp tag name completion converted to completion contributor


<nb> public class AnnotationMethodHandlerAdapter extends WebContentGenerator implemen
 }
 }
 if ( targetHandlerMethods . size ( ) == NUMBER0 ) {
 - extractHandlerMethodUriTemplates ( targetPathMatches . values ( ) . iterator ( ) . next ( ) , lookupPath , request ) ;
 + if ( targetPathMatches . size ( ) == NUMBER0 ) {
 + extractHandlerMethodUriTemplates ( targetPathMatches . values ( ) . iterator ( ) . next ( ) , lookupPath , request ) ;
 + }
 return targetHandlerMethods . values ( ) . iterator ( ) . next ( ) ;
 }
 else if ( ! targetHandlerMethods . isEmpty ( ) ) {
 <nb> public class AnnotationMethodHandlerAdapter extends WebContentGenerator implemen
 }
 }
 }
 - extractHandlerMethodUriTemplates ( bestPathMatch , lookupPath , request ) ;
 + if ( bestPathMatch != null ) {
 + extractHandlerMethodUriTemplates ( bestPathMatch , lookupPath , request ) ;
 + }
 return targetHandlerMethods . get ( bestMappingMatch ) ;
 }
 else {

URI Templates support relative RequestMappings on class level with more specific mapping on method level


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

 - import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;

 COMMENT
 COMMENT


<nb> public class ResConfigFlags {
 public final static byte SDK_ICE_CREAM_SANDWICH_MR1 = NUMBER0 ;
 public final static byte SDK_JELLY_BEAN = NUMBER1 ;
 public final static byte SDK_JELLY_BEAN_MR1 = NUMBER2 ;
 + public final static byte SDK_JELLY_BEAN_MR2 = NUMBER3 ;
 + public final static byte KITKAT = NUMBER4 ;

 public final static byte ORIENTATION_ANY = NUMBER5 ;
 public final static byte ORIENTATION_PORT = NUMBER6 ;


<nb> public abstract class AbstractAndroidMojo extends AbstractMojo
 protected String device ;

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

Add javadoc to the brand new devices parameter


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class ClassUtils {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public abstract class ClassUtils {
 Method specificMethod = null ;
 if ( method != null && isOverridable ( method , targetClass ) &&
 targetClass != null && ! targetClass . equals ( method . getDeclaringClass ( ) ) ) {
 - specificMethod = ReflectionUtils . findMethod ( targetClass , method . getName ( ) , method . getParameterTypes ( ) ) ;
 + try {
 + specificMethod = ReflectionUtils . findMethod ( targetClass , method . getName ( ) , method . getParameterTypes ( ) ) ;
 + } catch ( AccessControlException ex ) {
 + SINGLE
 + SINGLE
 + }
 }
 return ( specificMethod != null ? specificMethod : method ) ;
 }

Consider security in ClassUtils getMostSpecificMethod


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

Change license header in two tomcat lite java source files


<nb> public abstract class AbstractOneDReader implements OneDReader {
 return totalVariance / ( float ) patternLength ;
 }

 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 +
 + public abstract Result decodeRow ( int rowNumber , BitArray row , Hashtable hints ) throws ReaderException ;
 +
 }

Added workaround for NoSuchMethodError on some Nokia JVMs with a superfluous abstract method thanks Marnix


<nb> public final class CdmaCallTracker extends CallTracker {
 SINGLE
 SINGLE
 conn . onLocalDisconnect ( ) ;
 - phone . notifyPreciseCallStateChanged ( ) ;
 updatePhoneState ( ) ;
 + phone . notifyPreciseCallStateChanged ( ) ;
 return ;
 } else {
 try {


<nb> public class FileInStream extends InputStream implements BoundedStream , Seekable
 return ;
 }

 - SINGLE
 byte [ ] buffer = new byte [ Math . min ( ( int ) mSeekBufferSizeBytes , ( int ) len ) ] ;
 do {
 SINGLE


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 - import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class HighlighterFactory {
 }

 public static LexerEditorHighlighter createJSPHighlighter ( EditorColorsScheme settings , Project project ) {
 - final LanguageLevel languageLevel = project != null ? PsiManager . getInstance ( project ) . getEffectiveLanguageLevel ( ) : LanguageLevel . HIGHEST ;
 - return createHighlighter ( new JspFileHighlighter ( languageLevel ) , settings ) ;
 - }
 -
 - public static LexerEditorHighlighter createJSPHighlighter ( EditorColorsScheme settings , LanguageLevel languageLevel ) {
 - return createHighlighter ( new JspFileHighlighter ( languageLevel ) , settings ) ;
 + return createHighlighter ( StdFileTypes . JSP . getHighlighter ( project ) , settings ) ;
 }

 public static LexerEditorHighlighter createCustomHighlighter ( SyntaxTable syntaxTable , EditorColorsScheme settings ) {

fixed NPEs due to usage of old highlighter for the jsp


<nb> import NAMESPACE ;
 COMMENT
 @ implements ( SQLiteOpenHelper . class )
 public class ShadowSQLiteOpenHelper {
 -
 @ realobject private SQLiteOpenHelper realHelper ;
 private static SQLiteDatabase database ;
 + private String name ;

 public void __constructor__ ( Context context , String name , CursorFactory factory , int version ) {
 + this . name = name ;
 if ( database != null ) {
 database . close ( ) ;
 }
 <nb> public class ShadowSQLiteOpenHelper {
 realHelper . onOpen ( database ) ;
 return database ;
 }
 +
 + @ implementation
 + public String getDatabaseName ( ) {
 + return name ;
 + }
 }

ShadowSQLiteOpenHelper remembers its name


<nb> public class AVLoadingIndicatorView extends View {

 public AVLoadingIndicatorView ( Context context , AttributeSet attrs ) {
 super ( context , attrs ) ;
 - init ( context , attrs , NUMBER0 , NUMBER0 ) ;
 + init ( context , attrs , NUMBER0 , R . style . AVLoadingIndicatorView ) ;
 }

 public AVLoadingIndicatorView ( Context context , AttributeSet attrs , int defStyleAttr ) {


<nb> public class ElasticsearchClient extends DB {
 . put ( STRING0 , STRING1 )
 . put ( STRING2 , System . getProperty ( STRING3 ) + STRING4 )
 . put ( STRING5 , STRING1 )
 - . put ( STRING6 , STRING7 )
 . put ( STRING8 , STRING9 )
 . put ( STRING10 , STRING11 )
 . put ( STRING12 , System . getProperty ( STRING3 ) ) ;


<nb> public class SourceFormatter {
 x = NUMBER0 ;
 }
 else {
 - x = x + NUMBER1 ;
 + x = x + NUMBER2 ;
 }
 }
 else if ( fileName . endsWith ( STRING0 ) ) {

SourceFormatter wrong value of x results in wrong projectname


<nb> public class WaypointHelper {
 }

 public void clearAllVisiblePoints ( ) {
 - this . locationPointsStates . clear ( ) ;
 + SINGLE
 this . locationPoints = new ArrayList < List < LocationPointWrapper > > ( ) ;
 }

 <nb> public class WaypointHelper {

 protected synchronized void setLocationPoints ( List < List < LocationPointWrapper > > locationPoints , RouteCalculationResult route ) {
 this . locationPoints = locationPoints ;
 - this . locationPointsStates . clear ( ) ;
 + SINGLE
 TIntArrayList list = new TIntArrayList ( locationPoints . size ( ) ) ;
 list . fill ( NUMBER0 , locationPoints . size ( ) , NUMBER0 ) ;
 this . pointsProgress = list ;

Updated fix to waypoint annonced many times


<nb> public class TangentBinormalGenerator {
 }
 }

 + public static void generate ( Mesh mesh , boolean approxTangents ) {
 + generate ( mesh , approxTangents , false ) ;
 + }
 +
 private static List < VertexData > processTriangles ( Mesh mesh ,
 int [ ] index , Vector3f [ ] v , Vector2f [ ] t , boolean splitMirrored ) {
 IndexBuffer indexBuffer = mesh . getIndexBuffer ( ) ;

put back previous API for TangentBinormalGenerator generate method


<nb> public class ArrayExpression extends Expression {
 COMMENT
 public ArrayExpression ( String type , Expression sizeExpression ) {
 if ( ! type . endsWith ( STRING0 ) ) type += STRING0 ;
 + setSuperType ( type ) ;
 this . elementType = type ;
 this . sizeExpression = sizeExpression ;
 this . expressions = Collections . EMPTY_LIST ;


<nb> public final class HttpClient implements Runnable {
 if ( engine == null ) {
 engine = DEFAULT_CONTEXT . createSSLEngine ( ) ;
 }
 - engine . setUseClientMode ( true ) ;
 + if ( ! engine . getUseClientMode ( ) )
 + engine . setUseClientMode ( true ) ;
 +
 pending . offer ( new HttpsRequest ( addr , request , cb , requests , cfg , engine ) ) ;
 } else {
 pending . offer ( new Request ( addr , request , cb , requests , cfg ) ) ;

Do not set client mode on SSLEngine if already set


<nb> public class DefaultUrlMappingInfo implements UrlMappingInfo {
 if ( disableMultipart instanceof Boolean ) {
 disabled = ( ( Boolean ) disableMultipart ) . booleanValue ( ) ;
 } else if ( disableMultipart instanceof String ) {
 - disabled = Boolean . valueOf ( ( String ) disableMultipart ) ;
 + disabled = Boolean . valueOf ( ( String ) disableMultipart ) . booleanValue ( ) ;
 }
 return disabled ;
 }


<nb> public class PythonCompletionTest extends PyTestCase {
 }

 public void testRelativeImportExcludeToplevel ( ) { SINGLE
 - setLanguageLevel ( LanguageLevel . PYTHON27 ) ;
 - try {
 - myFixture . copyDirectoryToProject ( STRING0 , STRING1 ) ;
 - myFixture . configureByFile ( STRING2 ) ;
 - myFixture . completeBasic ( ) ;
 - final List < String > lookupElementStrings = myFixture . getLookupElementStrings ( ) ;
 - assertNotNull ( lookupElementStrings ) ;
 - assertFalse ( lookupElementStrings . contains ( STRING3 ) ) ;
 - }
 - finally {
 - setLanguageLevel ( null ) ;
 - }
 + runWithLanguageLevel ( LanguageLevel . PYTHON27 , new Runnable ( ) {
 + @ override
 + public void run ( ) {
 + myFixture . copyDirectoryToProject ( STRING0 , STRING1 ) ;
 + myFixture . configureByFile ( STRING2 ) ;
 + myFixture . completeBasic ( ) ;
 + assertNull ( myFixture . getLookupElementStrings ( ) ) ;
 + myFixture . checkResult ( STRING4 ) ;
 + }
 + } ) ;
 }

 SINGLE


<nb> public class GrailsClassUtils {
 for ( int i = NUMBER0 ; i < descriptors . length ; i ++ ) {
 descriptor = descriptors [ i ] ;
 Class < ? > currentPropertyType = descriptor . getPropertyType ( ) ;
 - if ( isTypeInstanceOfPropertyType ( propertyType , currentPropertyType ) ) {
 + if ( propertySuperType . isAssignableFrom ( descriptor . getPropertyType ( ) ) ) {
 properties . add ( descriptor ) ;
 }
 }


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

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 @ target ( { ElementType . METHOD } )
 @ retention ( RetentionPolicy . RUNTIME )
 @ documented
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 @ target ( { ElementType . METHOD } )
 @ retention ( RetentionPolicy . RUNTIME )
 @ documented
 public @ interface Subscribe {

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 String value ( ) ;

 COMMENT


<nb> public interface JvmTestSuiteSpec extends TestSuiteSpec , JvmComponentSpec {
 COMMENT
 DependencySpecContainer getDependencies ( ) ;

 + @ override
 JvmComponentSpec getTestedComponent ( ) ;
 }


<nb> public class AccountHeaderBuilder {

 SINGLE
 if ( mCloseDrawerOnProfileListClick != null ) {
 - return ! mCloseDrawerOnProfileListClick ;
 - } else {
 - return consumed ;
 + consumed = consumed && ! mCloseDrawerOnProfileListClick ;
 + }
 +
 + SINGLE
 + if ( mDrawer != null && ! consumed ) {
 + SINGLE
 + mDrawer . mDrawerBuilder . closeDrawerDelayed ( ) ;
 }
 +
 + SINGLE
 + return true ;
 }
 } ;

custom handling of the drawer listener consume the event as we do not want it to select the item


<nb> public class Sprite extends TextureRegion {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public Rectangle getBoundingRectangle ( ) {


<nb> import NAMESPACE ;
 @ applicationscoped
 public class MyRoutes extends RouteBuilder {

 - public MyRoutes ( ) { } ;
 -
 @ inject
 SINGLE
 @ uri ( STRING0 )

Remove constructor which is not required for MyRoutes and solve checkstyle


<nb> public class DeadlineTest {
 latch . countDown ( ) ;
 }
 } , Executors . newSingleThreadScheduledExecutor ( ) ) ;
 - if ( ! latch . await ( NUMBER0 , TimeUnit . MILLISECONDS ) ) {
 + if ( ! latch . await ( NUMBER1 , TimeUnit . MILLISECONDS ) ) {
 fail ( STRING0 ) ;
 }
 }

Fix flaky DeadlineTest runOnEventualExpirationIsExecuted


<nb> public class OServerCommandPostBatch extends OServerCommandDocumentAbstract {
 if ( tx )
 db . commit ( ) ;

 + iResponse . writeResult ( lastResult ) ;
 + iResponse . send ( OHttpUtils . STATUS_OK_CODE , OHttpUtils . STATUS_OK_DESCRIPTION , OHttpUtils . CONTENT_TEXT_PLAIN , null , null , true ) ;
 +
 } finally {
 if ( db != null )
 db . close ( ) ;
 }
 -
 - iResponse . send ( OHttpUtils . STATUS_OK_CODE , OHttpUtils . STATUS_OK_DESCRIPTION , OHttpUtils . CONTENT_TEXT_PLAIN , lastResult , null ,
 - true ) ;
 return false ;
 }


<nb> public class AbstractSourceImporterTest {
 }

 @ test
 - @ ignore
 - public void canBeDisabled ( ) {
 - Project pom = new Project ( STRING0 ) ;
 - Configuration config = mock ( Configuration . class ) ;
 - when ( pom . getConfiguration ( ) ) . thenReturn ( config ) ;
 - when ( config . getBoolean ( CoreProperties . CORE_IMPORT_SOURCES_PROPERTY , CoreProperties . CORE_IMPORT_SOURCES_DEFAULT_VALUE ) ) . thenReturn (
 - Boolean . FALSE ) ;
 -
 - assertFalse ( importer . isEnabled ( pom ) ) ;
 - assertFalse ( importer . shouldExecuteOnProject ( pom ) ) ;
 - }
 -
 - @ test
 public void doNotSaveSourceIfNullResource ( ) throws IOException {
 AbstractSourceImporter nullImporter = new AbstractSourceImporter ( Java . INSTANCE ) {


<nb>
 package NAMESPACE ;

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

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

 public class IsCollectionContainingTest extends AbstractMatcherTest {


<nb> public class AgreementRule extends GermanRule {
 new PatternTokenBuilder ( ) . tokenRegex ( STRING0 ) . build ( ) ,
 new PatternTokenBuilder ( ) . token ( STRING1 ) . build ( ) ,
 new PatternTokenBuilder ( ) . token ( STRING2 ) . build ( )
 + ) ,
 + Arrays . asList (
 + new PatternTokenBuilder ( ) . token ( STRING3 ) . build ( ) ,
 + new PatternTokenBuilder ( ) . tokenRegex ( STRING4 ) . build ( ) ,
 + new PatternTokenBuilder ( ) . posRegex ( STRING5 ) . build ( ) SINGLE
 )
 ) ;

de avoid false alarm in e g ein von vielen bewundertes Haus