<nb> public class PrepareContractionHierarchies extends AbstractAlgoPreparation < Prepa
 if ( neighborWn . priority != tmpOld ) {
 sortedNodes . update ( nn , tmpOld , neighborWn . priority ) ;
 }
 +
 + SINGLE
 + SINGLE
 ( ( LevelGraphStorage ) g ) . disconnect ( iter , EdgeSkipIterator . NO_EDGE , false ) ;
 }
 }

looks like disconnect was the key for perf boost but storing second edge id should also have its boosts properties


<nb> package NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ActionUtil {

 RawMetadataProcessorUtil . generateMetadata ( fileVersion ) ;

 - if ( fileVersion . isInTrash ( ) ) {
 + String cmd = ParamUtil . getString ( request , Constants . CMD ) ;
 +
 + if ( fileVersion . isInTrash ( ) &&
 + ! cmd . equals ( Constants . MOVE_FROM_TRASH ) ) {
 +
 throw new NoSuchFileEntryException ( ) ;
 }
 }

Move file entry to trash when folder is deleted


<nb> import NAMESPACE ;
 public abstract class SourcePositionHighlighter {
 public static final ExtensionPointName < SourcePositionHighlighter > EP_NAME = ExtensionPointName . create ( STRING0 ) ;

 - abstract TextRange getHighlightRange ( SourcePosition sourcePosition ) ;
 + public abstract TextRange getHighlightRange ( SourcePosition sourcePosition ) ;

 @ nullable
 public static TextRange getHighlightRangeFor ( SourcePosition sourcePosition ) {


<nb> public final class Beans {
 COMMENT
 COMMENT
 public static PooledConnectionFactory newPooledConnectionFactory ( final AbstractLdapProperties l ) {
 + public static PooledConnectionFactory newPooledConnectionFactory ( final AbstractLdapProperties l ) {
 final ConnectionPool cp = newBlockingConnectionPool ( l ) ;
 return new PooledConnectionFactory ( cp ) ;
 }
 <nb> public class LdapAuthenticationConfiguration {
 }

 private static PooledCompareAuthenticationHandler getPooledCompareAuthenticationHandler ( final LdapAuthenticationProperties l ) {
 - final PooledCompareAuthenticationHandler handler = new PooledCompareAuthenticationHandler (
 - Beans . newPooledConnectionFactory ( l ) ) ;
 + final PooledCompareAuthenticationHandler handler = new PooledCompareAuthenticationHandler ( Beans . newPooledConnectionFactory ( l ) ) ;
 handler . setPasswordAttribute ( l . getPrincipalAttributePassword ( ) ) ;
 return handler ;
 }


<nb> public class XActivityManagerService extends XHook {
 private static boolean mSleeping = false ;

 private XActivityManagerService ( Methods method , int sdk ) {
 - super ( null , method . name ( ) , null ) ;
 + super ( null , method . name ( ) , null , sdk ) ;
 mMethod = method ;
 }

 <nb> public class XLocationManager extends XHook {
 } ;
 SINGLE

 + SINGLE
 +
 public static List < XHook > getInstances ( Object instance ) {
 String className = instance . getClass ( ) . getName ( ) ;
 List < XHook > listHook = new ArrayList < XHook > ( ) ;


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

 COMMENT
 <nb> public class EmailLens implements Lens {
 }

 protected Set < Uri > getAdditionalAttachments ( ) {
 - return new HashSet < > ( ) ;
 + return Collections . emptySet ( ) ;
 }
 }

Don t allocate a Set when there are not attachments


<nb> public class NotificationPanelView extends PanelView implements
 SINGLE
 mQsMinExpansionHeight = mKeyguardShowing ? NUMBER0 : mHeader . getCollapsedHeight ( ) + mQsPeekHeight ;
 mQsMaxExpansionHeight = mHeader . getExpandedHeight ( ) + mQsContainer . getHeight ( ) ;
 + positionClockAndNotifications ( ) ;
 if ( mQsExpanded ) {
 if ( mQsFullyExpanded ) {
 mQsExpansionHeight = mQsMaxExpansionHeight ;
 <nb> public class NotificationPanelView extends PanelView implements
 }
 } else {
 setQsExpansion ( mQsMinExpansionHeight + mLastOverscroll ) ;
 - positionClockAndNotifications ( ) ;
 mNotificationStackScroller . setStackHeight ( getExpandedHeight ( ) ) ;
 updateHeader ( ) ;
 }

Fixed a bug where the notifications and the clock could jump


<nb> public class AddShortcut
 else
 {
 pickerIntent
 - . putExtra ( STRING0 , STRING1 )
 + . putExtra ( STRING0 , STRING2 )
 . setAction ( Intent . ACTION_PICK ) ;
 }
 startActivityForResult ( pickerIntent , OP_MAKE_SHORTCUT ) ;


<nb> public static void main ( String [ ] args ) throws Exception {
 w . flush ( ) ;
 Object r = LispReader . read ( rdr , false , EOF , false ) ;
 if ( r == EOF )
 + {
 + w . write ( STRING0 ) ;
 + w . flush ( ) ;
 break ;
 + }
 Object ret = Compiler . eval ( r ) ;
 RT . print ( ret , w ) ;
 w . write ( STRING1 ) ;


<nb> public class DeepLearningSpiralsTest extends TestUtil {
 CM . toASCII ( sb ) ;
 double error = new ConfusionMatrix ( CM . cm ) . err ( ) ;
 Log . info ( sb ) ;
 - if ( error >= FLOAT0 ) {
 - Assert . fail ( STRING0 + error + STRING1 ) ;
 + if ( error >= FLOAT1 ) {
 + Assert . fail ( STRING2 + error + STRING1 ) ;
 }
 pred . delete ( ) ;
 mymodel . delete ( ) ;

Remove apparent false positive from DL spirals


<nb> public class MapActivityActions implements DialogProvider {
 } ) . reg ( ) ;

 optionsMenuHelper . item ( R . string . settings_activity )
 - . icons ( R . drawable . ic_action_settings_light , R . drawable . ic_action_settings_dark )
 + . icons ( R . drawable . ic_action_settings_dark , R . drawable . ic_action_settings_light )
 . listen ( new OnContextMenuClick ( ) {
 @ override
 public boolean onContextMenuClick ( ArrayAdapter < ? > adapter , int itemId , int pos , boolean isChecked ) {


<nb> public class OObjectProxyMethodHandler implements MethodHandler {
 throws NoSuchMethodException , IllegalAccessException , InvocationTargetException {
 if ( ! idOrVersionField ) {
 if ( value == null ) {
 - final Object docValue = getDocFieldValue ( self , fieldName ) ;
 - if ( docValue != null ) {
 - value = lazyLoadField ( self , fieldName , docValue , value ) ;
 + if ( loadedFields . containsKey ( fieldName ) && loadedFields . get ( fieldName ) . compareTo ( doc . getRecordVersion ( ) ) == NUMBER0 ) {
 + return null ;
 + } else {
 + final Object docValue = getDocFieldValue ( self , fieldName ) ;
 + if ( docValue != null ) {
 + value = lazyLoadField ( self , fieldName , docValue , value ) ;
 + }
 }
 } else {
 if ( ( ( value instanceof Collection < ? > || value instanceof Map < ? , ? > ) && ! ( value instanceof OObjectLazyMultivalueElement ) )


<nb> public class JpaConsumerIdleMessageTest extends CamelTestSupport {

 @ test
 public void testConsumeIdleMessages ( ) throws Exception {
 - Thread . sleep ( NUMBER0 ) ;
 + Thread . sleep ( NUMBER1 ) ;
 MockEndpoint mock = getMockEndpoint ( STRING0 ) ;
 mock . expectedMinimumMessageCount ( NUMBER2 ) ;
 assertMockEndpointsSatisfied ( ) ;

fixed a unit test which cause timing issues on slow CI server


<nb> public class NeuralNetConfiguration implements Serializable , Cloneable {
 }

 public Object [ ] getExtraArgs ( ) {
 -
 + if ( layer == null || layer . getActivationFunction ( ) == null ) return new Object [ NUMBER0 ] ;
 switch ( layer . getActivationFunction ( ) ) {
 case STRING0 :
 return new Object [ ] { leakyreluAlpha } ;

Fix NeuralNetConfiguration getExtraArgs for no layer no activation fn edge case


<nb> public class ReplaceMethodDuplicatesTestSuite {
 testSuite . addTestSuite ( FindMethodDuplicatesMiscTest . class ) ;
 testSuite . addTestSuite ( FindMethodDuplicatesTest . class ) ;
 testSuite . addTestSuite ( SuggestedParamTypesTest . class ) ;
 + testSuite . addTestSuite ( SuggestedReturnTypesTest . class ) ;
 return testSuite ;
 }
 }

include test for acceptable return types in extract suite


<nb>
 COMMENT
 package NAMESPACE ;

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

 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class PlainSQLTest extends AbstractTest {
 assertEquals ( STRING0 , create . renderInlined ( c2 ) ) ;
 assertEquals ( STRING1 , create . renderNamedParams ( c2 ) ) ;

 - assertEquals ( STRING2 , DSL . using ( POSTGRES ) . render ( c2 ) ) ;
 - assertEquals ( STRING0 , DSL . using ( POSTGRES ) . renderInlined ( c2 ) ) ;
 - assertEquals ( STRING1 , DSL . using ( POSTGRES ) . renderNamedParams ( c2 ) ) ;
 + SINGLE
 + SINGLE
 + SINGLE
 }

 @ test


<nb> class Connection implements ManagedResource
 {
 private long timeOfLastStateChange = NUMBER0 ;
 private final long correlationId ;
 - private final int positionBitsToShift ;
 - private final int termLengthMask ;
 private final int sessionId ;
 + private final int termLengthMask ;
 + private final int positionBitsToShift ;

 - private final LogBuffers logBuffers ;
 + private final Position subscriberPosition ;
 private final UnsafeBuffer [ ] termBuffers ;
 private final Header header ;
 - private final Position subscriberPosition ;
 + private final LogBuffers logBuffers ;

 public Connection (
 final int sessionId ,


<nb> public abstract class XmppActivity extends Activity {
 if ( conversation != null ) {
 conversation . setNextEncryption ( Message . ENCRYPTION_PGP ) ;
 xmppConnectionService . databaseBackend . updateConversation ( conversation ) ;
 + refreshUi ( ) ;
 }
 if ( onSuccess != null ) {
 runOnUiThread ( onSuccess ) ;

refresh UI to redraw message hint after switching to pgp


<nb> class IonDrawable extends LayerDrawable {
 try {
 gifDecoder . nextFrame ( ) ;
 }
 + catch ( OutOfMemoryError e ) {
 + exception = new Exception ( e ) ;
 + }
 catch ( Exception e ) {
 exception = e ;
 }


<nb> public class WindowManagerService extends IWindowManager . Stub
 mScreenRotationAnimation = null ;
 }
 updateRotation = true ;
 - Surface . unfreezeDisplay ( NUMBER0 ) ;
 }
 + Surface . unfreezeDisplay ( NUMBER0 ) ;

 mInputMonitor . thawInputDispatchingLw ( ) ;


<nb> public class AndroidInputHandler14 extends AndroidInputHandler implements View . O
 if ( isJoystick && joyInput != null ) {
 SINGLE
 SINGLE
 - consumed = consumed || ( ( AndroidJoyInput14 ) joyInput ) . onKey ( event ) ;
 + SINGLE
 + consumed = consumed | ( ( AndroidJoyInput14 ) joyInput ) . onKey ( event ) ;
 }

 return consumed ;

Fix issue handling key events that are tied to both keyboard and gamepad


<nb> public class PartitionManager {
 Iterable < List < Object > > tups = KafkaUtils . generateTuples ( _spoutConfig , toEmit . msg ) ;
 if ( tups != null ) {
 for ( List < Object > tup : tups ) {
 - collector . emit ( tup , new KafkaMessageId ( _partition , toEmit . offset ) ) ;
 + if ( _spoutConfig . topicAsStreamId ) {
 + collector . emit ( _spoutConfig . topic , tup , new KafkaMessageId ( _partition , toEmit . offset ) ) ;
 + } else {
 + collector . emit ( tup , new KafkaMessageId ( _partition , toEmit . offset ) ) ;
 + }
 }
 break ;
 } else {
 <nb> public class SpoutConfig extends KafkaConfig implements Serializable {
 public String zkRoot = null ;
 public String id = null ;

 + SINGLE
 + public boolean topicAsStreamId = false ;
 +
 SINGLE
 public long stateUpdateIntervalMs = NUMBER0 ;

Added a topicAsStreamId flag to SpoutConfig


<nb> public abstract class Drawable {
 }

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - public void setTint ( ColorStateList tint , PorterDuff . Mode tintMode ) { }
 -
 - COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public final class MediaRouter {
 final Object obj = msg . obj ;
 final int arg = msg . arg1 ;

 + if ( what == MSG_ROUTE_CHANGED
 + && getSelectedRoute ( ) . getId ( ) . equals ( ( ( RouteInfo ) obj ) . getId ( ) ) ) {
 + updateSelectedRouteIfNeeded ( true ) ;
 + }
 +
 SINGLE
 syncWithSystemProvider ( what , obj ) ;

 <nb> abstract class SystemMediaRouteProvider extends MediaRouteProvider {
 if ( mRouteTypes != newRouteTypes || mActiveScan != newActiveScan ) {
 mRouteTypes = newRouteTypes ;
 mActiveScan = newActiveScan ;
 - updateCallback ( ) ;
 updateSystemRoutes ( ) ;
 }
 }
 <nb> abstract class SystemMediaRouteProvider extends MediaRouteProvider {
 }

 private void updateSystemRoutes ( ) {
 + updateCallback ( ) ;
 boolean changed = false ;
 for ( Object routeObj : MediaRouterJellybean . getRoutes ( mRouterObj ) ) {
 changed |= addSystemRouteNoPublish ( routeObj ) ;

Make getSelectedRoute return the recent infomation


<nb> public class NioEndpoint extends AbstractEndpoint < NioChannel > {
 } catch ( Exception x ) {
 log . error ( STRING0 , x ) ;
 }
 - } else if ( state == SocketState . LONG && ka . isAsync ( ) && ka . interestOps ( ) > NUMBER0 ) {
 - SINGLE
 - ka . getPoller ( ) . add ( socket , ka . interestOps ( ) ) ;
 }
 } else if ( handshake == - NUMBER1 ) {
 if ( key != null ) {


<nb> public class CucumberScenarioOutline extends CucumberTagStatement {

 SINGLE
 String name = replaceTokens ( matchedColumns , headerCells , exampleCells , step . getName ( ) ) ;
 + if ( name . isEmpty ( ) ) {
 + throw new CucumberException ( STRING0 + step . getName ( ) ) ;
 + }

 return new ExampleStep (
 step . getComments ( ) ,
 <nb> public class CucumberScenarioOutline extends CucumberTagStatement {

 if ( text . contains ( token ) ) {
 text = text . replace ( token , value ) ;
 - if ( text . isEmpty ( ) ) {
 - throw new CucumberException ( STRING1 + token + STRING2 ) ;
 - }
 matchedColumns . add ( col ) ;
 }
 }

Moved the check for empty step name to take place at step generation instead of example table value substitution


<nb> public class PluginManager implements IPluginManager , PluginStateListener {
 protected File download ( String url , boolean verifyChecksum ) throws IOException {
 File file = downloadFile ( url ) ;

 + if ( ! verifyChecksum ) {
 + return file ;
 + }
 +
 File sha1File = null ;
 try {
 sha1File = downloadFile ( url + STRING0 ) ;
 <nb> public class PluginManager implements IPluginManager , PluginStateListener {

 }

 - if ( sha1File == null && md5File == null && verifyChecksum ) {
 + if ( sha1File == null && md5File == null ) {
 throw new IOException ( STRING1 + url ) ;
 }

Fix broken implementation of noverify for installing a plugin from a url


<nb> public class CommandLineOptions {
 options = new ArrayList < Option > ( ) ;
 options . add ( new Option ( STRING0 , null , STRING1 ) ) ;
 options . add ( new Option ( STRING2 , null , STRING3 ) ) ;
 - options . add ( new Option ( STRING4 , null , STRING5 ) ) ;
 + options . add ( new Option ( STRING4 , null , STRING6 ) ) ;
 options . add ( new Option ( STRING7 , STRING8 , STRING9 ) ) ;
 options . add ( new Option ( STRING10 , STRING11 , STRING12 ) ) ;
 options . add ( new Option ( STRING13 , STRING11 , STRING14 ) ) ;

Economical mode generates suggestion database


<nb> public abstract class AbstractPeriod
 COMMENT
 public final Instant addTo ( ReadableInstant instant , int scalar ) {
 long instantMillis = DateTimeUtils . getInstantMillis ( instant ) ;
 - return new Instant ( addTo ( instantMillis , scalar , instant . getChronology ( ) ) ) ;
 + Chronology chrono = DateTimeUtils . getInstantChronology ( instant , null ) ;
 + return new Instant ( addTo ( instantMillis , scalar , chrono ) ) ;
 }

 COMMENT
 <nb> public class MutableInterval
 COMMENT
 public void setDurationBeforeEnd ( ReadableDuration duration ) {
 long durationMillis = DateTimeUtils . getDurationMillis ( duration ) ;
 - setStartMillis ( FieldUtils . safeAdd ( getStartMillis ( ) , - durationMillis ) ) ;
 + setStartMillis ( FieldUtils . safeAdd ( getEndMillis ( ) , - durationMillis ) ) ;
 }

 SINGLE


<nb> public abstract class RepositoryPage extends BasePage {
 return submodules ;
 }

 - protected Map < String , SubmoduleModel > getSubmodules ( ) {
 - return submodules ;
 - }
 -
 protected SubmoduleModel getSubmodule ( String path ) {
 SubmoduleModel model = submodules . get ( path ) ;
 if ( model == null ) {


<nb> public class PyQuickFixTest extends PyLightFixtureTestCase {

 public void testSimplifyBooleanCheckQuickFix ( ) {
 doInspectionTest ( STRING0 , PySimplifyBooleanCheckInspection . class ,
 - PyBundle . message ( STRING1 ) , true , true ) ;
 + PyBundle . message ( STRING2 , STRING3 ) , true , true ) ;
 }

 public void testFromFutureImportQuickFix ( ) {

fixed failed test in SimplifyBooleanCheck


<nb> public class TestConvolutionLayer {
 int inputHeight = NUMBER0 ;
 int kernelWidth = NUMBER1 ;
 int kernelHeight = NUMBER1 ;
 - int [ ] stride = new int [ ] { NUMBER2 , NUMBER2 } ;
 + int [ ] stride = new int [ ] { NUMBER3 , NUMBER3 } ;
 int [ ] padding = new int [ ] { NUMBER4 , NUMBER4 } ;
 int nIn = NUMBER2 ;
 int nOut = NUMBER5 ;
 <nb> public class TestConvolutionLayer {
 INDArray input = next . getFeatureMatrix ( ) . reshape ( next . numExamples ( ) , NUMBER2 , inputWidth , inputHeight ) ;
 INDArray conv = layer . activate ( input ) ;

 - SINGLE
 - int featureMapWidth = NUMBER5 ;
 + int featureMapWidth = ( inputWidth - kernelWidth + NUMBER3 * padding [ NUMBER4 ] ) / stride [ NUMBER4 ] + NUMBER2 ;
 assertEquals ( featureMapWidth , conv . size ( NUMBER4 ) ) ;
 assertEquals ( nOut , conv . size ( NUMBER4 ) ) ;


<nb> public class SessionInfo extends JavaScriptObject
 return this . build_restart_context ;
 } - * / ;

 + public final boolean getWasBuildRestart ( )
 + {
 + return getBuildRestartContext ( ) != null ;
 + }
 +
 public final native boolean isDevtoolsInstalled ( ) COMMENT
 COMMENT
 COMMENT ;
 <nb> public class Files
 String projectFile = session_ . getSessionInfo ( ) . getActiveProjectFile ( ) ;
 if ( projectFile == null )
 return null ;
 +
 + SINGLE
 + if ( session_ . getSessionInfo ( ) . getWasBuildRestart ( ) )
 + return value ;

 SINGLE
 SINGLE

always restore the files pane after build and reload


<nb> public class FloatingActionButton extends ImageButton {
 mLabelText = attr . getString ( R . styleable . FloatingActionButton_fab_label ) ;
 mShouldProgressIndeterminate = attr . getBoolean ( R . styleable . FloatingActionButton_fab_progress_indeterminate , false ) ;
 mProgressColor = attr . getColor ( R . styleable . FloatingActionButton_fab_progress_color , NUMBER0 ) ;
 - mProgressBackgroundColor = attr . getColor ( R . styleable . FloatingActionButton_fab_progress_backgroundColor , NUMBER1 ) ;
 + mProgressBackgroundColor = attr . getColor ( R . styleable . FloatingActionButton_fab_progress_backgroundColor , NUMBER2 ) ;
 mProgressMax = attr . getInt ( R . styleable . FloatingActionButton_fab_progress_max , mProgressMax ) ;
 mShowProgressBackground = attr . getBoolean ( R . styleable . FloatingActionButton_fab_progress_showBackground , true ) ;

Changed default progress background color


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

 private final int bufferSize ;
 private final int buffersPerRegion ;


<nb>
 package NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class DebuggerExpressionComboBox extends DebuggerEditorImpl {

 public void setItem ( Object item ) {
 super . setItem ( createDocument ( ( TextWithImports ) item ) ) ;
 + COMMENT
 final Editor editor = getEditor ( ) ;
 if ( editor != null ) {
 DaemonCodeAnalyzer . getInstance ( getProject ( ) ) . updateVisibleHighlighters ( editor ) ;
 }
 + COMMENT
 }

 }

Unnecessary code removed that caused PSI changes during PSI events handling


<nb> package NAMESPACE ;

 import NAMESPACE ;

 - public class FlashSmsCardData {
 + public class SilentSmsCardData {
 private final String mAddress ;
 private final String mDisplayAddress ;
 private final String mMessageClass ;
 <nb> public class FlashSmsCardData {
 private final String mMessage ;
 private final long mTimestamp ;

 - public FlashSmsCardData ( String address , String displayAddress , String messageClass ,
 + public SilentSmsCardData ( String address , String displayAddress , String messageClass ,
 String serviceCentre , String messageBody , long timestamp )
 {
 mAddress = address ;


<nb> public class MysqlTestingHelper {
 Assert . assertTrue ( dataDir . mkdir ( ) ) ;

 final PrintStream out = new PrintStream ( new LoggingOutputStream ( log ) , true ) ;
 - mysqldResource = new MysqldResource ( dbDir , dataDir , STRING0 , out , out ) ;
 + mysqldResource = new MysqldResource ( dbDir , dataDir , null , out , out ) ;

 final Map < String , String > dbOpts = new HashMap < String , String > ( ) ;
 dbOpts . put ( MysqldResourceI . PORT , Integer . toString ( port ) ) ;

don t hardcode MySQL version in MysqlTestingHelper


<nb> public final class SortingProperty < E >
 break ;
 case ASC_NULLS_LAST :
 ordering = STRING0 ;
 - nullOrdering = STRING1 ;
 + nullOrdering = STRING2 ;
 break ;
 case DESC_NULLS_FIRST :
 ordering = STRING3 ;
 - nullOrdering = STRING2 ;
 + nullOrdering = STRING1 ;
 break ;
 case DESC_NULLS_LAST :
 ordering = STRING3 ;


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

 + import static NAMESPACE ;
 import static NAMESPACE ;

 public class ClusterOverviewProcedureTest
 {
 @ test
 - public void shouldRecommendTheCoreLeaderForWriteAndEdgeForRead ( ) throws Exception
 + public void shouldProvideOverivewOfCoreAndEdgeServers ( ) throws Exception
 {
 SINGLE
 final CoreTopologyService topologyService = mock ( CoreTopologyService . class ) ;
 <nb> public class ClusterOverviewProcedureTest
 coreMembers . put ( follower1 , DiscoverEndpointAcquisitionServersProcedureTest . coreAddresses ( NUMBER0 ) ) ;
 coreMembers . put ( follower2 , DiscoverEndpointAcquisitionServersProcedureTest . coreAddresses ( NUMBER1 ) ) ;

 - Set < EdgeAddresses > edges = DiscoverEndpointAcquisitionServersProcedureTest . addresses ( NUMBER2 , NUMBER3 ) ;
 + Set < EdgeAddresses > edges = addresses ( NUMBER2 , NUMBER3 ) ;

 final ClusterTopology clusterTopology = new ClusterTopology ( null , false , coreMembers , edges ) ;
 when ( topologyService . currentTopology ( ) ) . thenReturn ( clusterTopology ) ;


<nb> public class OverviewActivity extends BaseNavDrawerActivity {
 String poster = show . getPoster ( ) ;
 ShortcutUtils . createShortcut ( this , title , poster , mShowId ) ;

 + SINGLE
 + startActivity ( new Intent ( Intent . ACTION_MAIN ) . addCategory ( Intent . CATEGORY_HOME ) . setFlags (
 + Intent . FLAG_ACTIVITY_NEW_TASK ) ) ;
 +
 SINGLE
 fireTrackerEvent ( STRING0 ) ;
 return true ;

Drop user to home screen after creating shortcut


<nb> public class BSONSplitter extends Configured implements Tool {
 log . info ( STRING0 ) ;
 }

 - String splitFileLocation = getConf ( ) . get ( STRING1 , STRING2 ) ;
 - Path outputPath ;
 - if ( splitFileLocation == null || splitFileLocation . length ( ) == NUMBER0 ) {
 - outputPath = new Path ( inputPath . getParent ( ) , STRING3 + inputPath . getName ( ) + STRING4 ) ;
 - } else {
 - outputPath = new Path ( splitFileLocation ) ;
 - }
 + Path outputPath = new Path ( inputPath . getParent ( ) , STRING3 + inputPath . getName ( ) + STRING4 ) ;

 FileSystem pathFileSystem = outputPath . getFileSystem ( getConf ( ) ) ;
 FSDataOutputStream fsDataOut = null ;

remove split file location setting for now to be implemented more elegantly later


<nb> public class SimpleMonthView extends MonthView {
 mMonthNumPaint . setColor ( mDisabledDayTextColor ) ;
 }
 else if ( mSelectedDay == day ) {
 + mMonthNumPaint . setTypeface ( Typeface . create ( Typeface . DEFAULT , Typeface . BOLD ) ) ;
 mMonthNumPaint . setColor ( mSelectedDayTextColor ) ;
 } else if ( mHasToday && mToday == day ) {
 mMonthNumPaint . setColor ( mTodayNumberColor ) ;

Selected day should have higher font weight


<nb> public class RemoteViews implements Parcelable , Filter {
 if ( UserHandle . getUserId ( applicationInfo . uid ) != userId
 || ! applicationInfo . packageName . equals ( packageName ) ) {
 try {
 - Context context = application . getApplicationContext ( ) . createPackageContextAsUser (
 + Context context = application . getBaseContext ( ) . createPackageContextAsUser (
 packageName , NUMBER0 , new UserHandle ( userId ) ) ;
 applicationInfo = context . getApplicationInfo ( ) ;
 } catch ( NameNotFoundException nnfe ) {


<nb> public class WebViewUpdateServiceImpl {
 synchronized ( mLock ) {
 try {
 newPackage = findPreferredWebViewPackage ( ) ;
 - if ( mCurrentWebViewPackage != null )
 + if ( mCurrentWebViewPackage != null ) {
 oldProviderName = mCurrentWebViewPackage . packageName ;
 + if ( changedState == WebViewUpdateService . PACKAGE_CHANGED
 + && newPackage . packageName . equals ( oldProviderName ) ) {
 + SINGLE
 + SINGLE
 + SINGLE
 + return ;
 + }
 + }
 SINGLE
 SINGLE
 SINGLE

Don t run the WebView preparation if using the same non replaced package


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

 import NAMESPACE ;

 import static NAMESPACE ;

 public class ShutdownTask implements BootstrapTask {
 + private static Logger logger = LoggerFactory . getLogger ( ShutdownTask . class ) ;
 +
 private final int defaultShutdownPort ;
 private final String defaultShutdownKey ;
 private final MocoClient client = new MocoClient ( ) ;
 <nb> public class ShutdownTask implements BootstrapTask {

 @ override
 public void exceptionCaught ( ChannelHandlerContext ctx , Throwable cause ) throws Exception {
 + ctx . close ( ) ;
 +
 if ( ConnectException . class . isInstance ( cause ) ) {
 - System . err . println ( STRING0 ) ;
 + logger . error ( STRING0 ) ;
 return ;
 }
 -
 throw new RuntimeException ( cause ) ;
 }
 }

used logger to replace system error in shutdown handler


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class DocumentArchive implements Closeable {

 final int lastDot = entry . getName ( ) . lastIndexOf ( STRING0 ) ;
 if ( lastDot >= NUMBER0 ) {
 - final String extension = entry . getName ( ) . substring ( lastDot + NUMBER1 ) . toLowerCase ( ) ;
 + final String extension = entry . getName ( ) . substring ( lastDot + NUMBER1 ) . toLowerCase ( Locale . US ) ;
 final String mimeType = MimeTypeMap . getSingleton ( ) . getMimeTypeFromExtension ( extension ) ;
 if ( mimeType != null ) {
 return mimeType ;

Explicitly use Locale US for toLowerCase in ZIP


<nb> public abstract class AbstractProtocol < S > implements ProtocolHandler ,
 SINGLE
 SINGLE
 SINGLE
 - connections . put ( socket , processor ) ;
 longPoll ( wrapper , processor ) ;
 if ( processor . isAsync ( ) ) {
 getProtocol ( ) . addWaitingProcessor ( processor ) ;


<nb> public class SQLEditor extends SQLEditorBase
 public void run ( ) {
 if ( statement != null ) {
 resultsProvider . query = statement ;
 - resultsProvider . tabItem . setToolTipText ( statement . getQuery ( ) ) ;
 + resultsProvider . tabItem . setToolTipText ( CommonUtils . truncateString ( statement . getQuery ( ) , NUMBER0 ) ) ;
 SINGLE
 if ( statement . getData ( ) instanceof String ) {
 resultsProvider . tabItem . setText ( statement . getData ( ) . toString ( ) ) ;
 <nb> public class SQLEditor extends SQLEditorBase
 if ( results != null ) {
 CTabItem tabItem = results . tabItem ;
 if ( ! tabItem . isDisposed ( ) ) {
 - tabItem . setToolTipText ( result . getStatement ( ) . getQuery ( ) ) ;
 if ( ! CommonUtils . isEmpty ( result . getResultSetName ( ) ) ) {
 tabItem . setText ( result . getResultSetName ( ) ) ;
 } / * else {


<nb> public class TemporalCompactionSetCreator
 private static class ShardSorter
 implements Comparator < ShardMetadata >
 {
 + @ suppresswarnings ( STRING0 )
 @ override
 public int compare ( ShardMetadata shard1 , ShardMetadata shard2 )
 {


<nb> public abstract class RegisteredServicesCache < V > {
 XmlPullParser parser = Xml . newPullParser ( ) ;
 parser . setInput ( fis , null ) ;
 int eventType = parser . getEventType ( ) ;
 - while ( eventType != XmlPullParser . START_TAG ) {
 + while ( eventType != XmlPullParser . START_TAG
 + && eventType != XmlPullParser . END_DOCUMENT ) {
 eventType = parser . next ( ) ;
 }
 String tagName = parser . getName ( ) ;

Handle corrupt RegisteredServicesCache XML


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

Javadoc can t handle annotations in code samples


<nb> public abstract class Transition implements Cloneable {
 }
 }
 if ( mTargetIds . size ( ) == NUMBER0 && mTargets . size ( ) == NUMBER0 &&
 - ( mTargetTypes == null || mTargetTypes . isEmpty ( ) &&
 - ( mTargetNames == null || mTargetNames . isEmpty ( ) ) ) ) {
 + ( mTargetTypes == null || mTargetTypes . isEmpty ( ) ) &&
 + ( mTargetNames == null || mTargetNames . isEmpty ( ) ) ) {
 return true ;
 }
 if ( mTargetIds . contains ( targetId ) || mTargets . contains ( target ) ) {


<nb> public final class UnixTimeFunctions
 }
 }

 - return builder . toFormatter ( ) ;
 + try {
 + return builder . toFormatter ( ) ;
 + }
 + catch ( UnsupportedOperationException e ) {
 + throw new PrestoException ( StandardErrorCode . INVALID_FUNCTION_ARGUMENT . toErrorCode ( ) , e ) ;
 + }
 }
 }
 <nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class TestUnixTimeFunctions
 assertFunction ( STRING0 , getSeconds ( new DateTime ( NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3 , NUMBER4 , NUMBER5 , NUMBER5 , timeZone ) ) ) ;
 }

 + @ test ( expectedExceptions = PrestoException . class , expectedExceptionsMessageRegExp = STRING1 )
 + public void testInvalidDateParseFormat ( )
 + {
 + assertFunction ( STRING2 , NUMBER5 ) ;
 + }
 +
 @ test
 public void testFormatDatetime ( )
 {

Categorize bad date parse format string errors


<nb> public class NullObject extends GroovyObjectSupport {
 COMMENT
 COMMENT
 public Object getProperty ( String property ) {
 - throw new NullPointerException ( STRING0 + property + STRING1 ) ;
 + throw new NullPointerException ( STRING2 + property + STRING3 ) ;
 }

 COMMENT
 <nb> public class NullObject extends GroovyObjectSupport {
 COMMENT
 COMMENT
 public void setProperty ( String property , Object newValue ) {
 - throw new NullPointerException ( STRING4 + property + STRING1 ) ;
 + throw new NullPointerException ( STRING5 + property + STRING3 ) ;
 }

 COMMENT

null setProperty yields confusing error message tweak error message


<nb> public class SpecialFiles {
 excludedFiles . add ( STRING0 ) ; SINGLE
 excludedFiles . add ( STRING1 ) ; SINGLE

 + excludedFiles . add ( STRING2 ) ; SINGLE
 +
 excludedFiles . add ( STRING3 ) ; SINGLE
 }


<nb> public class ChangesViewContentManager extends AbstractProjectComponent implemen
 }
 }

 - public static final String LOCAL_CHANGES = Registry . is ( STRING0 ) ? STRING1 : STRING2 ;
 + public static final String LOCAL_CHANGES = Registry . is ( STRING0 ) ? STRING3 : STRING2 ;
 public static final String REPOSITORY = STRING4 ;
 public static final String INCOMING = STRING5 ;
 public static final String SHELF = STRING6 ;

Revert rename of Local Changes to Changes


<nb> public final class CasVersion {
 return DateTimeUtils . zonedDateTimeOf ( file . lastModified ( ) ) ;
 }

 - LOGGER . warn ( STRING0 , resource . getProtocol ( ) ,
 - resource . getProtocol ( ) , resource ) ;
 + LOGGER . warn ( STRING1 , resource . getProtocol ( ) , resource ) ;
 return ZonedDateTime . now ( ) ;

 } catch ( final Exception e ) {


<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 BuckEventsConsumer implements
 public void run ( ) {
 BuckEventsConsumer . this . mProjectGenerationProgress . setDetail ( message ) ;
 BuckEventsConsumer . this . mTreeModel . reload ( ) ;
 + SINGLE
 + FileDocumentManager . getInstance ( ) . saveAllDocuments ( ) ;
 + SaveAndSyncHandler . getInstance ( ) . refreshOpenFiles ( ) ;
 + VirtualFileManager . getInstance ( ) . refreshWithoutFileWatcher ( true ) ;
 }
 } ) ;
 - SINGLE
 - SINGLE
 - mProject . getBaseDir ( ) . refresh ( false , true ) ;
 }

 @ override

Buck plugin fix synchronize after project genration


<nb> public class PeopleUtils {

 Map < String , String > params = new HashMap < > ( ) ;
 params . put ( STRING0 , Integer . toString ( offset ) ) ;
 + params . put ( STRING1 , STRING2 ) ;
 + params . put ( STRING3 , STRING4 ) ;
 String path = String . format ( STRING5 , blogId ) ;
 WordPress . getRestClientUtilsV1_1 ( ) . get ( path , params , null , listener , errorListener ) ;
 }

Fetch users ordered by their display name in ascending order


<nb> public class BrowseFragment extends BaseFragment {

 @ override
 protected void onEntranceTransitionEnd ( ) {
 - mMainFragmentAdapter . onTransitionEnd ( ) ;
 - mHeadersFragment . onTransitionEnd ( ) ;
 + if ( mMainFragmentAdapter != null ) {
 + mMainFragmentAdapter . onTransitionEnd ( ) ;
 + }
 +
 + if ( mHeadersFragment != null ) {
 + mHeadersFragment . onTransitionEnd ( ) ;
 + }
 }

 void setSearchOrbViewOnScreen ( boolean onScreen ) {
 <nb> public class BrowseSupportFragment extends BaseSupportFragment {

 @ override
 protected void onEntranceTransitionEnd ( ) {
 - mMainFragmentAdapter . onTransitionEnd ( ) ;
 - mHeadersSupportFragment . onTransitionEnd ( ) ;
 + if ( mMainFragmentAdapter != null ) {
 + mMainFragmentAdapter . onTransitionEnd ( ) ;
 + }
 +
 + if ( mHeadersSupportFragment != null ) {
 + mHeadersSupportFragment . onTransitionEnd ( ) ;
 + }
 }

 void setSearchOrbViewOnScreen ( boolean onScreen ) {


<nb> public class SlidingWindowCounterTest {
 new SlidingWindowCounter < Object > ( windowLengthInSlots ) ;
 }

 + @ test
 public void newInstanceShouldHaveEmptyCounts ( ) {
 SINGLE
 SlidingWindowCounter < Object > counter = new SlidingWindowCounter < Object > ( ANY_WINDOW_LENGTH_IN_SLOTS ) ;

add missing Test annotation to unit test


<nb> public class Account extends AbstractEntity {
 }

 public boolean hasErrorStatus ( ) {
 - return getStatus ( ) > STATUS_NO_INTERNET
 - && ( getXmppConnection ( ) . getAttempt ( ) >= NUMBER0 ) ;
 + if ( getXmppConnection ( ) == null ) {
 + return false ;
 + } else {
 + return getStatus ( ) > STATUS_NO_INTERNET
 + && ( getXmppConnection ( ) . getAttempt ( ) >= NUMBER0 ) ;
 + }
 }

 public void setResource ( String resource ) {


<nb> public class ScopeEditorPanel {
 private final boolean myRequestFocus ;

 public MyPanelProgressIndicator ( final boolean requestFocus ) {
 + SINGLE
 super ( new Consumer < JComponent > ( ) {
 @ override
 public void consume ( final JComponent component ) {

suppress cases where javac would compile the code with lambda but on runtime VerifyError would be thrown


<nb> public class ConfigurationClassAspectIntegrationTests {
 }

 @ test
 - @ ignore SINGLE
 public void withInnerClassAndLambdaExpression ( ) {
 ApplicationContext ctx = new AnnotationConfigApplicationContext ( Application . class , CountingAspect . class ) ;
 ctx . getBeansOfType ( Runnable . class ) . forEach ( ( k , v ) - > v . run ( ) ) ;

Enabled test for AspectJ pointcut matching against lambda defined bean


<nb> import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ClientContainer extends ContainerLifeCycle implements WebSocketCont
 client . setEventDriverFactory ( new JsrEventDriverFactory ( client . getPolicy ( ) ) ) ;
 client . setSessionFactory ( new JsrSessionFactory ( this ) ) ;
 addBean ( client ) ;
 +
 + ShutdownThread . register ( client ) ;
 +
 super . doStart ( ) ;
 }


<nb> public final class HttpString implements Comparable < HttpString > , Serializable {
 COMMENT
 COMMENT
 public void appendTo ( ByteBuffer buffer ) {
 - for ( int i = NUMBER0 ; i < bytes . length ; ++ i ) {
 - buffer . put ( bytes [ i ] ) ;
 - }
 + buffer . put ( bytes ) ;
 }

 COMMENT

improves performance of HttpString appendTo ByteBuffer


<nb> public class Server extends HandlerWrapper implements Attributes
 }
 catch ( Exception e )
 {
 - mex . add ( e . getCause ( ) ) ;
 + mex . add ( e ) ;
 }
 }
 }
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class GracefulStopTest
 }
 catch ( Exception e )
 {
 - e . printStackTrace ( ) ;
 + SINGLE
 }
 }
 } . start ( ) ;
 <nb> public class MultiException extends Exception
 COMMENT
 public void add ( Throwable e )
 {
 + if ( e == null )
 + throw new IllegalArgumentException ( ) ;
 +
 if ( nested == null )
 - {
 nested = new ArrayList < > ( ) ;
 - }

 if ( e instanceof MultiException )
 {


<nb> public interface ChangeListModification {
 void setDefaultChangeList ( @ notnull LocalChangeList list ) ;

 void removeChangeList ( final String name ) ;
 + void removeChangeList ( final LocalChangeList list ) ;

 void moveChangesTo ( final LocalChangeList list , final Change [ ] changes ) ;

 <nb> public class ChangeListManagerImpl extends ChangeListManagerEx implements Projec
 }
 }

 + public void removeChangeList ( LocalChangeList list ) {
 + removeChangeList ( list . getName ( ) ) ;
 + }
 +
 COMMENT
 COMMENT
 COMMENT


<nb> public class RequestManager implements LifecycleListener {
 COMMENT
 COMMENT
 COMMENT
 - public void clear ( @ nullable Target < ? > target ) {
 - Util . assertMainThread ( ) ;
 + public void clear ( @ nullable final Target < ? > target ) {
 if ( target == null ) {
 return ;
 }

 - untrackOrDelegate ( target ) ;
 + if ( Util . isOnMainThread ( ) ) {
 + untrackOrDelegate ( target ) ;
 + } else {
 + mainHandler . post ( new Runnable ( ) {
 + @ override
 + public void run ( ) {
 + clear ( target ) ;
 + }
 + } ) ;
 + }
 }

 private void untrackOrDelegate ( Target < ? > target ) {

Allow requests to be cleared on background threads


<nb> public class JettyHttpGetWithParamTest extends BaseJettyTest {
 assertMockEndpointsSatisfied ( ) ;
 }

 + @ test
 + public void testHttpGetFromOtherRoute ( ) throws Exception {
 + MockEndpoint mock = getMockEndpoint ( STRING0 ) ;
 + mock . expectedBodiesReceived ( STRING1 ) ;
 + mock . expectedHeaderReceived ( STRING2 , STRING3 ) ;
 + mock . expectedHeaderReceived ( STRING4 , STRING5 ) ;
 +
 + template . requestBodyAndHeader ( STRING6 , STRING7 , STRING8 , STRING9 ) ;
 +
 + assertMockEndpointsSatisfied ( ) ;
 + }
 protected RouteBuilder createRouteBuilder ( ) throws Exception {
 return new RouteBuilder ( ) {
 public void configure ( ) throws Exception {
 from ( STRING10 + serverUri ) . process ( processor ) . to ( STRING0 ) ;
 + from ( STRING6 )
 + . setHeader ( Exchange . HTTP_METHOD , constant ( STRING11 ) )
 + . setHeader ( Exchange . HTTP_URI , simple ( serverUri + STRING12 ) )
 + . to ( STRING13 ) ;
 }
 } ;
 }

Added an unit test to show how to set the get parameters from message header dynamically


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 -
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ServletHandler extends ScopedHandler
 }
 else if ( th instanceof ServletException )
 {
 - LOG . debug ( th ) ;
 + LOG . warn ( th ) ;
 Throwable cause = ( ( ServletException ) th ) . getRootCause ( ) ;
 if ( cause != null )
 th = cause ;
 }
 - else if ( th instanceof RuntimeIOException )
 - {
 - LOG . debug ( th ) ;
 - Throwable cause = ( IOException ) ( ( RuntimeIOException ) th ) . getCause ( ) ;
 - if ( cause != null )
 - th = cause ;
 - }

 SINGLE
 if ( th instanceof HttpException )

remove dead code from ServletHandler and log ServletExceptions in warn instead of debug


<nb> public class RuntimeInit {
 Thread . setDefaultUncaughtExceptionHandler ( new UncaughtHandler ( ) ) ;

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - SystemProperties . set ( STRING0 ,
 - VMRuntime . getRuntime ( ) . vmLibrary ( ) ) ;
 -
 - COMMENT
 COMMENT
 COMMENT
 TimezoneGetter . setInstance ( new TimezoneGetter ( ) {
 <nb> public class SystemServer {
 private static native void nativeInit ( ) ;

 public static void main ( String [ ] args ) {
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + SystemProperties . set ( STRING0 ,
 + VMRuntime . getRuntime ( ) . vmLibrary ( ) ) ;
 +
 if ( System . currentTimeMillis ( ) < EARLIEST_SUPPORTED_TIME ) {
 SINGLE
 SINGLE

Move set of persist sys dalvik vm lib to SystemServer only


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

 + import NAMESPACE ;
 + import NAMESPACE ;
 +
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 + @ public
 + @ evolving
 @ target ( ElementType . TYPE )
 @ retention ( RetentionPolicy . RUNTIME )
 @ inherited
 public @ interface UDFType {
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 boolean deterministic ( ) default true ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 boolean stateful ( ) default false ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 boolean distinctLike ( ) default false ;

 COMMENT

add javadoc for UDFType annotation Thejas Nair reviewed by Lefty Leverenz Ashutosh Chauhan


<nb> public abstract class SSTable
 }
 catch ( Exception e )
 {
 - if ( ! STRING0 . equals ( name ) )
 + if ( ! STRING0 . equals ( name ) && ! STRING1 . equals ( name ) )
 logger . warn ( STRING2 , name , dir ) ;
 return null ;
 }

teach tryComponentFromFilename about backups dir


<nb> public final class StorageManagerInternal implements StorageManager , EntityDestr
 private Vector3i getChunkZipPosition ( Vector3i chunkPos ) {
 Vector3i result = new Vector3i ( chunkPos ) ;
 result . divide ( CHUNK_ZIP_DIM ) ;
 + if ( chunkPos . x < NUMBER0 ) {
 + result . x -= NUMBER1 ;
 + }
 + if ( chunkPos . y < NUMBER0 ) {
 + result . y -= NUMBER1 ;
 + }
 + if ( chunkPos . z < NUMBER0 ) {
 + result . z -= NUMBER1 ;
 + }
 return result ;
 }

Changed the algorithm for chunk zip naming to prevent an oversized zip for chunks around the origin


<nb> public class DocumentMapperParser extends AbstractIndexComponent {
 throw new MapperParsingException ( STRING0 , e ) ;
 }

 + if ( root . keySet ( ) . size ( ) == NUMBER0 ) {
 + throw new MapperParsingException ( STRING1 ) ;
 + }
 +
 SINGLE
 if ( root . keySet ( ) . size ( ) != NUMBER1 ) {
 throw new MapperParsingException ( STRING2 ) ;

Improved error message when the mapping document is malformed


<nb> public class Blur {
 public static Bitmap rs ( View view , BlurFactor factor ) {
 view . setDrawingCacheEnabled ( true ) ;
 view . destroyDrawingCache ( ) ;
 + view . setDrawingCacheQuality ( View . DRAWING_CACHE_QUALITY_LOW ) ;
 Bitmap cache = view . getDrawingCache ( ) ;
 Bitmap bitmap = rs ( view . getContext ( ) , cache , factor ) ;
 cache . recycle ( ) ;


<nb> public class Checkstyle extends SourceTask implements VerificationTask , Reportin
 private TextResource config ;
 private Map < String , Object > configProperties = new LinkedHashMap < String , Object > ( ) ;
 private final CheckstyleReports reports ;
 - private booleana ignoreFailures ;
 + private boolean ignoreFailures ;
 private boolean showViolations = true ;


<nb>
 package NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;

 - import NAMESPACE ;

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

 - import NAMESPACE ;
 import NAMESPACE ;

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

 + import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 <nb> public class PivotTest {
 long colIndexAge ;
 long colIndexHired ;

 - PivotTest ( ) {
 + @ beforetest
 + public void setup ( ) {
 +
 colIndexSex = t . addColumn ( ColumnType . STRING , STRING0 ) ;
 colIndexAge = t . addColumn ( ColumnType . INTEGER , STRING1 ) ;
 colIndexHired = t . addColumn ( ColumnType . BOOLEAN , STRING2 ) ;


<nb> public class ODocument extends ORecordAbstract implements Iterable < Entry < String ,
 map . put ( entry . getKey ( ) , entry . getValue ( ) ) ;
 }
 continue ;
 - } else if ( OMultiValue . isMultiValue ( value ) ) {
 + } else if ( OMultiValue . isMultiValue ( value ) && ! ( value instanceof ORidBag ) ) {
 for ( Object item : OMultiValue . getMultiValueIterable ( otherValue ) ) {
 if ( ! OMultiValue . contains ( value , item ) )
 OMultiValue . add ( value , item ) ;


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

Improved documentation on how an event is processed in ChannelPipeline


<nb> public class Roster implements ConnectionListener {
 COMMENT
 COMMENT
 COMMENT
 - private void fireRosterChangedEvent ( Collection addedEntries , Collection updatedEntries ,
 - Collection deletedEntries )
 + private void fireRosterChangedEvent ( Collection < String > addedEntries , Collection < String > updatedEntries ,
 + Collection < String > deletedEntries )
 {
 for ( RosterListener listener : rosterListeners ) {
 if ( ! addedEntries . isEmpty ( ) ) {
 <nb> public interface RosterListener {
 COMMENT
 COMMENT
 COMMENT
 - public void entriesAdded ( Collection addresses ) ;
 + public void entriesAdded ( Collection < String > addresses ) ;

 COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 - public void entriesUpdated ( Collection addresses ) ;
 + public void entriesUpdated ( Collection < String > addresses ) ;

 COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 - public void entriesDeleted ( Collection addresses ) ;
 + public void entriesDeleted ( Collection < String > addresses ) ;

 COMMENT
 COMMENT


<nb> public class Mongo {
 COMMENT
 COMMENT
 @ deprecated
 - public static final int MINOR_VERSION = NUMBER0 ;
 + public static final int MINOR_VERSION = NUMBER1 ;

 - private static final String FULL_VERSION = STRING0 ;
 + private static final String FULL_VERSION = STRING1 ;

 static int cleanerIntervalMS ;


<nb> public class DeepLearningModel extends SupervisedModel < DeepLearningModel , DeepLea
 ModelMetrics valid_metrics ;
 double run_time ;

 + public String toString ( ) {
 + StringBuilder sb = new StringBuilder ( ) ;
 + sb . append ( model_summary . toString ( ) ) ;
 + sb . append ( scoring_history . toString ( ) ) ;
 + if ( variable_importances != null ) sb . append ( variable_importances . toString ( ) ) ;
 + return sb . toString ( ) ;
 + }
 +
 @ override public ModelCategory getModelCategory ( ) {
 return autoencoder ? ModelCategory . AutoEncoder : super . getModelCategory ( ) ;
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ReactWebViewManager extends SimpleViewManager < WebView > {
 webView . getSettings ( ) . setBuiltInZoomControls ( true ) ;
 webView . getSettings ( ) . setDisplayZoomControls ( false ) ;

 + SINGLE
 + webView . setLayoutParams (
 + new LayoutParams ( LayoutParams . MATCH_PARENT ,
 + LayoutParams . MATCH_PARENT ) ) ;
 +
 if ( ReactBuildConfig . DEBUG && Build . VERSION . SDK_INT >= Build . VERSION_CODES . KITKAT ) {
 WebView . setWebContentsDebuggingEnabled ( true ) ;
 }

Fix broken fullscreen modals due to zero body height


<nb> public class MaterialSheetFab < FAB extends View & AnimatedFab > {
 protected int anchorY ;
 private boolean isShowing ;
 private boolean isHiding ;
 - private boolean isFabLaidOut ;
 private boolean hideSheetAfterSheetIsShown ;

 SINGLE
 <nb> public class MaterialSheetFab < FAB extends View & AnimatedFab > {
 . addOnGlobalLayoutListener ( new ViewTreeObserver . OnGlobalLayoutListener ( ) {
 @ override
 public void onGlobalLayout ( ) {
 + SINGLE
 + MaterialSheetFab . this . fab . getViewTreeObserver ( )
 + . removeGlobalOnLayoutListener ( this ) ;
 SINGLE
 - if ( ! isFabLaidOut ) {
 - updateFabAnchor ( ) ;
 - isFabLaidOut = true ;
 - }
 + updateFabAnchor ( ) ;
 }
 } ) ;
 }

Fix FAB s global layout listener causing memory leaks


<nb> public class OpenSprinklerBinding extends AbstractActiveBinding < OpenSprinklerBin
 String stationItemName = findFirstMatchingItemName ( station ) ;
 logger . debug ( STRING0 + stationItemName ) ;

 - if ( stationItemName != null ) {
 + if ( stationItemName != null && openSprinkler != null ) {
 if ( openSprinkler . isStationOpen ( station ) ) {
 eventPublisher . postUpdate ( stationItemName , OnOffType . ON ) ;
 } else {

Fixed null pointer exception on OpenHab startup


<nb> import NAMESPACE ;
 import NAMESPACE ;

 public class MergeCommitsHighlighter implements VcsLogHighlighter {
 - private static final JBColor MERGE_COMMIT_FOREGROUND = new JBColor ( Gray . _192 , Gray . _96 ) ;
 + public static final JBColor MERGE_COMMIT_FOREGROUND = new JBColor ( Gray . _128 , Gray . _96 ) ;
 @ notnull private final VcsLogUiProperties myUiProperties ;
 @ notnull private final VcsLogDataHolder myDataHolder ;

 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class DeepComparator implements Disposable {
 @ notnull
 @ override
 public VcsCommitStyle getStyle ( int commitIndex , boolean isSelected ) {
 - return VcsCommitStyleFactory . foreground ( ! myNonPickedCommits . contains ( commitIndex ) ? JBColor . GRAY : null ) ;
 + return VcsCommitStyleFactory . foreground ( ! myNonPickedCommits . contains ( commitIndex ) ? MergeCommitsHighlighter . MERGE_COMMIT_FOREGROUND : null ) ;
 }
 } ;
 myUi . addHighlighter ( myHighlighter ) ;

vcs log merge commits and non picked commits use the same color


<nb> public class RcFilePageSourceFactory
 DateTimeZone hiveStorageTimeZone )
 {
 SINGLE
 - if ( false || ! isOptimizedReaderEnabled ( session , enabled ) ) {
 + if ( true || ! isOptimizedReaderEnabled ( session , enabled ) ) {
 return Optional . absent ( ) ;
 }

 <nb> public class TestHiveFileFormats
 }
 }

 - @ test
 + @ test ( enabled = false )
 public void testRcTextPageSource ( )
 throws Exception
 {
 <nb> public class TestHiveFileFormats
 }
 }

 + @ test ( enabled = false )
 public void testRcBinaryPageSource ( )
 throws Exception
 {


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class JetRunConfiguration extends ModuleBasedConfiguration < RunConfigurati
 }

 @ override
 + public void checkConfiguration ( ) throws RuntimeConfigurationException {
 + JavaParametersUtil . checkAlternativeJRE ( this ) ;
 + ProgramParametersUtil . checkWorkingDirectoryExist ( this , getProject ( ) , getConfigurationModule ( ) . getModule ( ) ) ;
 + JavaRunConfigurationExtensionManager . checkConfigurationIsValid ( this ) ;
 + }
 +
 + @ override
 public RunProfileState getState ( @ notnull Executor executor , @ notnull ExecutionEnvironment executionEnvironment )
 throws ExecutionException {
 JavaCommandLineState state = new MyJavaCommandLineState ( this , executionEnvironment ) ;

validate some of the settings in KotlinRunConfiguration


<nb> package NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 @ incubating
 public interface Event {
 +
 COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 long getEventTime ( ) ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + String getDescription ( ) ;
 +
 }

Root event consists of description and event time


<nb> public final class DaoConfig implements Cloneable {
 Field [ ] fields = propertiesClass . getDeclaredFields ( ) ;

 ArrayList < Property > propertyList = new ArrayList < Property > ( ) ;
 + final int modifierMask = Modifier . STATIC | Modifier . PUBLIC ;
 for ( Field field : fields ) {
 SINGLE
 - if ( ( field . getModifiers ( ) & Modifier . STATIC ) != NUMBER0 && ( field . getModifiers ( ) & Modifier . PUBLIC ) != NUMBER0 ) {
 + if ( ( field . getModifiers ( ) & modifierMask ) == modifierMask ) {
 Object fieldValue = field . get ( null ) ;
 if ( fieldValue instanceof Property ) {
 propertyList . add ( ( Property ) fieldValue ) ;

optimized modifier checking for Properties


<nb> public class JetElementImplStub < T extends StubElement > extends StubBasedPsiEleme

 @ override
 public String toString ( ) {
 - return getNode ( ) . getElementType ( ) . toString ( ) ;
 + return getElementType ( ) . toString ( ) ;
 }

 @ override


<nb> public abstract class AbstractConfigBuilder extends AbstractXmlConfigHelper {

 protected enum ConfigType {
 SERVER ( STRING0 ) ,
 - CLIENT ( STRING1 ) ;
 + CLIENT ( STRING1 ) ,
 + JET ( STRING2 ) ;

 final String name ;


<nb> public class DbQuery extends DbQueryBase {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 public void clearParameters ( ) {
 init ( ) ;
 if ( preparedStatement == null ) {


<nb> public class SwitchScreenPreference extends PreferenceScreen implements MenuPres
 if ( theme != ThemeManager . LIGHT ) {
 theme = ThemeManager . DARK ;
 }
 - LayoutInflater inflater = LayoutInflater . from ( getDialog ( ) . getContext ( ) , theme ) ;
 + LayoutInflater inflater = LayoutInflater . from ( getDialog ( ) . getContext ( ) , theme | PreferenceInit . THEME_FLAG ) ;
 View actionView = inflater . inflate ( R . layout . preference_widget_switch_screen_bar ) ;
 Switch switchView = ( Switch ) actionView . findViewById ( R . id . switchWidget ) ;
 switchView . setChecked ( mChecked ) ;

Use a preference theme for Switch widget in SwitchScreenPreference


<nb> public class VersionCompareTest extends TestCase {
 STRING0 , STRING1 , STRING2 , STRING3 ,
 STRING4 , STRING5 , STRING6
 ) ;
 + ascending ( STRING7 , STRING8 , STRING9 ) ;
 }

 public void testRubyPlugin ( ) {


<nb> public class BitmapText extends Node {
 attachChild ( textPages [ page ] ) ;
 }

 - setQueueBucket ( Bucket . Gui ) ;
 -
 this . font = font ;
 this . block = new StringBlock ( ) ;
 block . setSize ( font . getPreferredSize ( ) ) ;

Remove the line that puts all bitmap text into the


<nb> public class ProjectGenerator {

 List < String > scriptArguments = Lists . newArrayList ( ) ;
 for ( Path dir : assetCatalog . getDirs ( ) ) {
 + Path pathRelativeToProjectRoot = pathRelativizer . outputDirToRootRelative ( dir ) ;
 +
 resourcesGroup . getOrCreateFileReferenceBySourceTreePath (
 new SourceTreePath (
 PBXReference . SourceTree . SOURCE_ROOT ,
 - pathRelativizer . outputDirToRootRelative ( dir ) ) ) ;
 + pathRelativeToProjectRoot ) ) ;

 - Path pathRelativeToProjectRoot = MorePaths . relativize ( outputDirectory , dir ) ;
 LOG . debug (
 STRING0 ,
 dir , outputDirectory , pathRelativeToProjectRoot ) ;

Fix assertion error about mixed relative and absolute paths


<nb> public class PacketReaderTest extends SmackTestCase {
 return STRING0 ;
 }
 } ;
 - iqPacket . setTo ( getBareJID ( NUMBER0 ) ) ;
 + iqPacket . setTo ( getFullJID ( NUMBER0 ) ) ;
 iqPacket . setType ( IQ . Type . GET ) ;

 SINGLE
 <nb> public class ServiceDiscoveryManagerTest extends SmackTestCase {
 SINGLE
 assertTrue ( XHTMLManager . isServiceEnabled ( getConnection ( NUMBER1 ) ) ) ;
 assertTrue ( XHTMLManager . isServiceEnabled ( getConnection ( NUMBER0 ) ) ) ;
 - SINGLE
 - assertTrue ( XHTMLManager . isServiceEnabled ( getConnection ( NUMBER0 ) , getBareJID ( NUMBER1 ) ) ) ;
 + SINGLE
 + SINGLE
 + assertFalse ( XHTMLManager . isServiceEnabled ( getConnection ( NUMBER0 ) , getBareJID ( NUMBER1 ) ) ) ;
 + SINGLE
 + assertTrue ( XHTMLManager . isServiceEnabled ( getConnection ( NUMBER0 ) , getFullJID ( NUMBER1 ) ) ) ;

 SINGLE
 XHTMLManager . setServiceEnabled ( getConnection ( NUMBER1 ) , false ) ;


<nb> public class MediaSessionLegacyHelper {
 }

 public static MediaSessionLegacyHelper getHelper ( Context context ) {
 - if ( DEBUG ) {
 - Log . d ( TAG , STRING0 + context ) ;
 - }
 synchronized ( sLock ) {
 if ( sInstance == null ) {
 - sInstance = new MediaSessionLegacyHelper ( context ) ;
 + sInstance = new MediaSessionLegacyHelper ( context . getApplicationContext ( ) ) ;
 }
 }
 return sInstance ;

MediaSessionLegacyHelper uses global Application context


<nb>
 COMMENT
 COMMENT

 -
 package NAMESPACE ;

 COMMENT
 <nb> package NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 + @ deprecated
 public interface Key < T > extends Value , Comparable < T > {

 COMMENT

hotfix Add deprecation message to old Key interface


<nb> public class PhysicalWebCollection {
 pwsResultCallback . onPwsResultError ( urls , httpResponseCode , e ) ;
 }
 } ;
 - mPwsClient . resolve ( newUrls , augmentedCallback ) ;
 + if ( newUrls . size ( ) > NUMBER0 ) {
 + mPwsClient . resolve ( newUrls , augmentedCallback ) ;
 + }
 }


<nb> public class RemoteFile extends AbstractBuildRule {
 return builder
 . setReflectively ( STRING0 , isBuildTimeDownloadingOk )
 . setReflectively ( STRING1 , sha1 . toString ( ) )
 - . setReflectively ( STRING2 , output )
 + . setReflectively ( STRING2 , output . toString ( ) )
 . setReflectively ( STRING3 , uri . toString ( ) ) ;
 }

Add the name of the output of the RemoteFile rather than the file itself to the RemoteFile RuleKey


<nb> public class TableQueryColumn < Cursor , View , Query , Subtable > extends AbstractCol
 return STRING0 ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + public Query subtable ( ) {
 + return query ( getQuery ( ) . subtable ( columnIndex ) ) ;
 + }
 + COMMENT
 }


<nb> public class CropImageView extends ImageView {

 final int viewWidth = MeasureSpec . getSize ( widthMeasureSpec ) ;
 final int viewHeight = MeasureSpec . getSize ( heightMeasureSpec ) ;
 -
 +
 setMeasuredDimension ( viewWidth , viewHeight ) ;
 }

 <nb> public class CropImageView extends ImageView {

 @ override
 public void setImageBitmap ( Bitmap bitmap ) {
 - if ( this . mBitmap != null ) {
 + if ( this . mBitmap != null && this . mBitmap != bitmap ) {
 this . mBitmap . recycle ( ) ;
 this . mBitmap = null ;
 }


<nb> public class FavouritesActivity extends SherlockFragmentActivity {
 public void onCreate ( Bundle icicle ) {
 SINGLE
 SINGLE
 - requestWindowFeature ( Window . FEATURE_INDETERMINATE_PROGRESS ) ;
 + ( ( OsmandApplication ) getApplication ( ) ) . applyTheme ( this ) ;
 + requestWindowFeature ( Window . FEATURE_INDETERMINATE_PROGRESS ) ;
 getSherlock ( ) . setUiOptions ( ActivityInfo . UIOPTION_SPLIT_ACTION_BAR_WHEN_NARROW ) ;
 super . onCreate ( icicle ) ;
 setSupportProgressBarIndeterminateVisibility ( false ) ;

fixed issue with not applying light theme to favorites


<nb> public class JUnitResultAssert {
 COMMENT
 public void fails ( int expectedFailureCount , Class expectedException ) {
 if ( result . getFailures ( ) . size ( ) != expectedFailureCount ) {
 - throw new AssertionError ( STRING0 + expectedFailureCount + STRING1 + expectedFailureCount + STRING2 +
 + throw new AssertionError ( STRING0 + expectedFailureCount + STRING1 + result . getFailures ( ) . size ( ) + STRING2 +
 formatFailures ( result . getFailures ( ) ) ) ;
 }
 for ( Failure f : result . getFailures ( ) ) {


<nb> public class Factory implements FactoryOperations {
 SINGLE

 COMMENT
 + COMMENT
 + COMMENT
 + @ support
 + public static Field < BigDecimal > rand ( ) {
 + return new Rand ( ) ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class Factory implements FactoryOperations {
 return new CurrentUser ( ) ;
 }

 - COMMENT
 - COMMENT
 - COMMENT
 - @ support
 - public static Field < BigDecimal > rand ( ) {
 - return new Rand ( ) ;
 - }
 -
 SINGLE
 SINGLE
 SINGLE

Moved rand function from other to the mathematical functions


<nb> public class RequestCreator {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public RequestCreator fit ( ) {
 deferred = true ;


<nb> public class SvnInfoStructure {

 private SVNConflictAction parseConflictAction ( @ notnull String actionName ) {
 SVNConflictAction action = SVNConflictAction . fromString ( actionName ) ;
 - action = action == null ? ourConflictActions . get ( actionName ) : null ;
 + action = action != null ? action : ourConflictActions . get ( actionName ) ;

 if ( action == null ) {
 throw new IllegalArgumentException ( STRING0 + actionName ) ;
 <nb> public class SvnInfoStructure {

 private SVNConflictReason parseConflictReason ( @ notnull String reasonName ) throws SAXException {
 SVNConflictReason reason = SVNConflictReason . fromString ( reasonName ) ;
 - reason = reason == null ? ourConflictReasons . get ( reasonName ) : null ;
 + reason = reason != null ? reason : ourConflictReasons . get ( reasonName ) ;

 if ( reason == null ) {
 - throw new SAXException ( STRING1 + reason ) ;
 + throw new SAXException ( STRING1 + reasonName ) ;
 }

 return reason ;

Fixed conflict reason and conflict action parsing for info command


<nb> public class AtmosphereResourceImpl implements
 COMMENT
 public void setBroadcaster ( Broadcaster broadcaster ) {
 this . broadcaster = broadcaster ;
 - broadcaster . getBroadcasterConfig ( ) . setAtmosphereConfig ( config ) ;
 + if ( broadcaster != null ) {
 + broadcaster . getBroadcasterConfig ( ) . setAtmosphereConfig ( config ) ;
 + }
 }

 COMMENT


<nb> public final class ServerModel extends AbstractModel < ServerModel > {

 synchronized ( managementElement ) {
 if ( managementElement != null ) {
 + streamWriter . writeStartElement ( Element . MANAGEMENT . getLocalName ( ) ) ;
 managementElement . writeContent ( streamWriter ) ;
 }
 }


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

Fix missing EnableScheduling in documentation


<nb> public class NetworkBaseActivity extends BaseActivity implements NetworkView . Eve
 @ override
 protected FBTree getTreeByKey ( FBTree . Key key ) {
 final NetworkLibrary library = NetworkLibrary . Instance ( ) ;
 - return key != null ? library . getTreeByKey ( key ) : library . getRootTree ( ) ;
 + FBTree tree = null ;
 + if ( key != null ) {
 + tree = library . getTreeByKey ( key ) ;
 + }
 + return tree != null ? tree : library . getRootTree ( ) ;
 }

 @ override


<nb> public final class Annotation implements Comparable < Annotation > {
 boolean has_changes = false ;
 for ( Map . Entry < String , Boolean > entry : changed . entrySet ( ) ) {
 if ( entry . getValue ( ) ) {
 - System . out . println ( entry . getKey ( ) ) ;
 has_changes = true ;
 break ;
 }

Fix left over System out println in Annotation java


<nb> public class WebAppClassLoaderTest
 SINGLE
 URL webappWebInfLibAcme = new URI ( STRING0 + testWebappDir . resolve ( STRING1 ) . toUri ( ) . toASCIIString ( ) + STRING2 ) . toURL ( ) ;
 URL webappWebInfClasses = testWebappDir . resolve ( STRING3 ) . toUri ( ) . toURL ( ) ;
 - URL targetTestClasses = MavenTestingUtils . getTargetDir ( ) . toPath ( ) . resolve ( STRING4 ) . toUri ( ) . toURL ( ) ;
 + SINGLE
 + URL targetTestClasses = this . getClass ( ) . getClassLoader ( ) . getResource ( STRING5 ) ;

 _context . setParentLoaderPriority ( false ) ;
 dump ( _context ) ;

Using parent classloader as expected value


<nb> class ImapFolderPusher extends ImapFolder implements UntaggedHandler {
 if ( flagMsg >= msgSeq ) {
 flagIter . remove ( ) ;
 if ( flagMsg > msgSeq ) {
 - newSeqs . add ( flagMsg -- ) ;
 + newSeqs . add ( flagMsg ) ;
 }
 }
 }


<nb> public class StringUtil {
 return indexOf ( s , c , start , end ) >= NUMBER0 ;
 }

 + public static boolean containsWhitespaces ( @ nullable CharSequence s ) {
 + if ( s == null ) return false ;
 +
 + for ( int i = NUMBER0 ; i < s . length ( ) ; i ++ ) {
 + if ( Character . isWhitespace ( s . charAt ( i ) ) ) return true ;
 + }
 + return false ;
 + }
 +
 public static int indexOf ( @ notnull CharSequence s , char c ) {
 return indexOf ( s , c , NUMBER0 , s . length ( ) ) ;
 }


<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 ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public final class TaskEditFragment extends Fragment implements

 SINGLE
 setHasOptionsMenu ( true ) ;
 - getSupportActivity ( ) . getSupportActionBar ( ) . setDisplayHomeAsUpEnabled (
 - true ) ;

 AstridActivity activity = ( AstridActivity ) getActivity ( ) ;
 if ( activity instanceof TaskListActivity && activity . fragmentLayout == AstridActivity . LAYOUT_DOUBLE ) {

Removed an unused line of code in task edit fragment


<nb> public class ZLAndroidApplicationWindow extends ZLApplicationWindow {
 public void setToggleButtonState ( ButtonItem item ) {
 SINGLE
 }
 +
 + public void setFullscreen ( boolean fullscreen ) {
 + SINGLE
 + }
 +
 + public boolean isFullscreen ( ) {
 + SINGLE
 + return false ;
 + }
 }


<nb>
 COMMENT
 package NAMESPACE ;

 + import static NAMESPACE ;
 +
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ZooClient extends AbstractZooKeeperManager
 throw new ZooKeeperException ( STRING0 , e ) ;
 }
 SINGLE
 + if ( getSingleRootPath ( zooKeeper ) != null ) throw new RuntimeException ( STRING1 ) ;
 try
 {
 byte data [ ] = new byte [ NUMBER0 ] ;
 <nb> public final class LocalhostZooKeeperCluster
 if ( ! success ) shutdown ( ) ;
 }
 }
 +
 + public static LocalhostZooKeeperCluster standardZoo ( Class < ? > owningTest )
 + {
 + return new LocalhostZooKeeperCluster ( owningTest , NUMBER1 , NUMBER2 , NUMBER3 ) ;
 + }

 private void await ( ZooKeeper [ ] keepers , long timeout , TimeUnit unit )
 {

Prevents multiple roots from being created until we ve fixed this for real


<nb> public class GitBlit implements ServletContextListener {
 COMMENT
 COMMENT
 public boolean supportsCredentialChanges ( UserModel user ) {
 - return ( user != null && user . isLocalAccount ( ) ) || userService . supportsCredentialChanges ( ) ;
 + if ( user == null ) {
 + return false ;
 + } else if ( ! Constants . EXTERNAL_ACCOUNT . equals ( user . password ) ) {
 + SINGLE
 + return userService . supportsCredentialChanges ( ) ;
 + } else {
 + SINGLE
 + return false ;
 + }
 }

 COMMENT

Disallow credential changes for container authenticated sessions


<nb> public class VertexProgramScanJob < M > implements VertexScanJob {

 @ override
 public void workerIterationStart ( TitanGraph graph , Configuration config , ScanMetrics metrics ) {
 - vertexProgram . workerIterationStart ( memory ) ; SINGLE
 + vertexProgram . workerIterationStart ( memory . asImmutable ( ) ) ;
 }

 @ override

VertexProgramScanJob needed an immutableMemory


<nb> public class LocalInspectionsPass extends ProgressableTextEditorHighlightingPass
 if ( severity == HighlightSeverity . ERROR ) {
 type = new HighlightInfoType . HighlightInfoTypeImpl ( severity , HighlightInfoType . WRONG_REF . getAttributesKey ( ) ) ;
 }
 - if ( severity == HighlightSeverity . WARNING ) {
 + else if ( severity == HighlightSeverity . WARNING ) {
 type = new HighlightInfoType . HighlightInfoTypeImpl ( severity , CodeInsightColors . INFO_ATTRIBUTES ) ;
 }
 else {


<nb>

 package NAMESPACE ;

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

 COMMENT
 COMMENT
 <nb> public final class OryxApplication extends Application {
 log . info ( STRING0 , packages ) ;
 Reflections reflections = new Reflections ( packages ) ;
 Set < Class < ? > > classes = reflections . getTypesAnnotatedWith ( Path . class ) ;
 + Set < Class < ? > > providerClasses = reflections . getTypesAnnotatedWith ( Provider . class ) ;
 + classes . addAll ( providerClasses ) ;
 log . info ( STRING1 , classes ) ;
 return classes ;
 }

Adding Provider classes to be loaded into Application Context


<nb> public class SettingsActivity extends PreferenceActivity implements OnPreference
 registerListPreference ( osmandSettings . METRIC_SYSTEM , screen , entries , MetricsConstants . values ( ) ) ;

 SINGLE
 - entrieValues = new String [ ] { STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 , STRING7 , STRING8 , STRING9 , STRING10 , STRING11 , STRING12 , STRING13 } ;
 + entrieValues = new String [ ] { STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING6 , STRING7 , STRING8 , STRING5 , STRING14 , STRING9 , STRING10 , STRING11 , STRING12 , STRING13 } ;
 entries = new String [ entrieValues . length ] ;
 entries [ NUMBER0 ] = getString ( R . string . system_locale ) ;
 for ( int i = NUMBER1 ; i < entries . length ; i ++ ) {


<nb> public class SlopPurgeJob extends DataMaintenanceJob {
 return STRING0 ;
 }

 - @ jmxgetter ( name = STRING1 , description = STRING2 )
 + @ jmxgetter ( name = STRING1 , description = STRING3 )
 public synchronized long getSlopsPurged ( ) {
 return totalKeysUpdated + numKeysUpdatedThisRun . get ( ) ;
 }


<nb> public class OverlayCustomizationActivity extends ActionBarActivity {
 Overlay overlay = new Overlay ( )
 . setBackgroundColor ( Color . parseColor ( STRING0 ) )
 . disableClick ( true )
 - . setStyle ( Overlay . Style . Rectangle ) ;
 + . setStyle ( Overlay . Style . Rectangle )
 + . setOnClickListener ( new View . OnClickListener ( ) {
 + @ override
 + public void onClick ( View v ) {
 + mTutorialHandler . cleanUp ( ) ;
 + }
 + } ) ;

 SINGLE
 mTutorialHandler = TourGuide . init ( this ) . with ( TourGuide . Technique . Click )
 <nb> public class OverlayCustomizationActivity extends ActionBarActivity {
 Toast . makeText ( mActivity , STRING1 , Toast . LENGTH_LONG ) . show ( ) ;
 }
 } ) ;
 +
 button . setOnClickListener ( new View . OnClickListener ( ) {
 @ override
 public void onClick ( View view ) {

EXAMPLE Added Overlay onClicklistener example


<nb> public class RootsCache {
 mRecentsRoot . authority = null ;
 mRecentsRoot . rootId = null ;
 mRecentsRoot . derivedIcon = R . drawable . ic_root_recent ;
 + mRecentsRoot . derivedType = RootInfo . TYPE_RECENTS ;
 mRecentsRoot . flags = Root . FLAG_LOCAL_ONLY | Root . FLAG_SUPPORTS_CREATE
 | Root . FLAG_SUPPORTS_IS_CHILD ;
 mRecentsRoot . title = mContext . getString ( R . string . root_recent ) ;

Fix the position of the Recents root in DocumentsUI


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

Change link to OrderingExplained to GitHub location


<nb> public class Observable < T > {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class Observable < T > {
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 @ experimental
 public Single < T > toSingle ( ) {

Improve toSingle javadoc diagram see also since annotation


<nb> public class RegisterNewProfiles {
 public void start ( ) {
 TimeProfiler profiler = new TimeProfiler ( LOGGER ) . start ( STRING0 ) ;
 session = sessionFactory . getSession ( ) ;
 +
 + SINGLE
 + session . getEntityManager ( ) . clear ( ) ;
 +
 ListMultimap < String , RulesProfile > profilesByLanguage = loadDefinitions ( ) ;
 for ( String language : profilesByLanguage . keySet ( ) ) {
 List < RulesProfile > profiles = profilesByLanguage . get ( language ) ;

Fix loading of rules during registration of Q profiles MySQL only


<nb> public class FileDataStorageManager {
 String filePath = STRING0 ;
 for ( OCShare share : shares ) {
 if ( filePath != share . getPath ( ) ) {
 + filePath = share . getPath ( ) ;
 resetShareFlagInAFile ( filePath ) ;
 operations = prepareRemoveSharesInFile ( filePath , operations ) ;
 - filePath = share . getPath ( ) ;
 }
 }

 <nb> public class FileDataStorageManager {
 Log_OC . e ( TAG , STRING1 + e . getMessage ( ) ) ;

 } catch ( RemoteException e ) {
 - Log_OC . e ( TAG , STRING2 + e . getMessage ( ) ) ;
 +
 }
 }


<nb> public class JetFormattingModelBuilder implements FormattingModelBuilder {
 JetCodeStyleSettings jetSettings = settings . getCustomSettings ( JetCodeStyleSettings . class ) ;
 CommonCodeStyleSettings jetCommonSettings = settings . getCommonSettings ( JetLanguage . INSTANCE ) ;

 - return new SpacingBuilder ( settings )
 + return new SpacingBuilder ( settings , JetLanguage . INSTANCE )
 SINGLE
 . after ( NAMESPACE_HEADER ) . blankLines ( NUMBER0 )


<nb> public abstract class NanoHTTPD {

 private final int myPort ;

 - private ServerSocket myServerSocket ;
 + private volatile ServerSocket myServerSocket ;

 private SSLServerSocketFactory sslServerSocketFactory ;


<nb> public class FastQueue < E > {
 elements [ size ++ ] = e ;
 }

 - @ suppresswarnings ( STRING0 )
 public E poll ( ) {
 for ( ; ; ) {
 if ( drainedElements == null ) {
 <nb> public class FastQueue < E > {
 }

 if ( index < drainedElementCount ) {
 - return ( E ) drainedElements [ index ++ ] ;
 + return cast ( drainedElements [ index ++ ] ) ;
 }

 drainedElements = null ;
 }
 return null ;
 }
 +
 + @ suppresswarnings ( STRING0 )
 + private E cast ( Object o ) {
 + return ( E ) o ;
 + }
 }

Isolated unchecked cast warning from FastQueue poll


<nb> public abstract class PackageManager {

 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 @ sdkconstant ( SdkConstantType . FEATURE )
 public static final String FEATURE_AUDIO_PRO = STRING0 ;

CDD for pro audio feature does not specify acoustics


<nb> import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;

 COMMENT
 COMMENT
 <nb> public class SharedGroupManager implements Closeable {

 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 public static boolean compact ( RealmConfiguration configuration ) {
 SharedGroup sharedGroup = null ;
 <nb> public class SharedGroupManager implements Closeable {
 configuration . getEncryptionKey ( ) ) ;
 result = sharedGroup . compact ( ) ;
 } catch ( Exception e ) {
 + RealmLog . i ( e . getMessage ( ) ) ;
 return false ;
 } finally {
 if ( sharedGroup != null ) {


<nb> public interface Tree < T > extends Traversable < T > {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 @ suppresswarnings ( STRING0 )
 @ safevarargs
 - static < T > Tree < T > of ( T . . . nodes ) {
 - Objects . requireNonNull ( nodes , STRING1 ) ;
 - List < T > list = List . of ( nodes ) ;
 + static < T > Tree < T > of ( T . . . values ) {
 + Objects . requireNonNull ( values , STRING2 ) ;
 + List < T > list = List . of ( values ) ;
 return list . isEmpty ( ) ? Empty . instance ( ) : new Node < > ( list . head ( ) , list . tail ( ) . map ( Tree : : of ) ) ;
 }

Rename Tree of param from nodes to values


<nb> public class WebView extends AbsoluteLayout
 WebViewCore . ViewState viewState = draw . mViewState ;
 boolean isPictureAfterFirstLayout = viewState != null ;
 if ( isPictureAfterFirstLayout ) {
 + SINGLE
 + mLastWidthSent = NUMBER0 ;
 mZoomManager . onFirstLayout ( draw ) ;
 if ( ! mDrawHistory ) {
 setContentScrollTo ( viewState . mScrollX , viewState . mScrollY ) ;

Fix the initial reflow width when switch between basic pages


<nb>
 - package NAMESPACE ;
 + package NAMESPACE ;

 import NAMESPACE ;


<nb> public class MasterClient extends CommunicationProtocol implements Master , Chann
 {
 channel = channelFuture . getChannel ( ) ;
 System . out . println ( STRING0 ) ;
 + break ;
 }
 else
 {


<nb> public class RepeatingActivity implements Closeable
 {
 if ( log != null )
 {
 - log . add ( ActivityLog . Type . ERROR , STRING0 , e ) ;
 + log . add ( ActivityLog . Type . ERROR , String . format ( STRING1 , actualActivity . getClass ( ) . getSimpleName ( ) ) , e ) ;
 }
 }
 reQueue ( ) ;

Include activity class name in log message


<nb> public final class VcsConfiguration implements PersistentStateComponent < Element >
 private final PerformInBackgroundOption myCheckoutOption = new CheckoutInBackgroundOption ( ) ;
 private final PerformInBackgroundOption myAddRemoveOption = new AddRemoveInBackgroundOption ( ) ;

 - private VcsConfiguration ( ) {
 - }
 -
 public VcsConfiguration ( final Project project ) {
 myProject = project ;
 }


<nb>

 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> class ItemManaged {
 return adapter ;
 }

 + @ targetapi ( NUMBER0 )
 void setAdapterOnView ( ListAdapter adapter ) {
 if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . HONEYCOMB ) {
 mAbsListView . setAdapter ( adapter ) ;

library Add TargetApi annotation on setAdapterOnView


<nb> public interface AgentBuilder {

 private static final ConcurrentMap < Nexus , Object > TYPE_INITIALIZERS = new ConcurrentHashMap < Nexus , Object > ( ) ;

 + @ suppresswarnings ( STRING0 )
 public static void initialize ( Class < ? > type )
 throws NoSuchMethodException , InvocationTargetException , IllegalAccessException {
 Object typeInitializer = TYPE_INITIALIZERS . remove ( new Nexus ( type ) ) ;
 <nb> public interface AgentBuilder {
 }
 }

 + @ suppresswarnings ( STRING0 )
 public static void register ( String name , ClassLoader classLoader , Object typeInitializer ) {
 TYPE_INITIALIZERS . put ( new Nexus ( name , classLoader ) , typeInitializer ) ;
 }

Added annotations for voluntarily unused methods


<nb> public abstract class DebuggerUtilsEx extends DebuggerUtils {
 public static CodeFragmentFactory getCodeFragmentFactory ( @ nullable PsiElement context , @ nullable FileType fileType ) {
 DefaultCodeFragmentFactory defaultFactory = DefaultCodeFragmentFactory . getInstance ( ) ;
 if ( fileType == null ) {
 - return defaultFactory ;
 + if ( context == null ) {
 + return defaultFactory ;
 + }
 + else {
 + fileType = context . getContainingFile ( ) . getFileType ( ) ;
 + }
 }
 for ( CodeFragmentFactory factory : ApplicationManager . getApplication ( ) . getExtensions ( CodeFragmentFactory . EXTENSION_POINT_NAME ) ) {
 if ( factory != defaultFactory && factory . getFileType ( ) . equals ( fileType ) && factory . isContextAccepted ( context ) ) {


<nb> public class FinalLocalVariableCheck extends Check
 break ;
 }
 case TokenTypes . VARIABLE_DEF :
 - if ( aAST . getParent ( ) . getType ( ) != TokenTypes . OBJBLOCK ) {
 + if ( aAST . getParent ( ) . getType ( ) != TokenTypes . OBJBLOCK
 + && aAST . getParent ( ) . getType ( ) != TokenTypes . FOR_EACH_CLAUSE )
 + {
 insertVariable ( aAST ) ;
 }
 break ;
 <nb> abstract class AbstractClass
 {
 public abstract void abstractMethod ( int aParam ) ;
 }
 +
 + class Blah
 + {
 + static
 + {
 + for ( int a : some . getInts ( ) )
 + {
 +
 + }
 + }
 + }

Fixed bug where local variables to for each clauses where flagged as requiring the final modifier


<nb> public class DirectoryIndexTest extends IdeaTestCase {
 checkInfo ( myLibSrcDir , myModule , true , true , STRING0 , null , myModule , myModule3 ) ;

 checkInfo ( myResDir , myModule , true , false , STRING0 , JavaResourceRootType . RESOURCE , myModule ) ;
 +
 + SINGLE
 + SINGLE
 }

add to DirectoryIndexTest the controversial library exclude inside module content


<nb> public class TaskExecution extends ContinuousOperation {
 return state . getSkipped ( ) ? state . getSkipMessage ( ) : ( state . getDidWork ( ) ) ? STRING0 : NO_WORK_MESSAGE ;
 }

 + public TaskState getState ( ) {
 + return state ;
 + }
 +
 public TaskExecution completed ( TaskState state ) {
 this . state = state ;
 return this ;

Profile report added some stuff needed by discovery I removed it earlier accidentally


<nb> public class SctpWorker extends NioWorker {
 selector , channel . getRawInterestOps ( ) , channel ) ;
 }

 + } else {
 + setInterestOps ( channel , succeededFuture ( channel ) , channel . getRawInterestOps ( ) ) ;
 }
 if ( future != null ) {
 ( ( SctpChannelImpl ) channel ) . setConnected ( ) ;

Correct handle interestedOps changes in Sctp


<nb> public class LoggingConfiguration {
 public Optional < String > getLogFormat ( ) {
 return Optional . fromNullable ( logFormat ) ;
 }
 +
 + public void setLogFormat ( String logFormat ) {
 + this . logFormat = logFormat ;
 + }
 }

 public static class FileConfiguration {


<nb> public class ParseCompressedAndXLSTest extends TestUtil {
 if ( k1 != null ) k1 . delete ( ) ;
 }
 }
 -
 - @ test public void testMixedCSVXLS ( ) {
 - Frame k1 = null ;
 - try {
 - NFSFileVec nfs1 = NFSFileVec . make ( find_test_file ( STRING0 ) ) ;
 - NFSFileVec nfs2 = NFSFileVec . make ( find_test_file ( STRING1 ) ) ;
 - k1 = ParseDataset . parse ( Key . make ( ) , nfs1 . _key , nfs2 . _key ) ;
 - assertEquals ( NUMBER0 , k1 . numCols ( ) ) ;
 - assertEquals ( NUMBER1 , k1 . numRows ( ) ) ;
 - } finally {
 - if ( k1 != null ) k1 . delete ( ) ;
 - }
 - }
 }

Remove test for behavior we don t want to support


<nb> public class ASTddply extends ASTOp {
 public Group ( int len ) { _ds = new double [ len ] ; }
 public Group ( double ds [ ] ) { _ds = ds ; _hash = hash ( ) ; }
 SINGLE
 - public void fill ( int row , Chunk chks [ ] , long cols [ ] ) {
 + public Group fill ( int row , Chunk chks [ ] , long cols [ ] ) {
 for ( int c = NUMBER0 ; c < cols . length ; c ++ ) SINGLE
 _ds [ c ] = chks [ ( int ) cols [ c ] ] . atd ( row ) ; SINGLE
 _hash = hash ( ) ;
 + return this ;
 }
 private int hash ( ) {
 long h = NUMBER0 ; SINGLE


<nb> public class RuntimeExpressionResolver extends ExpressionResolverImpl {
 String expression = node . asString ( ) ;
 if ( expression . length ( ) > NUMBER0 ) {
 expression = expression . substring ( NUMBER1 , expression . length ( ) - NUMBER1 ) ;
 - if ( vaultReader . isVaultFormat ( expression ) ) {
 + if ( vaultReader != null && vaultReader . isVaultFormat ( expression ) ) {
 node . set ( vaultReader . retrieveFromVault ( expression ) ) ;
 }
 }


<nb> public class SecondaryReadTest extends TestCase {
 SINGLE
 for ( int idx = NUMBER0 ; idx < INSERT_COUNT ; idx ++ ) {
 final ObjectId id = ObjectId . get ( ) ;
 - System . err . println ( STRING0 + id + STRING1 ) ;
 WriteResult writeResult = pCol . insert ( new BasicDBObject ( STRING2 , id ) , WriteConcern . REPLICAS_SAFE ) ;
 - System . err . println ( STRING3 ) ;
 writeResult . getLastError ( ) . throwOnError ( ) ;
 insertedIds . add ( id ) ;
 }


<nb> public class JmeSystem {
 SINGLE
 SINGLE

 - JmeFormatter formatter = new JmeFormatter ( ) ;
 + SINGLE
 SINGLE
 SINGLE
 SINGLE

 - Handler consoleHandler = new ConsoleHandler ( ) ;
 - consoleHandler . setFormatter ( formatter ) ;
 - Logger . getLogger ( STRING0 ) . removeHandler ( Logger . getLogger ( STRING1 ) . getHandlers ( ) [ NUMBER0 ] ) ;
 - Logger . getLogger ( STRING2 ) . removeHandler ( Logger . getLogger ( STRING1 ) . getHandlers ( ) [ NUMBER0 ] ) ;
 - Logger . getLogger ( STRING0 ) . addHandler ( consoleHandler ) ;
 - Logger . getLogger ( STRING2 ) . addHandler ( consoleHandler ) ;
 + SINGLE
 + SINGLE

 - SINGLE
 + SINGLE
 + SINGLE
 }
 SINGLE
 SINGLE


<nb> public class PartitionTask extends AbstractTask {

 SINGLE
 DistributionPattern dpReader = null ;
 - switch ( config . getInputShipStrategy ( NUMBER0 ) ) {
 + switch ( config . getInputShipStrategy ( NUMBER1 ) ) {
 case FORWARD :
 SINGLE
 dpReader = new PointwiseDistributionPattern ( ) ;

Used correct shipping strategy for reading data in partitioner


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 +
 + import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class AsyncSPDYConnection extends AbstractConnection implements AsyncConn
 }
 finally
 {
 + buffer . limit ( jettyBuffer . putIndex ( ) ) ;
 buffer . position ( jettyBuffer . getIndex ( ) ) ;
 }


<nb> public final class CollapsePropertiesTest extends CompilerTestCase {
 }

 @ override public CompilerPass getProcessor ( Compiler compiler ) {
 - System . err . println ( compiler . getCodingConvention ( ) ) ;
 return new CollapseProperties ( compiler , true ) ;
 }

Remove a print statement that I accidentally left in a test


<nb> public class AutoBackupFragment extends Fragment implements OnTaskFinishedListen

 SINGLE
 boolean autoBackupEnabled = AdvancedSettings . isAutoBackupEnabled ( getContext ( ) ) ;
 - containerSettings . setVisibility ( View . VISIBLE ) ;
 + containerSettings . setVisibility ( autoBackupEnabled ? View . VISIBLE : View . GONE ) ;
 switchAutoBackup . setChecked ( autoBackupEnabled ) ;
 switchAutoBackup . setOnCheckedChangeListener ( new OnCheckedChangeListener ( ) {
 @ override

Properly hide auto backup settings if it is disabled


<nb> public class Liquibase {
 COMMENT
 public final void dropAll ( CatalogAndSchema . . . schemas ) throws DatabaseException {
 if ( schemas == null || schemas . length == NUMBER0 ) {
 - schemas = new CatalogAndSchema [ ] { new CatalogAndSchema ( getDatabase ( ) . getDefaultCatalogName ( ) , getDatabase ( ) . getDefaultSchemaName ( ) ) }
 + schemas = new CatalogAndSchema [ ] { new CatalogAndSchema ( getDatabase ( ) . getDefaultCatalogName ( ) , getDatabase ( ) . getDefaultSchemaName ( ) ) } ;
 }

 DropAllCommand dropAll = ( DropAllCommand ) CommandFactory . getInstance ( ) . getCommand ( STRING0 ) ;

Put back Liquibase dropAll to call DropAllCommand


<nb> public class GrailsDomainClassMappingContext extends AbstractMappingContext {
 return null ;
 }

 - @ override
 public IdentityMapping getIdentityMapping ( ClassMapping classMapping ) {
 return null ;
 }

remove Override from GrailsDomainClassMappingContext getIdentityMapping ClassMapping


<nb> public class PennTreebankLanguagePack extends AbstractTreebankLanguagePack {
 return new EnglishGrammaticalStructureFactory ( puncFilter ) ;
 } else {
 return new UniversalEnglishGrammaticalStructureFactory ( puncFilter ) ;
 - }
 + }
 }

 @ override
 <nb> public class PennTreebankLanguagePack extends AbstractTreebankLanguagePack {
 return new EnglishGrammaticalStructureFactory ( puncFilter , hf ) ;
 } else {
 return new UniversalEnglishGrammaticalStructureFactory ( puncFilter , hf ) ;
 - }
 + }
 }

 @ override
 <nb> public class PennTreebankLanguagePack extends AbstractTreebankLanguagePack {
 COMMENT
 @ override
 public HeadFinder typedDependencyHeadFinder ( ) {
 - return new SemanticHeadFinder ( this , true ) ;
 + if ( generateOriginalDependencies ) {
 + return new SemanticHeadFinder ( this , true ) ;
 + } else {
 + return new UniversalSemanticHeadFinder ( this , true ) ;
 + }
 }


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

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

 + @ runwith ( HazelcastParallelClassRunner . class )
 + @ category ( { QuickTest . class , ParallelTest . class } )
 public class PortableUtilsTest extends HazelcastTestSupport {

 @ rule

Added missing annotations to PortableUtilsTest


<nb> import NAMESPACE ;
 public class SpringApplication {

 COMMENT
 + COMMENT
 + COMMENT
 + public static final String BANNER_LOCATION_PROPERTY_VALUE = STRING0 ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + public static final String BANNER_LOCATION_PROPERTY = STRING1 ;
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class SpringApplication {
 }

 private Banner selectBanner ( Environment environment ) {
 - String location = environment . getProperty ( STRING1 , STRING0 ) ;
 + String location = environment . getProperty ( BANNER_LOCATION_PROPERTY , BANNER_LOCATION_PROPERTY_VALUE ) ;
 ResourceLoader resourceLoader = this . resourceLoader != null ? this . resourceLoader
 : new DefaultResourceLoader ( getClassLoader ( ) ) ;
 Resource resource = resourceLoader . getResource ( location ) ;


<nb> public class DefaultAsyncSupportResolver implements AsyncSupportResolver {
 . newInstance ( config ) ;
 } catch ( final Exception e ) {
 logger . warn ( STRING0 , targetClass , e ) ;
 +
 Throwable cause = e . getCause ( ) ;
 if ( cause != null ) {
 - logger . error ( STRING1 , targetClass , cause ) ;
 + logger . error ( STRING2 , cause . getMessage ( ) , cause ) ;
 }
 return null ;
 }
 <nb> public class DefaultAsyncSupportResolver implements AsyncSupportResolver {
 logger . error ( STRING0 , targetClassFQN , e ) ;
 Throwable cause = e . getCause ( ) ;
 if ( cause != null ) {
 - logger . error ( STRING1 , targetClassFQN , cause ) ;
 + logger . error ( STRING2 , cause . getMessage ( ) , cause ) ;
 }
 throw new IllegalArgumentException ( STRING3 + targetClassFQN , e ) ;
 }


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

 import NAMESPACE ;


<nb> public class SimpleHostConnectionPoolTest {
 config . setMaxConnsPerHost ( NUMBER0 ) ;
 config . setInitConnsPerHost ( NUMBER1 ) ;
 config . setConnectTimeout ( NUMBER2 ) ;
 + config . initialize ( ) ;
 return config ;
 }


<nb> public class CommentDetailFragment extends Fragment implements NotificationFragm
 COMMENT
 public static CommentDetailFragment newInstanceForRemoteNoteComment ( final String noteId ) {
 CommentDetailFragment fragment = newInstance ( noteId ) ;
 - fragment . setShouldRequestCommentFromNote ( ) ;
 + fragment . enableShouldRequestCommentFromNote ( ) ;
 return fragment ;
 }

 <nb> public class CommentDetailFragment extends Fragment implements NotificationFragm
 showComment ( ) ;
 }

 - private void setShouldFocusReplyField ( ) {
 + private void disableShouldFocusReplyField ( ) {
 mShouldFocusReplyField = false ;
 }

 - private void setShouldRequestCommentFromNote ( ) {
 + private void enableShouldRequestCommentFromNote ( ) {
 mShouldRequestCommentFromNote = true ;
 }

 <nb> public class CommentDetailFragment extends Fragment implements NotificationFragm
 AniUtils . animateBottomBar ( mLayoutReply , true ) ;
 if ( mEditReply != null && mShouldFocusReplyField ) {
 mEditReply . requestFocus ( ) ;
 - setShouldFocusReplyField ( ) ;
 + disableShouldFocusReplyField ( ) ;
 }
 }


<nb> public class AppOpsManager {
 android . Manifest . permission . WRITE_CALL_LOG ,
 android . Manifest . permission . READ_CALENDAR ,
 android . Manifest . permission . WRITE_CALENDAR ,
 - null , SINGLE
 android . Manifest . permission . ACCESS_WIFI_STATE ,
 + null , SINGLE
 null , SINGLE
 android . Manifest . permission . CALL_PHONE ,
 android . Manifest . permission . READ_SMS ,

Fix App Ops permission mapping structure


<nb> class CallbackReference extends WeakReference {
 if ( m . getParameterTypes ( ) . length > Function . MAX_NARGS ) {
 String msg = STRING0
 + STRING1 + m ;
 - throw new IllegalArgumentException ( msg ) ;
 + throw new UnsupportedOperationException ( msg ) ;
 }
 return m ;
 }
 <nb> public class Function extends Pointer {
 result = invokeObject ( callingConvention , args ) ;
 if ( result != null
 && ! returnType . isAssignableFrom ( result . getClass ( ) ) ) {
 - throw new IllegalArgumentException ( STRING2 + returnType
 - + STRING3
 - + result . getClass ( ) ) ;
 + throw new ClassCastException ( STRING2 + returnType
 + + STRING3
 + + result . getClass ( ) ) ;
 }
 }
 else {


<nb> import NAMESPACE ;
 public class CustomSwipeToRefreshRefreshActivity extends ActionBarActivity implements ActionMode . Callback {

 CustomUltimateRecyclerview ultimateRecyclerView ;
 - SimpleAdapter simpleRecyclerViewAdapter = null ;
 + SimpleScaleInAnimationAdapter simpleRecyclerViewAdapter = null ;
 LinearLayoutManager linearLayoutManager ;
 int moreNum = NUMBER0 ;
 private ActionMode actionMode ;
 <nb> public class CustomSwipeToRefreshRefreshActivity extends ActionBarActivity imple
 ultimateRecyclerView = ( CustomUltimateRecyclerview ) findViewById ( R . id . custom_ultimate_recycler_view ) ;
 ultimateRecyclerView . setHasFixedSize ( false ) ;
 List < String > stringList = new ArrayList < > ( ) ;
 - simpleRecyclerViewAdapter = new SimpleAdapter ( stringList ) ;
 + simpleRecyclerViewAdapter = new SimpleScaleInAnimationAdapter ( stringList ) ;

 stringList . add ( STRING0 ) ;
 stringList . add ( STRING1 ) ;

add SimpleScaleInAnimationAdapter in CustomSwipeRefreshActivity


<nb> public abstract class Es6CompilerTestCase extends CompilerTestCase {

 @ override
 protected void testExternChanges ( String extern , String input , String expectedExtern ) {
 - setAcceptedLanguage ( LanguageMode . ECMASCRIPT6 ) ;
 - super . testExternChanges ( extern , input , expectedExtern ) ;
 - setAcceptedLanguage ( LanguageMode . ECMASCRIPT5 ) ;
 + testExternChanges ( extern , input , expectedExtern , LanguageMode . ECMASCRIPT6 ) ;
 + testExternChanges ( extern , input , expectedExtern , LanguageMode . ECMASCRIPT5 ) ;
 + }
 +
 + protected void testExternChanges ( String extern , String input ,
 + String expectedExtern , LanguageMode lang ) {
 + setAcceptedLanguage ( lang ) ;
 super . testExternChanges ( extern , input , expectedExtern ) ;
 }
 }

Added Languagemode selection overload to addExtern


<nb> public class RefreshFolderOperation extends RemoteOperation {
 SINGLE
 mLocalFolder = mStorageManager . getFileByPath ( mLocalFolder . getRemotePath ( ) ) ;

 - SINGLE
 - OCFile remoteFolder = FileStorageUtils . fillOCFile ( ( RemoteFile ) folderAndFiles . get ( NUMBER0 ) ) ;
 - remoteFolder . setParentId ( mLocalFolder . getParentId ( ) ) ;
 - remoteFolder . setFileId ( mLocalFolder . getFileId ( ) ) ;
 -
 Log_OC . d ( TAG , STRING0 + mLocalFolder . getRemotePath ( )
 + STRING1 ) ;

 <nb> public class RefreshFolderOperation extends RemoteOperation {
 updatedFile . setParentId ( mLocalFolder . getFileId ( ) ) ;

 SINGLE
 - SINGLE
 localFile = localFilesMap . remove ( remoteFile . getRemotePath ( ) ) ;

 SINGLE
 <nb> public class RefreshFolderOperation extends RemoteOperation {
 }

 SINGLE
 + OCFile remoteFolder = mStorageManager . getFileByPath ( ( ( RemoteFile ) folderAndFiles . get ( NUMBER0 ) ) . getRemotePath ( ) ) ;
 mStorageManager . saveFolder ( remoteFolder , updatedFiles , localFilesMap . values ( ) ) ;

 mChildren = updatedFiles ;

Save local folder instead a new OCFile from remote data


<nb> public class TransitIndex {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 @ get
 @ path ( STRING0 )
 <nb> public class TransitIndex {
 @ queryparam ( STRING1 ) Boolean extended , @ queryparam ( STRING2 ) String routerId )
 throws JSONException {

 - time /= NUMBER0 ;
 -
 AgencyAndId firstStop = null ;
 if ( stopId != null ) {
 firstStop = new AgencyAndId ( stopAgency , stopId ) ;

shifted another transit index method to seconds


<nb> import NAMESPACE ;
 public class LoggingFactory {
 SINGLE
 public static void bootstrap ( ) {
 + bootstrap ( Level . WARN ) ;
 + }
 +
 + public static void bootstrap ( Level level ) {
 hijackJDKLogging ( ) ;

 final Logger root = getCleanRoot ( ) ;
 <nb> public class LoggingFactory {
 formatter . start ( ) ;

 final ThresholdFilter filter = new ThresholdFilter ( ) ;
 - filter . setLevel ( Level . WARN . toString ( ) ) ;
 + filter . setLevel ( level . toString ( ) ) ;
 filter . start ( ) ;

 final ConsoleAppender < ILoggingEvent > appender = new ConsoleAppender < > ( ) ;

Add level parameter for logging bootstrap


<nb> public class NoExecutionVariableScope implements VariableScope {
 return null ;
 }

 - @ suppresswarnings ( STRING0 )
 + @ override
 + public < T > T getVariable ( String variableName , Class < T > variableClass ) {
 + return null ;
 + }
 +
 + @ override
 + public < T > T getVariableLocal ( String variableName , Class < T > variableClass ) {
 + return null ;
 + }
 +
 + @ suppresswarnings ( STRING0 )
 public Set < String > getVariableNames ( ) {
 return Collections . EMPTY_SET ;
 }

Add implementation with nulls for NoExecutionVariableScope


<nb> public class GremlinPluginFunctionalTest implements GraphHolder
 assertTrue ( response . indexOf ( STRING0 ) > response . indexOf ( STRING1 ) ) ;
 }

 - SINGLE
 @ test
 - @ ignore
 public void testLineBreaks ( ) throws UnsupportedEncodingException
 {
 - String payload = STRING2 ;
 + SINGLE
 + SINGLE
 + String payload = STRING3 ;
 String response = gen . get ( )
 . expectedStatus ( Status . OK . getStatusCode ( ) )
 . payload ( JSONPrettifier . parse ( payload ) )

setting up an example of multiline script from Java


<nb> public class BaseObject3D extends ATransformable3D implements Comparable < BaseObj

 protected boolean mRenderChildrenAsBatch = false ;
 protected boolean mIsPartOfBatch = false ;
 + protected boolean mManageMaterial = true ;

 protected boolean mEnableBlending = false ;
 protected int mBlendFuncSFactor ;
 <nb> public class BaseObject3D extends ATransformable3D implements Comparable < BaseObj
 COMMENT
 public void reload ( ) {
 if ( ! mIsContainerOnly ) {
 - mMaterial . reload ( ) ;
 + if ( mManageMaterial )
 + mMaterial . reload ( ) ;
 mGeometry . reload ( ) ;
 }

 <nb> public class BaseObject3D extends ATransformable3D implements Comparable < BaseObj
 this . mIsPartOfBatch = isPartOfBatch ;
 }

 + public boolean getManageMaterial ( )
 + {
 + return mManageMaterial ;
 + }
 +
 + public void setManageMaterial ( boolean manageMaterial )
 + {
 + this . mManageMaterial = manageMaterial ;
 + }
 +
 public void setBlendingEnabled ( boolean value ) {
 mEnableBlending = value ;
 }

Added mManageMaterial to specify whether a BaseObject3D will reload its


<nb> public class NaviActivityLifecycleTest {
 HashSet < Event < ? > > notEnoughEvents = new HashSet < > ( ) ;
 notEnoughEvents . add ( Event . CREATE ) ;
 NaviComponent badHandler = new NaviEmitter ( notEnoughEvents ) ;
 + SINGLE
 NaviLifecycle . createActivityLifecycleProvider ( badHandler ) ;
 }

 <nb> public class NaviFragmentLifecycleTest {
 HashSet < Event < ? > > notEnoughEvents = new HashSet < > ( ) ;
 notEnoughEvents . add ( Event . ATTACH ) ;
 NaviComponent badHandler = new NaviEmitter ( notEnoughEvents ) ;
 + SINGLE
 NaviLifecycle . createFragmentLifecycleProvider ( badHandler ) ;
 }

 <nb> final class TestUtil {
 COMMENT
 COMMENT
 COMMENT
 - static final void cleanGarbage ( ) {
 + static void cleanGarbage ( ) {
 System . gc ( ) ;
 try {
 Thread . sleep ( NUMBER0 ) ;
 <nb> final class Functions {
 return true ;
 }

 + SINGLE
 Exceptions . propagate ( throwable ) ;
 return false ;
 }


<nb> public class NewChunk extends Chunk {
 boolean floatOverflow = false ;
 assert checkCnt ( ) ;

 - if ( _naCnt == _len ) SINGLE
 + byte mode = type ( ) ;
 + if ( mode == AppendableVec . NA ) SINGLE
 return new C0DChunk ( Double . NaN , _len ) ;
 + for ( int i = NUMBER0 ; i < _len ; i ++ )
 + if ( mode == AppendableVec . ENUM && ! isEnum ( i ) ||
 + mode == AppendableVec . NUMBER && isEnum ( i ) )
 + setNA_impl ( i ) ;
 + if ( mode == AppendableVec . NUMBER ) _strCnt = NUMBER0 ;
 + assert checkCnt ( ) ;

 SINGLE
 SINGLE


<nb> final class CameraConfigurationManager {
 SINGLE
 SINGLE
 private static final int MIN_PREVIEW_PIXELS = NUMBER0 * NUMBER1 ; SINGLE
 - private static final int MAX_PREVIEW_PIXELS = NUMBER2 * NUMBER3 ; SINGLE
 + private static final int MAX_PREVIEW_PIXELS = NUMBER4 * NUMBER5 ; SINGLE

 private final Context context ;
 private Point screenResolution ;

Allow selection of larger preview size keep max reticle size the same