<nb> public abstract class Tree extends AbstractCollection < Tree > implements Label , La
 COMMENT
 COMMENT
 public boolean dominates ( Tree t ) {
 - return ! ( dominationPath ( t ) == null ) ;
 + List < Tree > dominationPath = dominationPath ( t ) ;
 + return dominationPath != null && dominationPath . size ( ) > NUMBER0 ;
 }

 COMMENT
 <nb> public class TreeTest extends TestCase {
 assertEquals ( STRING0 , t . toString ( ) ) ;
 }

 +
 + public void testDominates ( ) {
 + Tree t = Tree . valueOf ( STRING1 ) ;
 + assertFalse ( t . dominates ( t ) ) ;
 +
 + for ( Tree child : t . children ( ) ) {
 + assertTrue ( t . dominates ( child ) ) ;
 + assertFalse ( child . dominates ( t ) ) ;
 + }
 + }
 }

Fix Tree dominates to match the documentation


<nb> public class AntElementNameReference extends AntGenericReference {
 }
 else {
 AntTask task = ( AntTask ) element ;
 - if ( task . isMacroDefined ( ) || task . isPresetDefined ( ) ) {
 + if ( task . isMacroDefined ( ) || task . isPresetDefined ( ) || task . isTypeDefined ( ) ) {
 final XmlAttribute attr = getAttribute ( ) ;
 if ( attr == null ) {
 - SINGLE
 + SINGLE
 task . getSourceElement ( ) . setName ( newElementName ) ;
 }
 else {

handle rename of type defined elements as well along with macro defined and preset defined


<nb> public class StringUtils {
 System . out . println ( STRING0 + key + STRING1 + flagArgs ) ;
 for ( String flagArg : flagArgs )
 result . putAll ( propFileToTreeMap ( flagArg , existingArgs ) ) ;
 - i ++ ;
 +
 existingArgs . clear ( ) ;
 } else
 existingArgs . put ( key , join ( flagArgs , STRING2 ) ) ;


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

 - SINGLE
 + SINGLE
 +
 + SINGLE

 SINGLE

 - SINGLE
 + SINGLE

 @ singleton
 public class SatelliteManager implements CloseHandler < Window >


<nb> public class EditorFragmentComponent extends JPanel {
 int endLine ,
 boolean showFolding , boolean showGutter ) {
 final EditorEx editorEx = ( EditorEx ) editor ;
 + final Color old = editorEx . getBackroundColor ( ) ;
 Color backColor = getBackgroundColor ( editor ) ;
 editorEx . setBackgroundColor ( backColor ) ;
 EditorFragmentComponent fragmentComponent = new EditorFragmentComponent ( editorEx , startLine , endLine ,
 showFolding , showGutter ) ;
 fragmentComponent . setBackground ( backColor ) ;

 - editorEx . resetBackgourndColor ( ) ;
 + editorEx . setBackgroundColor ( old ) ;
 return fragmentComponent ;
 }

 <nb> public final class EditorImpl extends UserDataHolderBase implements EditorEx , Hi
 }

 public void setBackgroundColor ( Color color ) {
 + if ( getBackgroundIgnoreForced ( ) . equals ( color ) ) {
 + myForcedBackground = null ;
 + return ;
 + }
 +
 myForcedBackground = color ;
 }

preserve console background when a folded fragment is hovered


<nb> public enum JingleAction
 TRANSPORT_REPLACE ( STRING0 ) ,

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 - ADDSOURCE ( STRING1 ) ;
 + ADDSOURCE ( STRING1 ) ,
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + REMOVESOURCE ( STRING2 ) ;

 COMMENT
 COMMENT


<nb> public class StringTools {
 xml . append ( STRING0 + match . getMessage ( ) + STRING1 ) ;
 String context = Tools . getContext ( match . getFromPos ( ) , match . getToPos ( ) ,
 escapeXML ( text ) , contextSize , STRING2 , STRING3 ) ;
 + xml . append ( STRING4 ) ;
 + for ( String replacement : match . getSuggestedReplacements ( ) ) {
 + xml . append ( STRING5 ) ;
 + xml . append ( replacement ) ;
 + xml . append ( STRING6 ) ;
 + }
 + xml . append ( STRING7 ) ;
 xml . append ( STRING8 + context + STRING9 ) ;
 xml . append ( STRING10 ) ;
 i ++ ;


<nb> public class PhoneStatusBar extends StatusBar {
 mNavigationBarView =
 ( NavigationBarView ) View . inflate ( context , R . layout . navigation_bar , null ) ;

 + mNavigationBarView . setEnabled ( ( mDisabled & StatusBarManager . DISABLE_NAVIGATION ) == NUMBER0 ) ;
 +
 sb . setOnSystemUiVisibilityChangeListener (
 new View . OnSystemUiVisibilityChangeListener ( ) {
 @ override
 <nb> public class PhoneStatusBar extends StatusBar {
 mHandler . sendEmptyMessage ( MSG_CLOSE_RECENTS_PANEL ) ;
 }

 - mNavigationBarView . setEnabled ( ( state & StatusBarManager . DISABLE_NAVIGATION ) == NUMBER0 ) ;
 + if ( mNavigationBarView != null ) {
 + mNavigationBarView . setEnabled ( ( state & StatusBarManager . DISABLE_NAVIGATION ) == NUMBER0 ) ;
 + }
 }

 if ( ( diff & StatusBarManager . DISABLE_NOTIFICATION_ICONS ) != NUMBER0 ) {


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

 public abstract class ColumnInfo < Item , Aspect > {
 -
 - public static class StringColumn extends ColumnInfo < String , String > {
 - public StringColumn ( final String name ) {
 - super ( name ) ;
 - }
 -
 - @ override
 - public String valueOf ( final String item ) {
 - return item ;
 - }
 - }
 -
 private String myName ;
 public static final ColumnInfo [ ] EMPTY_ARRAY = new ColumnInfo [ NUMBER0 ] ;

remove unused class ColumnInfo StringColumn


<nb> public class WrappedContext implements Context {
 }

 @ override
 + public String getScheme ( ) {
 + return wrapped . getScheme ( ) ;
 + }
 +
 + @ override
 public String getRemoteAddr ( ) {
 return wrapped . getRemoteAddr ( ) ;
 }
 <nb> public class ContextImplTest {

 }

 - }
 + @ test
 + public void testGetScheme ( ) {
 + final String scheme = STRING0 ;
 + when ( httpServletRequest . getScheme ( ) ) . thenReturn ( scheme ) ;
 +
 + context . init ( servletContext , httpServletRequest , httpServletResponse ) ;
 +
 + assertEquals ( scheme , httpServletRequest . getScheme ( ) ) ;
 + }
 + }


<nb> import NAMESPACE ;
 public class OracleSelectParser extends SQLSelectParser {

 public OracleSelectParser ( String sql ) {
 - super ( sql ) ;
 + this ( new OracleLexer ( sql ) ) ;
 + this . lexer . nextToken ( ) ;
 }

 public OracleSelectParser ( Lexer lexer ) {


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


<nb> public class ProjectBuildFileParser implements AutoCloseable {
 } catch ( InterruptedException e ) {
 throw Throwables . propagate ( e ) ;
 }
 +
 + try {
 + synchronized ( this ) {
 + if ( pathToBuckPy . isPresent ( ) ) {
 + Files . delete ( pathToBuckPy . get ( ) ) ;
 + }
 + }
 + } catch ( IOException e ) {
 + SINGLE
 + }
 +
 }
 } finally {
 isClosed = true ;
 <nb> public class Parser {
 File buildFile ,
 Iterable < String > defaultIncludes )
 throws BuildFileParseException , BuildTargetException , IOException {
 - ProjectBuildFileParser projectBuildFileParser =
 - buildFileParserFactory . createParser ( defaultIncludes ) ;
 -
 - return parseBuildFile ( buildFile , defaultIncludes , projectBuildFileParser ) ;
 + try ( ProjectBuildFileParser projectBuildFileParser =
 + buildFileParserFactory . createParser ( defaultIncludes ) ) {
 + return parseBuildFile ( buildFile , defaultIncludes , projectBuildFileParser ) ;
 + }
 }

 COMMENT


<nb> public class Span implements Serializable , Iterable < Integer > {
 }

 public static Span fromValues ( Object . . . values ) {
 + if ( values . length == NUMBER0 ) {
 + return fromValues ( values [ NUMBER1 ] , values [ NUMBER1 ] instanceof Number ? ( ( Number ) values [ NUMBER1 ] ) . intValue ( ) + NUMBER0 : Integer . parseInt ( values [ NUMBER1 ] . toString ( ) ) + NUMBER0 ) ;
 + }
 if ( values . length != NUMBER2 ) { throw new IllegalArgumentException ( STRING0 ) ; }
 int val1 ;
 if ( values [ NUMBER1 ] instanceof Number ) { val1 = ( ( Number ) values [ NUMBER1 ] ) . intValue ( ) ; }
 <nb> public class EnglishGrammaticalRelations {
 SINGLE
 STRING1 ,
 STRING2 ,
 - SINGLE
 - STRING3 ,
 + SINGLE
 + STRING4 ,
 SINGLE
 SINGLE
 STRING5 ,

Tweaks to bulletproof the slotfilling validation code


<nb> public class StructuralReplaceTest extends IdeaTestCase {
 STRING0 +
 STRING1 +
 STRING2 +
 - STRING3 ;
 + STRING4 ;
 assertEquals (
 STRING5 ,
 expectedResult ,

Fixing test accordint to new xml formatter beheviour


<nb> import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public class EmbeddedDaemonClientServices extends DaemonClientServicesSupport {

 <nb> public class EmbeddedDaemonClientServices extends DaemonClientServicesSupport {

 public EmbeddedDaemonClientServices ( ) {
 this ( LoggingServiceRegistry . newCommandLineProcessLogging ( ) , false ) ;
 - add ( EmbeddedDaemonFactory . class , new EmbeddedDaemonFactory ( ) ) ;
 }

 private class EmbeddedDaemonFactory implements Factory < Daemon > {
 <nb> public class EmbeddedDaemonClientServices extends DaemonClientServicesSupport {
 public EmbeddedDaemonClientServices ( ServiceRegistry loggingServices , boolean displayOutput ) {
 super ( loggingServices ) ;
 this . displayOutput = displayOutput ;
 + add ( EmbeddedDaemonFactory . class , new EmbeddedDaemonFactory ( ) ) ;
 }

 protected DaemonRegistry createDaemonRegistry ( ) {

fixed problem where GradleDistributionExecuter run in embeddedDaemon mode couldn t find a Factory Daemon


<nb> public class HttpSessionContextIntegrationFilter implements InitializingBean , Fi

 public void doFilter ( ServletRequest request , ServletResponse response , FilterChain chain ) throws IOException ,
 ServletException {
 - if ( ( request != null ) && ( request . getAttribute ( FILTER_APPLIED ) != null ) ) {
 + if ( request . getAttribute ( FILTER_APPLIED ) != null ) {
 SINGLE
 chain . doFilter ( request , response ) ;

 <nb> public class HttpSessionContextIntegrationFilter implements InitializingBean , Fi

 request . setAttribute ( FILTER_APPLIED , Boolean . TRUE ) ;

 - SINGLE
 + SINGLE

 try {
 chain . doFilter ( request , response ) ;
 - } catch ( IOException ioe ) {
 - throw ioe ;
 - } catch ( ServletException se ) {
 - throw se ;
 }
 finally {
 SINGLE

Removed unnecessary check for a null request object


<nb> public class ThriftClusterImpl implements Cluster {
 KeyspaceDefinition ksDef = this . describeKeyspace ( keyspace ) ;
 ColumnFamilyDefinition cfDef = ksDef . getColumnFamily ( columnFamily ) ;
 if ( cfDef == null )
 - throw new NotFoundException ( String . format ( STRING0 , keyspace , columnFamily ) ) ;
 + throw new NotFoundException ( String . format ( STRING0 , columnFamily , keyspace ) ) ;

 Properties props = new Properties ( ) ;
 ThriftColumnFamilyDefinitionImpl thriftCfDef = ( ThriftColumnFamilyDefinitionImpl ) cfDef ;

Pass NotFoundException constructor args in the correct order


<nb> public class LevelRenderer implements ApplicationListener {
 float uSize = FLOAT0 / FLOAT1 ;
 float vSize = FLOAT0 / FLOAT1 ;

 - BufferedReader reader = new BufferedReader ( new InputStreamReader ( Gdx . files . readFile ( STRING0 , FileType . Internal ) ) ) ;
 + BufferedReader reader = new BufferedReader ( new InputStreamReader ( Gdx . files . internal ( STRING0 ) . read ( ) ) ) ;
 String line = reader . readLine ( ) ;
 String tokens [ ] = line . split ( STRING1 ) ;
 camera . getPosition ( ) . set ( Float . parseFloat ( tokens [ NUMBER0 ] ) , NUMBER0 , Float . parseFloat ( tokens [ NUMBER1 ] ) ) ;


<nb> public class PieRadarChartTouchListener extends SimpleOnGestureListener implemen
 } else {

 float angle = mChart . getAngleForPoint ( e . getX ( ) , e . getY ( ) ) ;
 +
 + if ( mChart instanceof PieChart ) {
 + angle /= mChart . getAnimator ( ) . getPhaseY ( ) ;
 + }
 +
 int index = mChart . getIndexForAngle ( angle ) ;

 SINGLE

Consider anim phase on pie taps for highlights


<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> package 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 ;

Remove unused imports of OptionalConfigurable


<nb> public class SqlScript {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public SqlScript ( String sqlScriptSource , DbSupport dbSupport ) {

Fixed javadoc for core dbSupport SqlScript


<nb> public class RecoverySettings extends AbstractComponent implements Closeable {
 rateLimiter = new SimpleRateLimiter ( maxBytesPerSec . mbFrac ( ) ) ;
 }

 - logger . debug ( STRING0 ,
 + logger . debug ( STRING1 ,
 maxBytesPerSec , concurrentStreams ) ;

 nodeSettingsService . addListener ( new ApplySettings ( ) ) ;
 <nb> public class RecoverySourceHandler {

 private void sendNextChunk ( long position , BytesArray content , boolean lastChunk ) throws IOException {
 final TransportRequestOptions chunkSendOptions = TransportRequestOptions . builder ( )
 - . withCompress ( false )
 + . withCompress ( false ) SINGLE
 . withType ( TransportRequestOptions . Type . RECOVERY )
 . withTimeout ( recoverySettings . internalActionTimeout ( ) )
 . build ( ) ;


<nb> class CursorImpl < R extends Record > implements Cursor < R > {

 @ override
 public final < E > E fetchOneInto ( Class < ? extends E > clazz ) {
 - return fetchOne ( ) . into ( clazz ) ;
 + R record = fetchOne ( ) ;
 + return record == null ? null : record . into ( clazz ) ;
 }

 @ override


<nb> class RelinkerRule extends AbstractBuildRule implements OverrideScheduleRule {
 @ override
 public ImmutableList < Step > getBuildSteps (
 BuildContext context ,
 - BuildableContext buildableContext ) {
 + final BuildableContext buildableContext ) {

 final ImmutableList . Builder < Step > relinkerSteps = ImmutableList . builder ( ) ;
 if ( isRelinkable ) {
 <nb> class RelinkerRule extends AbstractBuildRule implements OverrideScheduleRule {
 ImmutableSet < String > symbolsNeeded = readSymbolsNeeded ( ) ;
 if ( ! isRelinkable ) {
 getProjectFilesystem ( ) . copyFile ( getBaseLibPath ( ) , getLibFilePath ( ) ) ;
 + buildableContext . recordArtifact ( getLibFilePath ( ) ) ;
 } else {
 writeVersionScript ( symbolsNeeded ) ;
 for ( Step s : relinkerSteps . build ( ) ) {


<nb> public class ZygoteInit {
 private static boolean startSystemServer ( )
 throws MethodAndArgsCaller , RuntimeException {
 long capabilities = posixCapabilitiesAsBits (
 + OsConstants . CAP_BLOCK_SUSPEND ,
 OsConstants . CAP_KILL ,
 OsConstants . CAP_NET_ADMIN ,
 OsConstants . CAP_NET_BIND_SERVICE ,

enable CAP_BLOCK_SUSPEND capability for system server


<nb> public class MapperService extends AbstractIndexComponent implements Iterable < Do
 if ( mapper . type ( ) . charAt ( NUMBER0 ) == STRING0 ) {
 throw new InvalidTypeNameException ( STRING1 ) ;
 }
 + remove ( mapper . type ( ) ) ; SINGLE
 mappers = newMapBuilder ( mappers ) . put ( mapper . type ( ) , mapper ) . immutableMap ( ) ;
 mapper . addFieldMapperListener ( fieldMapperListener , true ) ;
 }

when replacing a mapping clear the aggregated mapping information and then readd it


<nb> public class GoStructureViewFactory implements PsiStructureViewFactory {
 @ nullable
 @ override
 public String getName ( ) {
 + if ( myElement instanceof GoNamedElement ) return ( ( GoNamedElement ) myElement ) . getName ( ) ;
 return myElement . getText ( ) ;
 }

 <nb> public class GoStructureViewFactory implements PsiStructureViewFactory {
 String appendix = type instanceof GoStructType || type instanceof GoInterfaceType ?
 STRING0 :
 ( type != null ? separator + GoPsiImplUtil . getText ( type ) : STRING0 ) ;
 - return ( ( GoTypeSpec ) myElement ) . getIdentifier ( ) . getText ( ) + appendix ;
 + return ( ( GoTypeSpec ) myElement ) . getName ( ) + appendix ;
 }
 else if ( myElement instanceof GoNamedElement ) {
 GoType type = ( ( GoNamedElement ) myElement ) . getGoType ( ) ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class MinecraftForge

 EVENT_BUS . register ( INTERNAL_HANDLER ) ;
 OreDictionary . getOreName ( NUMBER0 ) ;
 +
 + SINGLE
 + new CrashReport ( STRING0 , new Exception ( STRING1 ) ) ;
 }

 public static String getBrandingVersion ( )

Early define CrashReport classes to combat invalid crash details


<nb> static public void writeClassFile ( String internalName , byte [ ] bytecode ) throws E
 String path = genPath + File . separator + internalName + STRING0 ;
 File cf = new File ( path ) ;
 cf . createNewFile ( ) ;
 - OutputStream cfs = new FileOutputStream ( cf ) ;
 + FileOutputStream cfs = new FileOutputStream ( cf ) ;
 try
 {
 cfs . write ( bytecode ) ;
 + cfs . flush ( ) ;
 + cfs . getFD ( ) . sync ( ) ;
 }
 finally
 {


<nb> public class CmdServlet extends BaseServlet {
 }
 }
 }
 + res . setContentType ( STRING0 ) ;
 + res . getWriter ( ) . write ( STRING1 ) ;
 }

 <nb> public class WebAppServlet extends BaseServlet {
 result . append ( renderer . processPage ( renderer . getItemUIRegistry ( ) . getWidgetId ( w ) , sitemapName , label , children , async ) ) ;
 }

 + } else if ( widgetId . equals ( STRING2 ) ) {
 + result . append ( STRING1 ) ;
 }
 } catch ( RenderException e ) {
 throw new ServletException ( e . getMessage ( ) , e ) ;


<nb> public class ShiroSecurityProcessor extends DelegateAsyncProcessor {
 if ( token instanceof ShiroSecurityToken ) {
 ShiroSecurityToken sst = ( ShiroSecurityToken ) token ;
 encryptedToken = ShiroSecurityHelper . encrypt ( sst , policy . getPassPhrase ( ) , policy . getCipherService ( ) ) ;
 + SINGLE
 + exchange . getIn ( ) . removeHeader ( ShiroSecurityConstants . SHIRO_SECURITY_TOKEN ) ;
 + exchange . getIn ( ) . setHeader ( ShiroSecurityConstants . SHIRO_SECURITY_TOKEN , encryptedToken ) ;
 } else if ( token instanceof String ) {
 String data = ( String ) token ;
 if ( policy . isBase64 ( ) ) {

Favor storing the encrypted shiro token instead of unecrypted


<nb>
 package NAMESPACE ;

 + import NAMESPACE ;
 +
 import NAMESPACE ;

 import NAMESPACE ;
 <nb> public final class Jid {
 return resourcepart ;
 }

 + public static Jid fromSessionID ( SessionID id ) throws InvalidJidException {
 + if ( id . getUserID ( ) . isEmpty ( ) ) {
 + return Jid . fromString ( id . getAccountID ( ) ) ;
 + } else {
 + return Jid . fromString ( id . getAccountID ( ) + STRING0 + id . getUserID ( ) ) ;
 + }
 + }
 +
 public static Jid fromString ( final String jid ) throws InvalidJidException {
 return new Jid ( jid ) ;
 }


<nb> abstract class BaseWebFragment extends LazyLoadFragment
 ViewGroup . LayoutParams params = mWebView . getLayoutParams ( ) ;
 if ( isFullscreen ) {
 mScrollView . removeView ( mScrollViewContent ) ;
 + mWebView . scrollTo ( mScrollView . getScrollX ( ) , mScrollView . getScrollY ( ) ) ;
 mFullscreenView . addView ( mScrollViewContent ) ;
 params . height = ViewGroup . LayoutParams . MATCH_PARENT ;
 } else {
 reset ( ) ;
 - mWebView . pageUp ( true ) ;
 mFullscreenView . removeView ( mScrollViewContent ) ;
 mScrollView . addView ( mScrollViewContent ) ;
 + mScrollView . post ( ( ) - > mScrollView . scrollTo ( mWebView . getScrollX ( ) , mWebView . getScrollY ( ) ) ) ;
 params . height = ViewGroup . LayoutParams . WRAP_CONTENT ;
 }
 mWebView . setLayoutParams ( params ) ;

Retain scroll position when toggling fullscreen


<nb> public class WildcardTest extends TestCase {
 assertTrue ( Wildcard . matchPath ( STRING0 , STRING1 ) ) ;
 assertTrue ( Wildcard . matchPath ( STRING2 , STRING3 ) ) ;
 }
 +
 + public void testPaths ( ) {
 + assertTrue ( Wildcard . match ( STRING4 , STRING5 ) ) ;
 + assertTrue ( Wildcard . match ( STRING6 , STRING5 ) ) ;
 +
 + assertTrue ( Wildcard . matchPath ( STRING4 , STRING5 ) ) ;
 + assertTrue ( Wildcard . matchPath ( STRING7 , STRING5 ) ) ;
 + assertFalse ( Wildcard . matchPath ( STRING6 , STRING5 ) ) ;
 + assertTrue ( Wildcard . matchPath ( STRING6 , STRING8 ) ) ;
 + }
 }


<nb> public abstract class NetworkParameters implements Serializable {
 public static final String PAYMENT_PROTOCOL_ID_MAINNET = STRING0 ;
 COMMENT
 public static final String PAYMENT_PROTOCOL_ID_TESTNET = STRING1 ;
 + COMMENT
 + public static final String PAYMENT_PROTOCOL_ID_UNIT_TESTS = STRING2 ;

 SINGLE

 <nb> public abstract class NetworkParameters implements Serializable {
 return MainNetParams . get ( ) ;
 } else if ( pmtProtocolId . equals ( PAYMENT_PROTOCOL_ID_TESTNET ) ) {
 return TestNet3Params . get ( ) ;
 + } else if ( pmtProtocolId . equals ( PAYMENT_PROTOCOL_ID_UNIT_TESTS ) ) {
 + return UnitTestParams . get ( ) ;
 } else {
 return null ;
 }
 <nb> public class UnitTestParams extends NetworkParameters {

 @ override
 public String getPaymentProtocolId ( ) {
 - return null ;
 + return STRING2 ;
 }
 }

Give unit test params a payment protocol ID


<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 ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 - @ value.enclosing
 - @ buckstyleimmutable
 public class NdkCxxPlatforms {

 COMMENT


<nb> public class EditorSettingsExternalizable implements NamedJDOMExternalizable , Ex

 public boolean IS_BLOCK_CURSOR = false ;
 public boolean IS_WHITESPACES_SHOWN = false ;
 - public boolean IS_INDENT_GUIDES_SHOWN = false ;
 + public boolean IS_INDENT_GUIDES_SHOWN = true ;
 public boolean IS_ANIMATED_SCROLLING = true ;
 public boolean IS_CAMEL_WORDS = false ;
 public boolean ADDITIONAL_PAGE_AT_BOTTOM = false ;


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

 import NAMESPACE ;

 + @ suppresswarnings ( STRING0 )
 public interface FileStatus {
 COMMENT
 COMMENT


<nb> public class TestSVMLightRecordFactory {
 private String test_svm_light_positive_label = STRING0 ;
 private String test_svm_light_no_label = STRING1 ;

 + private String test_svm_light_zero_index = STRING2 ;

 @ test
 <nb> public class TestSVMLightRecordFactory {

 }

 +
 + @ test
 + public void testSVMLightRecordFactoryParseZeroIndex ( ) {
 +
 + int feature_size = NUMBER0 ;
 +
 + INDArray in_vector = Nd4j . create ( feature_size ) ;
 + INDArray out_vector = Nd4j . create ( NUMBER1 ) ;
 +
 + SVMLightRecordFactory recFactory = new SVMLightRecordFactory ( feature_size ) ;
 + try {
 + recFactory . parseFromLine ( test_svm_light_zero_index , in_vector , out_vector ) ;
 + } catch ( NumberFormatException e ) {
 + }
 +
 + assertEquals ( FLOAT0 , in_vector . getDouble ( NUMBER2 ) , FLOAT1 ) ;
 +
 +
 + }
 +
 +

 }


<nb> public interface HostedConnection extends MessageConnection
 public void close ( String reason ) ;

 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class DefaultServer implements Server

 public Object setAttribute ( String name , Object value )
 {
 + if ( value == null )
 + return sessionData . remove ( name ) ;
 return sessionData . put ( name , value ) ;
 }

Modified the setAttribute method to remove the attribute


<nb> public abstract class ChooseByNameBase {
 }

 myList . setVisibleRowCount ( Math . min ( VISIBLE_LIST_SIZE_LIMIT , myList . getModel ( ) . getSize ( ) ) ) ;
 - ListScrollingUtil . selectItem ( myList , Math . min ( selectionPos , myListModel . size ( ) - NUMBER0 ) ) ;
 + if ( myListModel . size ( ) > NUMBER1 ) {
 + ListScrollingUtil . selectItem ( myList , Math . min ( selectionPos , myListModel . size ( ) - NUMBER0 ) ) ;
 + }
 +
 if ( ! myCommands . isEmpty ( ) ) {
 myAlarm . addRequest ( this , DELAY ) ;
 }


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

remove obsolete function setPlaybackRate from comments


<nb> public class DefaultCommandLineConverterTest {
 private TestFile currentDir = testDir . file ( STRING0 ) ;
 private File expectedBuildFile ;
 private File expectedGradleUserHome = StartParameter . DEFAULT_GRADLE_USER_HOME ;
 - private File expectedDaemonRegistryDir = null ;
 + private File expectedDaemonRegistryDir ;
 private File expectedProjectDir = currentDir ;
 private List < String > expectedTaskNames = toList ( ) ;
 private Set < String > expectedExcludedTasks = toSet ( ) ;


<nb>

 package NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class MovieDetailsFragment extends Fragment {
 @ bind ( R . id . buttonMovieComments ) Button mCommentsButton ;
 @ bind ( R . id . progressBar ) View mProgressBar ;

 - @ targetapi ( Build . VERSION_CODES . JELLY_BEAN )
 @ override
 public View onCreateView ( LayoutInflater inflater , ViewGroup container ,
 Bundle savedInstanceState ) {
 <nb> public class MovieDetailsFragment extends Fragment {
 mCrewView . setVisibility ( View . GONE ) ;

 SINGLE
 - if ( AndroidUtils . isJellyBeanOrHigher ( ) ) {
 + if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . JELLY_BEAN ) {
 mMoviePosterBackground . setImageAlpha ( NUMBER0 ) ;
 } else {
 + SINGLE
 mMoviePosterBackground . setAlpha ( NUMBER0 ) ;
 }

Ignore deprecation of setAlpha in MovieDetailsFragment


<nb> public class Camera implements Savable , Cloneable {
 float ex = width * viewPortRight ;
 float sy = height * viewPortBottom ;
 float ey = height * viewPortTop ;
 - float xExtent = ( ex - sx ) / NUMBER0 ;
 - float yExtent = ( ey - sy ) / NUMBER0 ;
 + float xExtent = Math . max ( FLOAT0 , ( ex - sx ) / FLOAT1 ) ;
 + float yExtent = Math . max ( FLOAT0 , ( ey - sy ) / FLOAT1 ) ;
 guiBounding . setCenter ( new Vector3f ( sx + xExtent , sy + yExtent , NUMBER1 ) ) ;
 guiBounding . setXExtent ( xExtent ) ;
 guiBounding . setYExtent ( yExtent ) ;

Fixed IllegalArgumentException in Camera setGuiBounding


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

 - import NAMESPACE ;
 -
 COMMENT
 COMMENT
 COMMENT
 <nb> abstract class AbstractStreamingHashFunction implements HashFunction {
 }

 @ override
 - @ checkreturnvalue
 public final HashCode hash ( ) {
 munch ( ) ;
 buffer . flip ( ) ;
 <nb> import NAMESPACE ;

 import NAMESPACE ;

 - import NAMESPACE ;
 -
 COMMENT
 COMMENT
 COMMENT
 <nb> public interface Hasher extends PrimitiveSink {
 COMMENT
 COMMENT
 COMMENT
 - @ checkreturnvalue
 HashCode hash ( ) ;

 COMMENT
 <nb> public interface Hasher extends PrimitiveSink {
 COMMENT
 @ override
 @ deprecated
 - @ checkreturnvalue
 int hashCode ( ) ;
 }

Remove more unnecessary CheckReturnValues on APIs now that these packages are


<nb> public class SuggestedFixTest {
 }

 @ test
 - public void testInsertArguments_castInArguments ( ) {
 + public void testInsertArguments_beforeCastInArguments ( ) {
 String originalCode = STRING0 ;
 String expectedCode = STRING1 ;
 Compiler compiler = getCompiler ( originalCode ) ;
 <nb> public class SuggestedFixTest {
 }

 @ test
 + public void testInsertArguments_afterCastInArguments ( ) {
 + String originalCode = STRING0 ;
 + String expectedCode = STRING2 ;
 + Compiler compiler = getCompiler ( originalCode ) ;
 + Node root = compileToScriptRoot ( compiler ) ;
 + SuggestedFix fix = new SuggestedFix . Builder ( )
 + . insertArguments ( root . getFirstFirstChild ( ) , NUMBER0 , STRING3 )
 + . build ( ) ;
 + assertChanges ( fix , STRING4 , originalCode , expectedCode ) ;
 + }
 +
 + @ test
 public void testDeleteArgumentFirst ( ) {
 String originalCode = STRING5 ;
 String expectedCode = STRING6 ;

Add another test to make sure casts aren t removed


<nb> public class CompositeRecordReader < K , V > extends RecordReader < K , V >
 long localTotalSplitLength = NUMBER0 ;
 for ( int i = NUMBER0 ; i < numSplits ; i ++ ) {
 InputSplit split = splits . get ( i ) ;
 - recordReaders . add ( new DelayedRecordReader ( inputSplit , taskAttemptContext ) ) ;
 + recordReaders . add ( new DelayedRecordReader ( split , taskAttemptContext ) ) ;
 long splitLength = split . getLength ( ) ;
 splitLengths [ i ] = splitLength ;
 cumulativeSplitLengths [ i ] = localTotalSplitLength ;


<nb> public interface NativeLinkable extends HasBuildTarget {

 Iterable < ? extends NativeLinkable > getNativeLinkableExportedDeps ( CxxPlatform cxxPlatform ) ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 NativeLinkableInput getNativeLinkableInput ( CxxPlatform cxxPlatform , Linker . LinkableDepType type )
 throws NoSuchBuildTargetException ;

Add a bit of documentation to NativeLinkable


<nb> public class BrowseFragment extends android . support . v17 . leanback . app . BrowseFragm

 mRowsAdapter = new ArrayObjectAdapter ( lrp ) ;

 + SINGLE
 + SINGLE
 + final CardPresenter cardPresenter = new CardPresenter ( ) ;
 +
 for ( int i = NUMBER0 ; i < NUM_ROWS ; ++ i ) {
 - ArrayObjectAdapter listRowAdapter = new ArrayObjectAdapter ( new CardPresenter ( ) ) ;
 + ArrayObjectAdapter listRowAdapter = new ArrayObjectAdapter ( cardPresenter ) ;
 listRowAdapter . add ( STRING0 ) ;
 listRowAdapter . add ( STRING1 ) ;
 HeaderItem header = new HeaderItem ( i , STRING2 + i , null ) ;

Use a single card presenter instance so views get recycled


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


<nb> public class NettyAsyncHttpProvider extends SimpleChannelUpstreamHandler impleme
 return ;
 }

 - boolean redirectEnabled = request . isRedirectEnabled ( ) ? true : config . isRedirectEnabled ( ) ;
 + boolean redirectEnabled = request . isRedirectOverrideSet ( ) ? request . isRedirectEnabled ( ) : config . isRedirectEnabled ( ) ;
 if ( redirectEnabled && ( statusCode == NUMBER0 || statusCode == NUMBER1 || statusCode == NUMBER2 ) ) {

 if ( future . incrementAndGetCurrentRedirectCount ( ) < config . getMaxRedirects ( ) ) {


<nb> public final class VorbisUtilTest extends TestCase {
 assertEquals ( true , VorbisUtil . verifyVorbisHeaderCapturePattern ( NUMBER0 , header , false ) ) ;
 }

 - public void testVerifyVorbisHeaderCapturePatternInvalidHeader ( ) throws ParserException {
 + public void testVerifyVorbisHeaderCapturePatternInvalidHeader ( ) {
 ParsableByteArray header = new ParsableByteArray (
 new byte [ ] { NUMBER0 , STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 } ) ;
 try {
 <nb> public final class VorbisUtilTest extends TestCase {
 assertFalse ( VorbisUtil . verifyVorbisHeaderCapturePattern ( NUMBER1 , header , true ) ) ;
 }

 - public void testVerifyVorbisHeaderCapturePatternInvalidPattern ( ) throws ParserException {
 + public void testVerifyVorbisHeaderCapturePatternInvalidPattern ( ) {
 ParsableByteArray header = new ParsableByteArray (
 new byte [ ] { NUMBER0 , STRING6 , STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 } ) ;
 try {

Removed VorbisUtilTests throws declarations to avoid warning


<nb> public abstract class Neurons {
 int [ ] cats = MemoryManager . malloc4 ( _dinfo . _cats ) ; SINGLE
 int i = NUMBER0 , ncats = NUMBER0 ;
 for ( ; i < _dinfo . _cats ; ++ i ) {
 + assert ( _dinfo . _catMissing [ i ] != NUMBER0 ) ; SINGLE
 SINGLE
 if ( Double . isNaN ( data [ i ] ) ) {
 if ( _dinfo . _catMissing [ i ] != NUMBER0 ) cats [ ncats ++ ] = ( _dinfo . _catOffsets [ i + NUMBER1 ] - NUMBER1 ) ; SINGLE

Add assertion that we have categorical level for NAs even though there might not be any during training


<nb> public class TestEventBus {
 private Bus eventBus ;

 - @ beforeclass
 + @ beforeclass ( groups = STRING0 )
 public void setup ( ) {
 eventBus = new InMemoryBus ( ) ;
 eventBus . start ( ) ;
 }

 - @ afterclass
 + @ afterclass ( groups = STRING0 )
 public void tearDown ( ) {
 eventBus . stop ( ) ;
 }

add missing group in TestEventBus annotations


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;

 COMMENT
 COMMENT
 <nb> public class BuildCompat {
 COMMENT
 COMMENT
 public static boolean isAtLeastN ( ) {
 - return STRING0 . equals ( VERSION . CODENAME ) ;
 + if ( TextUtils . isEmpty ( VERSION . CODENAME ) ) {
 + return false ;
 + }
 + final char prefix = VERSION . CODENAME . charAt ( NUMBER0 ) ;
 + return prefix >= STRING1 && prefix <= STRING2 ;
 }
 }

Make BuildCompat isAtLeastN more forward compatible


<nb> public class OtrEngineHostImpl implements OtrEngineHost {
 public void showError ( SessionID sessionID , String error ) {
 OtrDebugLogger . log ( sessionID . toString ( ) + STRING0 + error ) ;

 - Toast . makeText ( mContext . getApplicationContext ( ) , STRING1 + error , Toast . LENGTH_LONG ) . show ( ) ;
 + if ( mImService != null )
 + mImService . showToast ( STRING2 + error , Toast . LENGTH_SHORT ) ;
 +

 }

 public void showWarning ( SessionID sessionID , String warning ) {
 OtrDebugLogger . log ( sessionID . toString ( ) + STRING3 + warning ) ;

 - Toast . makeText ( mContext . getApplicationContext ( ) , STRING4 + warning , Toast . LENGTH_LONG ) . show ( ) ;
 + if ( mImService != null )
 + mImService . showToast ( STRING5 + warning , Toast . LENGTH_SHORT ) ;
 +
 }


<nb> public abstract class AndroidRunningState implements RunProfileState , AndroidDeb

 private boolean myDeploy = true ;

 + private volatile boolean myApplicationDeployed = false ;
 +
 public void setDebugMode ( boolean debugMode ) {
 myDebugMode = debugMode ;
 }
 <nb> public abstract class AndroidRunningState implements RunProfileState , AndroidDeb
 if ( myDebugLauncher == null ) {
 return ;
 }
 + if ( myDeploy && ! myApplicationDeployed ) {
 + return ;
 + }
 IDevice device = client . getDevice ( ) ;
 if ( isMyDevice ( device ) && device . isOnline ( ) ) {
 if ( myTargetDeviceSerialNumbers . length == NUMBER0 ) {
 <nb> public abstract class AndroidRunningState implements RunProfileState , AndroidDeb
 if ( myDeploy ) {
 if ( ! uploadAndInstall ( device , myPackageName , myFacet ) ) return false ;
 if ( ! uploadAndInstallDependentModules ( device ) ) return false ;
 + myApplicationDeployed = true ;
 }
 if ( ! myApplicationLauncher . launch ( this , device ) ) return false ;
 synchronized ( myDebugLock ) {

do not attach debugger if application is not yet deployed


<nb> public class Socket extends Emitter {

 int type = HasBinary . hasBinary ( jsonArgs )
 ? Parser . BINARY_ACK : Parser . ACK ;
 - Packet < JSONArray > packet = new Packet < JSONArray > ( type , new JSONArray ( Arrays . asList ( args ) ) ) ;
 + Packet < JSONArray > packet = new Packet < JSONArray > ( type , jsonArgs ) ;
 packet . id = id ;
 self . packet ( packet ) ;
 }


<nb> import static NAMESPACE ;
 public class ComponentModelBasePlugin implements Plugin < ProjectInternal > {
 private final ModelRegistry modelRegistry ;
 private final ModelSchemaStore schemaStore ;
 - private final NodeInitializerRegistry nodeInitializerRegistry ;

 @ inject
 - public ComponentModelBasePlugin ( ModelRegistry modelRegistry , ModelSchemaStore schemaStore , NodeInitializerRegistry nodeInitializerRegistry ) {
 + public ComponentModelBasePlugin ( ModelRegistry modelRegistry , ModelSchemaStore schemaStore ) {
 this . modelRegistry = modelRegistry ;
 this . schemaStore = schemaStore ;
 - this . nodeInitializerRegistry = nodeInitializerRegistry ;
 }

 public void apply ( final ProjectInternal project ) {


<nb> public class WaypointHelper {
 return uiCtx . getResources ( ) . getDrawable (
 ! ( ( TargetPoint ) point ) . intermediate ? R . drawable . list_destination :
 R . drawable . list_intermediate ) ;
 - } else {
 + } else if ( type == FAVORITES || type == WAYPOINTS ) {
 return FavoriteImageDrawable . getOrCreate ( uiCtx , point . getColor ( ) ) ;
 + } else if ( type == ALARMS ) {
 + return null ;
 + } else {
 + return null ;
 }
 }


<nb> public class PersistentUtil {
 @ notnull
 private static File getStorageFile ( @ notnull String logId , @ notnull String logKind , int version ) {
 File subdir = new File ( LOG_CACHE , logKind ) ;
 - final File mapFile = new File ( subdir , PathUtilRt . suggestFileName ( logId , true , true ) + STRING0 + version ) ;
 + String safeLogId = PathUtilRt . suggestFileName ( logId , true , true ) ;
 + final File mapFile = new File ( subdir , safeLogId + STRING0 + version ) ;
 if ( ! mapFile . exists ( ) ) {
 - IOUtil . deleteAllFilesStartingWith ( new File ( subdir , logId ) ) ;
 + IOUtil . deleteAllFilesStartingWith ( new File ( subdir , safeLogId ) ) ;
 }
 return mapFile ;
 }

vcs log correctly delete old storage files


<nb> public class ApplicationImpl extends PlatformComponentManagerImpl implements App
 @ override
 public void init ( ) {
 loadComponents ( ) ;
 +
 + for ( ApplicationLoadListener listener : ApplicationLoadListener . EP_NAME . getExtensions ( ) ) {
 + try {
 + listener . beforeApplicationLoaded ( this ) ;
 + }
 + catch ( Exception e ) {
 + LOG . error ( e ) ;
 + }
 + }
 +
 super . init ( ) ;
 }


<nb> public abstract class AbstractDirectoriesDecorator implements Decorator {
 COMMENT
 COMMENT
 COMMENT
 - public AbstractDirectoriesDecorator ( Language language ) { SINGLE
 + public AbstractDirectoriesDecorator ( Language language ) {
 }

 COMMENT
 <nb> import NAMESPACE ;
 public class DefaultRule implements Rule {

 private final RuleKey key ;
 - private Integer id ;
 + private final Integer id ;
 private final String name , severity , description , metadata ;
 private final RuleStatus status ;
 private final Map < String , RuleParam > params ;
 <nb> public enum RuleStatus {
 public static RuleStatus defaultStatus ( ) {
 return READY ;
 }
 - }
 + }
 <nb> import NAMESPACE ;
 COMMENT
 @ entity
 @ table ( name = STRING0 )
 - @ deprecated
 public class ActiveRule implements Cloneable {

 public static final String INHERITED = STRING1 ;


<nb> public class TextIconGenerator {

 private static int getBackground ( int style ) {
 switch ( style ) {
 + default :
 case STYLE_DEFAULT :
 case STYLE_WHITE :
 return R . drawable . bubble_white ;
 <nb> public class TextIconGenerator {
 case STYLE_ORANGE :
 return R . drawable . bubble_orange ;
 }
 - return getBackground ( STYLE_DEFAULT ) ;
 }

 private static int getTextStyle ( int style ) {
 switch ( style ) {
 + default :
 case STYLE_DEFAULT :
 case STYLE_WHITE :
 return R . drawable . bubble_white ;
 <nb> public class TextIconGenerator {
 case STYLE_ORANGE :
 return R . style . Bubble_TextAppearance_Light ;
 }
 - return getTextStyle ( STYLE_DEFAULT ) ;
 }
 }


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class HeapKeyedStateBackend < K > extends AbstractKeyedStateBackend < K > {
 return STRING0 ;
 }

 - COMMENT
 - COMMENT
 - COMMENT
 - @ internal
 - @ deprecated
 - public Map < String , StateTable < K , ? , ? > > getStateTables ( ) {
 - return stateTables ;
 - }
 -
 @ deprecated
 private void restoreOldSavepointKeyedState (
 Collection < KeyGroupsStateHandle > stateHandles ) throws IOException , ClassNotFoundException {
 <nb> public class HeapKeyedStateBackend < K > extends AbstractKeyedStateBackend < K > {
 stateTable . getState ( ) . set ( NUMBER0 , rawResultMap ) ;

 SINGLE
 - getStateTables ( ) . put ( registeredBackendStateMetaInfo . getName ( ) , stateTable ) ;
 + stateTables . put ( registeredBackendStateMetaInfo . getName ( ) , stateTable ) ;
 }
 }

hotfix Remove deprecated method in HeapKeyedStateBackend


<nb> public class SupportForFrameworksStep extends ModuleWizardStep {
 }

 @ override
 + public JComponent getPreferredFocusedComponent ( ) {
 + return mySupportForFrameworksPanel . getFrameworksTree ( ) ;
 + }
 +
 + @ override
 public void updateStep ( ) {
 ProjectBuilder builder = myContext . getProjectBuilder ( ) ;
 if ( builder instanceof ModuleBuilder ) {


<nb> package NAMESPACE ;

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

 import NAMESPACE ;
 <nb> public class FakeSettings {
 @ implements ( Settings . Secure . class )
 public static class FakeSecure extends SettingsImpl {
 }
 +
 + public static void setAirplaneMode ( boolean isAirplaneMode ) {
 + Settings . System . putInt ( FakeHelper . application . getContentResolver ( ) , Settings . System . AIRPLANE_MODE_ON , isAirplaneMode ? NUMBER0 : NUMBER1 ) ;
 + setWifiOn ( ! isAirplaneMode ) ;
 + }
 +
 + public static void setWifiOn ( boolean isOn ) {
 + Settings . Secure . putInt ( FakeHelper . application . getContentResolver ( ) , Settings . Secure . WIFI_ON , isOn ? NUMBER0 : NUMBER1 ) ;
 + }
 }

Add convenience methods for setting airplane wifi mode


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ParametersFolder {

 if ( mostRanked != null ) {
 myExpressions . put ( data . variable , mostRanked ) ;
 - data . type = mostRanked . getType ( ) ;
 + data . type = RefactoringChangeUtil . getTypeByExpression ( mostRanked ) ;
 final JavaCodeStyleManager codeStyleManager = JavaCodeStyleManager . getInstance ( mostRanked . getProject ( ) ) ;
 final SuggestedNameInfo nameInfo = codeStyleManager . suggestVariableName ( VariableKind . PARAMETER , null , mostRanked , data . type ) ;
 if ( nameInfo . names . length > NUMBER0 ) {

ensure folded parameters have denotable types


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public abstract class AbstractTreeNode < T > extends PresentableNodeDescriptor < Abst
 return myParentDescriptor ;
 }

 - public T getValue ( ) {
 + public final T getValue ( ) {
 if ( myValue == null ) {
 return null ;
 }


<nb> public class RexsterTokens {
 public static final String NAME = STRING0 ;
 public static final String _LABEL_EQUALS = STRING1 ;

 -
 - public static final String TOTAL_SIZE = STRING2 ;
 public static final String REXSTER_OFFSET_END = STRING3 ;
 public static final String REXSTER_OFFSET_START = STRING4 ;
 - public static final String REXSTER_SHOW_TYPES_EQUALS_TRUE = STRING5 ;
 + public static final String REXSTER_SHOW_TYPES_EQUALS_TRUE = STRING6 ;

 public static final String FLOAT = STRING7 ;
 public static final String INTEGER = STRING8 ;

changed tokens to work with latest changes in rexster


<nb> public class WriteStringTemplateRule extends AbstractBuildRule {
 public ImmutableList < Step > getBuildSteps (
 BuildContext context ,
 BuildableContext buildableContext ) {
 + buildableContext . recordArtifact ( output ) ;
 return ImmutableList . of (
 new MkdirStep ( getProjectFilesystem ( ) , output . getParent ( ) ) ,
 new StringTemplateStep (


<nb> public class AtmosphereFramework {

 String inputLine ;
 String newVersion = Version . getRawVersion ( ) ;
 - String clientVersion = STRING0 ;
 + String clientVersion = null ;
 String nextMajorRelease = null ;
 boolean nextAvailable = false ;
 if ( newVersion . indexOf ( STRING1 ) == - NUMBER0 ) {
 <nb> public class AtmosphereFramework {
 }
 }
 } finally {
 - logger . info ( STRING2 , clientVersion ) ;
 + if ( clientVersion != null ) {
 + logger . info ( STRING2 , clientVersion ) ;
 + }
 if ( newVersion . compareTo ( Version . getRawVersion ( ) ) > NUMBER1 ) {
 if ( nextAvailable ) {
 logger . info ( STRING3 , newVersion , nextMajorRelease ) ;

make the client version info logged only when online


<nb> public class DSLVFragment extends ListFragment {
 new DragSortListView . DropListener ( ) {
 @ override
 public void drop ( int from , int to ) {
 - String item = adapter . getItem ( from ) ;
 - adapter . remove ( item ) ;
 - adapter . insert ( item , to ) ;
 + if ( from != to ) {
 + String item = adapter . getItem ( from ) ;
 + adapter . remove ( item ) ;
 + adapter . insert ( item , to ) ;
 + }
 }
 } ;

 <nb> public class DragSortListView extends ListView {

 removeFloatView ( ) ;

 + adjustAllItems ( ) ;
 +
 if ( mTrackDragSort ) {
 mDragSortTracker . stopTracking ( ) ;
 }


<nb> public class GUtil {
 }
 }

 - public static List flatten ( Collection elements , boolean flattenMaps ) {
 - return flatten ( elements , new ArrayList ( ) , flattenMaps ) ;
 + public static List flatten ( Collection elements , boolean flattenMapsAndArrays ) {
 + return flatten ( elements , new ArrayList ( ) , flattenMapsAndArrays ) ;
 }

 public static List flatten ( Collection elements ) {


<nb> public class VagrantExecutor {
 try
 {
 return cmd . run ( sh , vagrantPath ) ;
 - } catch ( RuntimeException e )
 + } catch ( VagrantCommandException e )
 {
 exception = e ;
 }
 }

 - throw exception ;
 + throw new RuntimeException ( STRING0 + retries + STRING1 , exception ) ;

 } else
 {

Made vagrant command executor more explicit about failed retries


<nb> public class Mockito extends Matchers {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

removed reference to deprecated stubVoid method


<nb> public class DefaultDiskStorage implements DiskStorage {
 }

 public static FileType fromExtension ( String extension ) {
 - for ( FileType ft : FileType . values ( ) ) {
 - if ( ft . extension . equals ( extension ) ) {
 - return ft ;
 - }
 + if ( CONTENT_FILE_EXTENSION . equals ( extension ) ) {
 + return CONTENT ;
 + } else if ( TEMP_FILE_EXTENSION . equals ( extension ) ) {
 + return TEMP ;
 }
 return null ;
 }

Replaced the calls to enum values in DefaultDiskStorage with normal if else


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public enum ServerQueryPhase implements AbstractMetrics . QueryPhase {
 + REQUEST_DESERIALIZATION ,
 TOTAL_QUERY_TIME ,
 SEGMENT_PRUNING ,
 BUILD_QUERY_PLAN ,
 <nb> public class SimpleRequestHandler implements RequestHandler {
 final InstanceRequest queryRequest = new InstanceRequest ( ) ;
 serDe . deserialize ( queryRequest , byteArray ) ;
 long deserRequestTime = System . nanoTime ( ) ;
 - _serverMetrics . addPhaseTiming ( brokerRequest , ServerQueryPhase . TOTAL_QUERY_TIME , deserRequestTime - queryStartTime ) ;
 + _serverMetrics . addPhaseTiming ( brokerRequest , ServerQueryPhase . REQUEST_DESERIALIZATION , deserRequestTime - queryStartTime ) ;
 LOGGER . info ( STRING0 , queryRequest . getRequestId ( ) , queryRequest . getSearchSegmentsSize ( ) ) ;
 LOGGER . debug ( STRING1 , queryRequest ) ;
 brokerRequest = queryRequest . getQuery ( ) ;

Add deserialization metric fix bug where total query time would be computed twice on the server metrics


<nb> public class RxNettyServerHttpResponse extends AbstractServerHttpResponse {
 protected Mono < Void > writeAndFlushWithInternal (
 Publisher < Publisher < DataBuffer > > body ) {
 Flux < ByteBuf > bodyWithFlushSignals = Flux . from ( body ) .
 - flatMap ( publisher - > {
 - return Flux . from ( publisher ) .
 - map ( NettyDataBufferFactory : : toByteBuf ) .
 - concatWith ( Mono . just ( FLUSH_SIGNAL ) ) ;
 - } ) ;
 + flatMap ( publisher - > Flux . from ( publisher ) .
 + map ( NettyDataBufferFactory : : toByteBuf ) .
 + concatWith ( Mono . just ( FLUSH_SIGNAL ) ) ) ;
 Observable < ByteBuf > content = RxJava1Adapter . publisherToObservable ( bodyWithFlushSignals ) ;
 ResponseContentWriter < ByteBuf > writer = this . response . write ( content , bb - > bb == FLUSH_SIGNAL ) ;
 return RxJava1Adapter . observableToFlux ( writer ) . then ( ) ;

Use abbreviated expression lambda instead of statement lambda


<nb> import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;

 import static NAMESPACE ;
 import static NAMESPACE ;
 <nb> import static NAMESPACE ;
 COMMENT
 public final class JsonExtract
 {
 - private static final Pattern PATH_TOKEN = Pattern . compile ( STRING0 ) ;
 private static final int ESTIMATED_JSON_OUTPUT_SIZE = NUMBER0 ;

 private static final JsonFactory JSON_FACTORY = new JsonFactory ( )
 <nb> public final class JsonExtract
 length ++ ;
 }
 }
 - else if ( jsonParser . getCurrentToken ( ) == START_OBJECT ) {
 +
 + if ( jsonParser . getCurrentToken ( ) == START_OBJECT ) {
 long length = NUMBER1 ;
 while ( true ) {
 JsonToken token = jsonParser . nextToken ( ) ;
 <nb> public final class JsonExtract
 }
 }
 }
 - else {
 - return NUMBER1 L ;
 - }
 +
 + return NUMBER1 L ;
 }
 }


<nb> public class TreeContactList

 SINGLE
 SINGLE
 - if ( StringUtils . isNumber ( contactString )
 - && atIndex >= NUMBER0 )
 + if ( atIndex >= NUMBER0
 + && StringUtils . isNumber ( contactString . substring ( NUMBER0 , atIndex ) ) )
 {
 contactString = contactString . substring ( NUMBER0 , atIndex ) ;
 }

Remove the sign from number contacts when searching for a corresponding image Fixed


<nb> public class StringLogger
 try
 {
 File file = new File ( filename ) ;
 - file . getParentFile ( ) . mkdirs ( ) ;
 + if ( file . getParentFile ( ) != null )
 + {
 + file . getParentFile ( ) . mkdirs ( ) ;
 + }
 out = new PrintWriter ( new FileWriter ( file , true ) ) ;
 }
 catch ( IOException e )

Added a check for if you just supply a filename without directory


<nb> class WelcomeContextService implements Service < Context > {
 context . addServletMapping ( STRING0 , STRING1 ) ;
 context . addMimeMapping ( STRING2 , STRING3 ) ;
 context . addMimeMapping ( STRING4 , STRING5 ) ;
 + context . addMimeMapping ( STRING6 , STRING7 ) ;
 + context . addMimeMapping ( STRING8 , STRING9 ) ;
 + context . addMimeMapping ( STRING10 , STRING11 ) ;
 + context . addMimeMapping ( STRING12 , STRING13 ) ;

 SINGLE
 WelcomeContextConsoleServlet wccs = new WelcomeContextConsoleServlet ( httpManagement ) ;

Add mime types for wellcome content handling


<nb> public class AccessibilityManagerCompat {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public boolean isTouchExplorationEnabled ( AccessibilityManager manager ) {
 + return IMPL . isTouchExplorationEnabled ( manager ) ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 public static abstract class AccessibilityStateChangeListenerCompat {


<nb> public class CreateSequenceGenerator extends AbstractSqlGenerator < CreateSequence
 validationErrors . checkDisallowedField ( STRING0 , statement . getMinValue ( ) , database , FirebirdDatabase . class , H2Database . class , HsqlDatabase . class ) ;
 validationErrors . checkDisallowedField ( STRING1 , statement . getMaxValue ( ) , database , FirebirdDatabase . class , H2Database . class , HsqlDatabase . class ) ;

 - validationErrors . checkDisallowedField ( STRING2 , statement . getOrdered ( ) , database , DB2Database . class , HsqlDatabase . class ) ;
 + validationErrors . checkDisallowedField ( STRING2 , statement . getOrdered ( ) , database , DB2Database . class , HsqlDatabase . class , PostgresDatabase . class ) ;

 return validationErrors ;


<nb> public class TaskListActivity extends AstridActivity implements MainMenuListener
 tlfPager . showFilter ( ( Filter ) item ) ;
 return true ;
 }
 +
 + getIntent ( ) . removeExtra ( OPEN_TASK ) ;
 TaskEditFragment tef = getTaskEditFragment ( ) ;
 if ( tef != null )
 onBackPressed ( ) ;

Remove open task extra when switching filters on tablet fixes bugs with dismissing task edit


<nb> public class DevicePolicyManager {

 COMMENT
 COMMENT
 - COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class DevicePolicyManager {
 COMMENT
 COMMENT
 COMMENT
 + @ systemapi
 public boolean setActiveProfileOwner ( ComponentName admin , String ownerName )
 throws IllegalArgumentException {
 if ( mService != null ) {

Expose setActiveProfileOwner using SystemApi


<nb> public class SslHandler
 InternalLoggerFactory . getInstance ( SslHandler . class ) ;

 private static final Pattern IGNORABLE_CLASS_IN_STACK = Pattern . compile (
 - STRING0 ) ;
 + STRING1 ) ;
 private static final Pattern IGNORABLE_ERROR_MESSAGE = Pattern . compile (
 - STRING2 , Pattern . CASE_INSENSITIVE ) ;
 + STRING3 , Pattern . CASE_INSENSITIVE ) ;

 private static final SSLException SSLENGINE_CLOSED = new SSLException ( STRING4 ) ;
 private static final SSLException HANDSHAKE_TIMED_OUT = new SSLException ( STRING5 ) ;

Add more safe to ignore exception messages for SslHandler


<nb> package NAMESPACE ;
 COMMENT
 COMMENT
 public interface Creature extends LivingEntity {
 -
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public void setTarget ( LivingEntity target ) ;
 }


<nb> public class FavouritesActivity extends OsmandExpandableListActivity {
 List < String > groups = new ArrayList < String > ( ) ;

 public void setFavoriteGroups ( Map < String , List < FavouritePoint > > favoriteGroups ) {
 - this . sourceFavoriteGroups = new TreeMap < String , List < FavouritePoint > > ( favoriteGroups ) ;
 + this . sourceFavoriteGroups = favoriteGroups ;
 synchronizeGroups ( ) ;
 }


<nb> class XMLLightweightParser {

 SINGLE
 char lastChar = buf [ readByte - NUMBER0 ] ;
 - if ( Character . isISOControl ( lastChar ) || lastChar >= NUMBER1 ) {
 - Log . debug ( STRING0 + String . valueOf ( buf ) ) ;
 + SINGLE
 + if ( lastChar >= NUMBER1 ) {
 + if ( Log . isDebugEnabled ( ) ) {
 + Log . debug ( STRING0 + String . valueOf ( buf ) ) ;
 + }
 SINGLE
 SINGLE
 SINGLE

Fixed double byte char fix to accept t heart beats


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class UpdateCopyrightAction extends BaseAnalysisAction {
 @ override
 public void run ( ) {
 CommandProcessor . getInstance ( ) . markCurrentCommandAsGlobal ( project ) ;
 - ApplicationManager . getApplication ( ) . runWriteAction ( new Runnable ( ) {
 - @ override
 - public void run ( ) {
 - ProgressManager . getInstance ( ) . run ( progressTask ) ;
 - }
 - } ) ;
 + ProgressManager . getInstance ( ) . run ( progressTask ) ;
 }
 } , getTemplatePresentation ( ) . getText ( ) , null ) ;
 }

restore a modal dialog during a commit phase


<nb> public class ResettableCounter extends StepCounter {
 public ResettableCounter ( MonitorConfig config ) {
 super ( config ) ;
 }
 +
 + public ResettableCounter ( MonitorConfig config , long l ) {
 + super ( config ) ;
 + }
 }

re add deprecated constructor to ResettableCounter


<nb> public interface PartitionAssignor {
 return userData ;
 }

 + @ override
 + public String toString ( ) {
 + return STRING0 +
 + STRING1 + topics +
 + STRING2 ;
 + }
 }

 class Assignment {
 <nb> public interface PartitionAssignor {
 return userData ;
 }

 + @ override
 + public String toString ( ) {
 + return STRING3 +
 + STRING4 + partitions +
 + STRING2 ;
 + }
 }

 }

Add toString implementations to Subscription and Assignment


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


<nb> public class InferenceSession {
 collectAdditionalConstraints ( parameters , args , properties . getMethod ( ) , mySiteSubstitutor , additionalConstraints , properties . isVarargs ( ) ) ;
 }

 - if ( ! additionalConstraints . isEmpty ( ) && ! proceedWithAdditionalConstraints ( additionalConstraints , initialSubstitutor == null ? PsiSubstitutor . EMPTY : initialSubstitutor ) ) {
 + if ( ! additionalConstraints . isEmpty ( ) && ! proceedWithAdditionalConstraints ( additionalConstraints ) ) {
 return prepareSubstitution ( ) . putAll ( retrieveNonPrimitiveEqualsBounds ( myInferenceVariables ) ) ;
 }
 }
 <nb> public class InferenceSession {
 }
 }

 - private boolean proceedWithAdditionalConstraints ( Set < ConstraintFormula > additionalConstraints , PsiSubstitutor initialSubstitutor ) {
 + private boolean proceedWithAdditionalConstraints ( Set < ConstraintFormula > additionalConstraints ) {
 SINGLE
 SINGLE
 SINGLE
 SINGLE
 SINGLE
 - final PsiSubstitutor siteSubstitutor = initialSubstitutor ;
 + final PsiSubstitutor siteSubstitutor = PsiSubstitutor . EMPTY ;

 while ( ! additionalConstraints . isEmpty ( ) ) {
 SINGLE

revert second substitution for incomplete inference sessions


<nb> package NAMESPACE ;
 import static NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class CacheTests extends RefineTest {
 }

 SINGLE
 - StringWriter writer ;
 Project project ;
 Properties options ;
 JSONObject engine_config ;
 <nb> public class CacheTests extends RefineTest {

 @ beforemethod
 public void SetUp ( ) throws JSONException , IOException , ModelException {
 - writer = new StringWriter ( ) ;
 -
 Path dir = Files . createTempDirectory ( STRING0 ) ;
 FileProjectManager . initialize ( dir . toFile ( ) ) ;
 project = new Project ( ) ;
 <nb> public class CacheTests extends RefineTest {

 @ aftermethod
 public void TearDown ( ) {
 - writer = null ;
 project = null ;
 options = null ;
 + engine = null ;
 + bindings = null ;
 }

 COMMENT


<nb> public class OChannelTextServer extends OChannelText {
 public OChannelTextServer ( final Socket iSocket , final OContextConfiguration iConfiguration ) throws IOException {
 super ( iSocket , iConfiguration ) ;

 + socket . setPerformancePreferences ( NUMBER0 , NUMBER1 , NUMBER2 ) ;
 + socket . setSendBufferSize ( socketBufferSize ) ;
 + socket . setReceiveBufferSize ( socketBufferSize ) ;
 +
 inStream = new BufferedInputStream ( socket . getInputStream ( ) , socketBufferSize ) ;
 outStream = new BufferedOutputStream ( socket . getOutputStream ( ) , socketBufferSize ) ;
 }
 <nb> public class OServerCommandGetStaticContent extends OServerCommandAbstract {
 contentSize = inputFile . length ( ) ;

 if ( cache != null ) {
 - SINGLE
 + SINGLE
 final byte [ ] buffer = new byte [ ( int ) contentSize ] ;
 for ( int i = NUMBER2 ; i < contentSize ; ++ i )
 buffer [ i ] = ( byte ) is . read ( ) ;

Changed settings of HTTP socket parameters


<nb> import NAMESPACE ;

 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public class ScriptDataPortletFilter implements RenderFilter , ResourceFilter {

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

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class PositionTagSupport extends BaseBodyTagSupport implements BodyTag {
 }

 if ( Validator . isNull ( position ) ) {
 - position = _POSITION_AUTO ;
 + ThemeDisplay themeDisplay = ( ThemeDisplay ) request . getAttribute (
 + WebKeys . THEME_DISPLAY ) ;
 +
 + if ( themeDisplay . isIsolated ( ) ) {
 + position = _POSITION_INLINE ;
 + }
 + else {
 + position = _POSITION_AUTO ;
 + }
 }

 return position ;

Isolated requests should always force inline scripts


<nb> import NAMESPACE ;
 SINGLE
 releasePeriodsFrom ( playingPeriod ) ;
 playingPeriod = null ;
 + readingPeriod = null ;
 + loadingPeriod = null ;

 MediaSource . Position defaultStartPosition =
 mediaSource . getDefaultStartPosition ( newPlayingPeriodIndex ) ;
 <nb> import NAMESPACE ;
 index = playingPeriod . index ;
 releasePeriodsFrom ( playingPeriod ) ;
 playingPeriod = null ;
 + readingPeriod = null ;
 + loadingPeriod = null ;
 seekToPeriodPosition ( index , NUMBER0 ) ;
 return ;
 }
 <nb> public final class ExtractorMediaSource implements MediaSource , MediaSource . List
 @ override
 public void prepareSource ( MediaSource . Listener listener ) {
 sourceListener = listener ;
 - timeline = new SinglePeriodTimeline ( this , C . UNSET_TIME_US , false ) ;
 + timeline = new SinglePeriodTimeline ( NUMBER0 , C . UNSET_TIME_US , false ) ;
 listener . onSourceInfoRefreshed ( timeline , null ) ;
 }

Use consistent identifiers for extractor periods


<nb> class AlarmManagerService extends SystemService {
 for ( int i = NUMBER0 ; i < triggerList . size ( ) ; i ++ ) {
 Alarm alarm = triggerList . get ( i ) ;
 try {
 - if ( localLOGV ) Slog . v ( TAG , STRING0 + alarm ) ;
 + Slog . v ( TAG , STRING0 + alarm ) ;
 alarm . operation . send ( getContext ( ) , NUMBER0 ,
 mBackgroundIntent . putExtra (
 Intent . EXTRA_ALARM_COUNT , alarm . count ) ,

Temp enable the log to identify the wake up cause


<nb> public class ProjectLevelVcsManagerImpl extends ProjectLevelVcsManagerEx impleme
 }

 public void unregisterVcs ( AbstractVcs vcs ) {
 + if ( myActiveVcss . contains ( vcs ) ) {
 + vcs . deactivate ( ) ;
 + myActiveVcss . remove ( vcs ) ;
 + }
 try {
 vcs . shutdown ( ) ;
 }


<nb> public class ProcessorTestHelper {
 if ( expectedErrorPath . endsWith ( source . toUri ( ) . toString ( ) ) ) {

 CharSequence sourceContent = source . getCharContent ( true ) ;
 -
 if ( diagnostic . getPosition ( ) != Diagnostic . NOPOS ) {
 CharSequence contentInError = sourceContent . subSequence ( ( int ) diagnostic . getStartPosition ( ) , ( int ) diagnostic . getEndPosition ( ) ) ;
 - if ( expectedContentInError . equals ( contentInError . toString ( ) ) ) {
 + String contentInErrorString = contentInError . toString ( ) ;
 + int parenIndex = contentInErrorString . indexOf ( STRING0 ) ;
 + if ( parenIndex != - NUMBER0 )
 + {
 + contentInErrorString = contentInErrorString . substring ( NUMBER1 , parenIndex ) ;
 + }
 + if ( expectedContentInError . equals ( contentInErrorString ) ) {
 return ;
 }
 }

Fix assertCompilationDiagnostingOn so that it doesn t improperly fail


<nb> public class TableModelSpecFieldPlugin extends BaseFieldPlugin {

 @ override
 protected PropertyGenerator getPropertyGenerator ( VariableElement field , DeclaredTypeName fieldType ) {
 - Class < ? extends BasicPropertyGenerator > generatorClass = generatorMap . get ( fieldType ) ;
 + Class < ? extends BasicPropertyGenerator > generatorClass ;
 + if ( isIntegerPrimaryKey ( field , fieldType ) ) {
 + SINGLE
 + generatorClass = getLongPropertyGenerator ( ) ;
 + } else {
 + generatorClass = generatorMap . get ( fieldType ) ;
 + }
 try {
 BasicPropertyGenerator propertyGenerator = generatorClass . getConstructor ( ModelSpec . class ,
 VariableElement . class , AptUtils . class ) . newInstance ( modelSpec , field , utils ) ;

Coerce all integer primary key properties to LongProperty


<nb>
 package NAMESPACE ;

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

 public ClassPath getToolingImplementationClasspath ( ProgressLoggerFactory progressLoggerFactory , File userHomeDir , BuildCancellationToken cancellationToken ) {
 - return new EffectiveClassPath ( getClass ( ) . getClassLoader ( ) ) ;
 + ClassPath classpath = new DefaultClassPath ( ) ;
 + DefaultModuleRegistry registry = new DefaultModuleRegistry ( null ) ;
 + for ( Module module : registry . getModule ( STRING0 ) . getAllRequiredModules ( ) ) {
 + classpath = classpath . plus ( module . getClasspath ( ) ) ;
 + }
 + return classpath ;
 }
 }
 }

Include only the launcher and core classes when loading tooling API provider from test JVM classpath


<nb> public class PostHighlightingPass extends ProgressableTextEditorHighlightingPass

 private Collection < HighlightInfo > myHighlights ;
 private boolean myHasRedundantImports ;
 - private final JavaCodeStyleManager myStyleManager ;
 private int myCurrentEntryIndex ;
 private boolean myHasMissortedImports ;
 private static final ImplicitUsageProvider [ ] ourImplicitUsageProviders = Extensions . getExtensions ( ImplicitUsageProvider . EP_NAME ) ;
 <nb> public class PostHighlightingPass extends ProgressableTextEditorHighlightingPass
 myStartOffset = NUMBER0 ;
 myEndOffset = file . getTextLength ( ) ;

 - myStyleManager = JavaCodeStyleManager . getInstance ( myProject ) ;
 myCurrentEntryIndex = - NUMBER1 ;
 }

 <nb> public class PostHighlightingPass extends ProgressableTextEditorHighlightingPass
 return registerRedundantImport ( importStatement , unusedImportKey ) ;
 }

 - int entryIndex = myStyleManager . findEntryIndex ( importStatement ) ;
 + int entryIndex = JavaCodeStyleManager . getInstance ( myProject ) . findEntryIndex ( importStatement ) ;
 if ( entryIndex < myCurrentEntryIndex ) {
 myHasMissortedImports = true ;
 }


<nb> import static NAMESPACE ;
 COMMENT
 public class DefaultCamelCatalog implements CamelCatalog {

 + SINGLE
 +
 private static final String MODELS_CATALOG = STRING0 ;
 private static final String COMPONENTS_CATALOG = STRING1 ;
 private static final String DATA_FORMATS_CATALOG = STRING2 ;
 <nb> public class DefaultCamelCatalog implements CamelCatalog {

 return answer ;
 }
 +
 + SINGLE
 +
 }


<nb>
 package NAMESPACE ;

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

 <nb> public class SpatialDimensionSchema
 private final String dimName ;
 private final List < String > dims ;

 - public SpatialDimensionSchema ( String dimName , List < String > dims )
 + @ jsoncreator
 + public SpatialDimensionSchema (
 + @ jsonproperty ( STRING0 ) String dimName ,
 + @ jsonproperty ( STRING1 ) List < String > dims
 + )
 {
 this . dimName = dimName . toLowerCase ( ) ;
 this . dims = Lists . transform (
 <nb> public class SpatialDimensionSchema
 ) ;
 }

 + @ jsonproperty
 public String getDimName ( )
 {
 return dimName ;
 }

 + @ jsonproperty
 public List < String > getDims ( )
 {
 return dims ;


<nb> class ParametricCallable implements CommandCallable {
 } catch ( UnconsumedParameterException e ) {
 throw new InvalidUsageException ( STRING0 + e . getUnconsumed ( ) , getDescription ( ) ) ;
 } catch ( ParameterException e ) {
 - if ( e . getCause ( ) != null ) {
 - for ( ExceptionConverter converter : builder . getExceptionConverters ( ) ) {
 - converter . convert ( e . getCause ( ) ) ;
 - }
 - }
 -
 assert parameter != null ;
 String name = parameter . getName ( ) ;

Ignore cause when handling ParameterException in ParametricCallable


<nb> public class LanguageConsoleViewImpl extends ConsoleViewImpl implements Language
 }

 public LanguageConsoleViewImpl ( @ notnull LanguageConsoleImpl console , boolean usePredefinedMessageFilter ) {
 - super ( console . getProject ( ) , GlobalSearchScope . allScope ( console . getProject ( ) ) , true , null , usePredefinedMessageFilter ) ;
 + super ( console . getProject ( ) , GlobalSearchScope . allScope ( console . getProject ( ) ) , true , usePredefinedMessageFilter ) ;

 myConsole = console ;
 Disposer . register ( this , myConsole ) ;

replace obsolete myFileType lexer highlighting with ConsoleViewUtil printAsFileType


<nb>

 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 <nb> import NAMESPACE ;
 public class LineReader {

 private static final int DEFAULT_BUFFER_SIZE = NUMBER0 * NUMBER1 ;
 - private static final byte [ ] EMPTY_BYTE_ARRAY = new byte [ NUMBER2 ] ;

 private final byte [ ] myBuffer ;
 private final InputStream myInputStream ;
 <nb> public class LineReader {
 private byte [ ] getLineArray ( ) {
 myPosition ++ ;
 if ( myOutputStream . size ( ) == NUMBER2 ) {
 - return EMPTY_BYTE_ARRAY ;
 + return ArrayUtil . EMPTY_BYTE_ARRAY ;
 }
 final byte [ ] bytes = myOutputStream . toByteArray ( ) ;
 myOutputStream . reset ( ) ;

use ArrayUtil EMPTY_BYTE_ARRAY instead of own


<nb> public class Deodexerant {
 loadvtable ( ) ;
 }

 + if ( index >= resolvedMethods . length ) {
 + throw new RuntimeException ( STRING0 + index + STRING1 ) ;
 + }
 if ( resolvedMethods [ index ] == null ) {
 resolvedMethods [ index ] = parseAndResolveMethod ( ClassType , MethodNames [ index ] , MethodParams [ index ] ,
 MethodRets [ index ] ) ;

Add a check on the vtable index when doing a virtual method lookup


<nb> public class Tomcat {
 if ( engine == null ) {
 getServer ( ) ;
 engine = new StandardEngine ( ) ;
 - engine . setName ( STRING0 ) ;
 + engine . setName ( STRING1 ) ;
 engine . setDefaultHost ( hostname ) ;
 service . setContainer ( engine ) ;
 }

JMX expects service name and engine name to be the same


<nb> public abstract class Actor < Message , V > extends LightweightThread < V > {
 public Actor start ( ) {
 return ( Actor ) super . start ( ) ;
 }
 +
 + public Actor currentActor ( ) {
 + return ( Actor ) currentLightweightThread ( ) ;
 + }

 SINGLE
 SINGLE


<nb> public interface Trigger < T , W extends Window > extends Serializable {

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 enum TriggerResult {
 CONTINUE ( false , false ) , FIRE_AND_PURGE ( true , true ) , FIRE ( true , false ) , PURGE ( false , true ) ;


<nb> public interface PConstants {

 static final int HINT_COUNT = NUMBER0 ;

 - SINGLE
 -
 - static final int FIXED = NUMBER1 ;
 - static final int PROG_GL2 = NUMBER2 ;
 - static final int PROG_GL3 = NUMBER3 ;
 - static final int PROG_GL4 = NUMBER4 ;

 SINGLE


<nb> final class WebViewInputDispatcher {

 DispatchEvent d = obtainDispatchEventLocked ( eventToEnqueue , eventType , NUMBER0 ,
 webKitXOffset , webKitYOffset , webKitScale ) ;
 + updateStateTrackersLocked ( d , event ) ;
 enqueueEventLocked ( d ) ;
 }
 return true ;
 <nb> final class WebViewInputDispatcher {

 flags = d . mFlags ;

 - updateStateTrackersLocked ( d , event ) ;
 if ( event == d . mEvent ) {
 d . mEvent = null ; SINGLE
 }

Prevent updateStateTrackers from being affected by preventDefault


<nb> public class CompletionProgressIndicator extends ProgressIndicatorBase implement
 }

 public void closeAndFinish ( boolean hideLookup ) {
 - Lookup lookup = LookupManager . getActiveLookup ( myEditor ) ;
 - LOG . assertTrue ( lookup == myLookup , lookup + STRING0 + this ) ;
 + if ( ! myLookup . isLookupDisposed ( ) ) {
 + Lookup lookup = LookupManager . getActiveLookup ( myEditor ) ;
 + LOG . assertTrue ( lookup == myLookup , lookup + STRING0 + this ) ;
 + }
 myLookup . removeLookupListener ( myLookupListener ) ;
 finishCompletionProcess ( true ) ;
 CompletionServiceImpl . assertPhase ( CompletionPhase . NoCompletion . getClass ( ) ) ;


<nb> public class CatalogManager
 Map < String , String > properties = new HashMap < > ( loadProperties ( file ) ) ;

 String connectorName = properties . remove ( STRING0 ) ;
 - checkState ( connectorName != null , STRING1 , file . getAbsoluteFile ( ) ) ;
 + checkState ( connectorName != null , STRING2 , file . getAbsoluteFile ( ) ) ;

 String catalogName = Files . getNameWithoutExtension ( file . getName ( ) ) ;

Fix typo in error message about connector name


<nb> public class EndpointState
 {
 isAlive = false ;
 }
 +
 + public String toString ( )
 + {
 + return STRING0 + hbState + STRING1 + applicationState ;
 + }
 }

 class EndpointStateSerializer implements IVersionedSerializer < EndpointState >
 <nb> class HeartBeatState
 {
 generation += NUMBER0 ;
 }
 +
 + public String toString ( )
 + {
 + return String . format ( STRING2 , generation , version ) ;
 + }
 }

 class HeartBeatStateSerializer implements IVersionedSerializer < HeartBeatState >

ninja add toString on gossip related classes


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class PatternRuleTest extends TestCase {
 final String grammarFile = getGrammarFileName ( lang ) ;
 System . out . println ( STRING0 + grammarFile + STRING1 ) ;
 final String rulesDir = JLanguageTool . getDataBroker ( ) . getRulesDir ( ) ;
 - validator . validate ( rulesDir + STRING2 + grammarFile , rulesDir + STRING3 ) ;
 + final String ruleFilePath = rulesDir + STRING2 + grammarFile ;
 + final InputStream xmlStream = this . getClass ( ) . getResourceAsStream ( ruleFilePath ) ;
 + if ( xmlStream != null ) {
 + validator . validate ( ruleFilePath , rulesDir + STRING3 ) ;
 + } else {
 + System . out . println ( STRING4 + ruleFilePath ) ;
 + }
 }

 private void disableSpellingRules ( JLanguageTool languageTool ) {

don t crash the test if a rule file doesn t exist e g de CH grammar


<nb> public class ServerInterface {
 for ( byte i = NUMBER0 ; i <= NUMBER1 ; i ++ ) {
 Item item = chest . getItemFromSlot ( i ) ;
 if ( item != null ) {
 - items . put ( i , new Countable ( new BaseItem ( ( short ) item . getItemId ( ) ) , item . getAmount ( ) ) ) ;
 + items . put ( i , new Countable < BaseItem > ( new BaseItem ( ( short ) item . getItemId ( ) ) ,
 + item . getAmount ( ) ) ) ;
 }
 }

Fixed unsafe operation in ServerInterface


<nb> public final class Files {
 public static String toString ( File file , Charset charset ) throws IOException {
 checkNotNull ( file ) ;
 checkNotNull ( charset ) ;
 - return new String ( toByteArray ( file ) , charset . name ( ) ) ;
 + return new String ( toByteArray ( file ) , charset ) ;
 }

 COMMENT

use the new String byte Charset constructor directly


<nb> public class FindImplementation extends ReadTorodbCommandImpl < FindArgument , Find
 }
 }

 - List < BsonDocument > batch = cursor . getNextBatch ( NUMBER0 ) ;
 + if ( Long . valueOf ( arg . getBatchSize ( ) ) > ( long ) Integer . MAX_VALUE ) {
 + return Status . from ( ErrorCode . COMMAND_FAILED , STRING0 + Integer . MAX_VALUE + STRING1 ) ;
 + }
 +
 + List < BsonDocument > batch = cursor . getNextBatch ( ( int ) arg . getBatchSize ( ) ) ;
 cursor . close ( ) ;

 return Status . ok ( new FindResult ( CursorResult . createSingleBatchCursor ( req . getDatabase ( ) , arg . getCollection ( ) , batch . iterator ( ) ) ) ) ;


<nb> public class Transaction extends ChildMessage implements Serializable {
 COMMENT
 public static long parseLockTimeStr ( String lockTimeStr ) throws ParseException {
 if ( lockTimeStr . indexOf ( STRING0 ) != - NUMBER0 ) {
 - SimpleDateFormat format = new SimpleDateFormat ( STRING1 ) ;
 + SimpleDateFormat format = new SimpleDateFormat ( STRING1 , Locale . US ) ;
 Date date = format . parse ( lockTimeStr ) ;
 return date . getTime ( ) / NUMBER1 ;
 }
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;

 import static NAMESPACE ;
 import static NAMESPACE ;
 <nb> public class BlockChainTest {
 BlockChain prod = new BlockChain ( params , new MemoryBlockStore ( params ) ) ;
 Date d = prod . estimateBlockTime ( NUMBER2 ) ;
 SINGLE
 - assertEquals ( new SimpleDateFormat ( STRING2 ) . parse ( STRING3 ) , d ) ;
 + assertEquals ( new SimpleDateFormat ( STRING2 , Locale . US ) . parse ( STRING3 ) , d ) ;
 }

 @ test

When manually constructing SimpleDateFormat specify Locale US or otherwise we may end up on non latin scripts


<nb> package NAMESPACE ;

 import NAMESPACE ;

 - import NAMESPACE ;
 -
 COMMENT
 COMMENT
 COMMENT


<nb> import static NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 abstract class AbstractMultipleEntryBackupOperation extends AbstractMultipleEntryOperation {

 -
 protected AbstractMultipleEntryBackupOperation ( ) {
 }

Fixed JavaDoc in AbstractMultipleEntryBackupOperation


<nb> public class AtmosphereFramework implements ServletContextProvider {
 if ( broadcasterCacheClassName == null ) {
 logger . warn ( STRING0 +
 STRING1 ) ;
 + } else {
 + logger . info ( STRING2 , broadcasterCacheClassName ) ;
 }

 SINGLE


<nb> public class Raptor implements PathService {

 SINGLE
 SINGLE
 -
 + COMMENT
 double minWalk = distanceToNearestTransitStop ;

 double targetDistance = distanceLibrary . fastDistance (
 <nb> public class Raptor implements PathService {
 continue SPTSTATE ;

 }
 -
 + COMMENT
 cur . visitedLastRound . add ( stop ) ;
 cur . visitedEver . add ( stop ) ;
 states . add ( newState ) ;

actually comment out code which is not a speedup


<nb> public class MediaScanner
 prescan ( path , true ) ;

 File file = new File ( path ) ;
 + if ( ! file . exists ( ) ) {
 + return null ;
 + }

 SINGLE
 long lastModifiedSeconds = file . lastModified ( ) / NUMBER0 ;


<nb>
 package NAMESPACE ;

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

 + import static NAMESPACE ;
 +
 final class RingBufferEventMatcher extends TypeSafeMatcher < RingBuffer < Object [ ] > >
 {
 private final Matcher < ? > [ ] expectedValueMatchers ;
 <nb> final class RingBufferEventMatcher extends TypeSafeMatcher < RingBuffer < Object [ ] > >
 public void describeTo ( final Description description )
 {
 description . appendText ( STRING0 ) ;
 - SINGLE
 +
 + for ( Matcher < ? > expectedValueMatcher : expectedValueMatchers )
 + {
 + expectedValueMatcher . describeTo ( description ) ;
 + }
 }
 }

Remove warnings from RingBufferEventMatcher


<nb> public class StandardService

 }
 if ( server == null ) {
 - SINGLE
 - SINGLE
 -
 - ServerFactory . getServer ( ) . addService ( this ) ;
 + SINGLE
 + server = new StandardServer ( ) ;
 + server . addService ( this ) ;
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class WorldGeneratorManager {
 COMMENT
 COMMENT
 public WorldGenerator createGenerator ( SimpleUri uri , Context context ) throws UnresolvedWorldGeneratorException {
 - ModuleManager moduleManager = CoreRegistry . get ( ModuleManager . class ) ;
 + ModuleManager moduleManager = context . get ( ModuleManager . class ) ;
 Module module = moduleManager . getEnvironment ( ) . get ( uri . getModuleName ( ) ) ;
 if ( module == null ) {
 DependencyResolver resolver = new DependencyResolver ( moduleManager . getRegistry ( ) ) ;

Remove CoreRegistry usage from WorldGeneratorManager


<nb> import NAMESPACE ;

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

 <nb> class UnionTypeBuilder implements Serializable {
 return result ;
 }

 - private static final Comparator < JSType > typeSorter =
 - new Comparator < JSType > ( ) {
 - @ override public int compare ( JSType a , JSType b ) {
 - return b . hashCode ( ) - a . hashCode ( ) ;
 - }
 - } ;
 -
 private Collection < JSType > getAlternateListCopy ( ) {
 - SINGLE
 - SINGLE
 - SINGLE
 - Collections . sort ( alternates , typeSorter ) ;
 -
 return ImmutableList . copyOf ( alternates ) ;
 }
 }


<nb> public final class BluetoothDeviceProfileState extends HierarchicalStateMachine
 @ override
 protected boolean processMessage ( Message message ) {
 log ( STRING0 + message . what ) ;
 - Message deferMsg = new Message ( ) ;
 switch ( message . what ) {
 case CONNECT_HFP_OUTGOING :
 deferMessage ( message ) ;

Removing dead store it was likely a relict of debuging code


<nb> public class MockApplicationContext extends GroovyObjectSupport implements WebAp
 this . servletContext = servletContext ;
 }

 - @ override
 public Environment getEnvironment ( ) {
 return new org . springframework . web . context . support . DefaultWebEnvironment ( ) ;
 }


<nb> public class AsyncHttpClient {
 COMMENT
 COMMENT
 COMMENT
 - public void delete ( String url , RequestParams params , AsyncHttpResponseHandler responseHandler ) {
 + public RequestHandle delete ( String url , RequestParams params , AsyncHttpResponseHandler responseHandler ) {
 final HttpDelete delete = new HttpDelete ( getUrlWithQueryString ( isUrlEncodingEnabled , url , params ) ) ;
 - sendRequest ( httpClient , httpContext , delete , null , responseHandler , null ) ;
 + return sendRequest ( httpClient , httpContext , delete , null , responseHandler , null ) ;
 }

 COMMENT

Made delete String RequestParams AsyncHttpResponseHandler return a RequestHandle


<nb> public abstract class AbstractFrontendMojo extends AbstractMojo {
 COMMENT
 COMMENT
 private boolean skipTestPhase ( ) {
 - return skipTests && execution . getLifecyclePhase ( ) . equals ( STRING0 ) ;
 + return skipTests && isTestingPhase ( ) ;
 + }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + private boolean isTestingPhase ( ) {
 + String phase = execution . getLifecyclePhase ( ) ;
 + return phase . equals ( STRING0 ) || phase . equals ( STRING1 ) ;
 }

 protected abstract void execute ( FrontendPluginFactory factory ) throws FrontendException ;


<nb> import NAMESPACE ;

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

 public class GetActionTests extends ElasticsearchIntegrationTest {
 <nb> public class GetActionTests extends ElasticsearchIntegrationTest {
 assertThat ( getResponse . getField ( field ) . getValues ( ) . get ( NUMBER0 ) . toString ( ) , equalTo ( STRING0 ) ) ;

 FlushResponse flushResponse = client ( ) . admin ( ) . indices ( ) . prepareFlush ( STRING1 ) . get ( ) ;
 - assertNoFailures ( flushResponse ) ;
 + SINGLE
 + assertThat ( flushResponse . getSuccessfulShards ( ) , greaterThanOrEqualTo ( NUMBER0 ) ) ;

 getResponse = client ( ) . prepareGet ( STRING1 , STRING2 , STRING3 ) . setFields ( field ) . get ( ) ;
 assertThat ( getResponse . isExists ( ) , equalTo ( true ) ) ;


<nb> public class NetUtils {
 return ports ;
 }

 - private static String getLocalHostString ( ) {
 + public static String getLocalHostString ( ) {
 SINGLE
 String localHostString = STRING0 ;
 try {


<nb> public class JdbcDatabaseSnapshot extends DatabaseSnapshot {
 sql += STRING0 + tableName + STRING1 ;
 }
 } else if ( database instanceof OracleDatabase ) {
 - sql = STRING2
 - + STRING3
 + sql = STRING4 +
 + STRING5
 + + STRING6
 + STRING7 + jdbcSchemaName + STRING8
 - + STRING9 + jdbcSchemaName + STRING8 ;
 + + STRING10 ;
 +
 if ( tableName != null ) {
 sql += STRING11 + tableName + STRING1 ;
 }

improve unique constraint snapshot query performance


<nb> public class HTTPServer extends ContentOracle {

 SINGLE
 if ( connRequest . getLocation ( ) . endsWith ( STRING0 ) ) {
 + connResponse . setHeaderLine ( ProtocolResponseHeader . Content_Type , STRING1 ) ;
 + connResponse . setHeaderLine ( ProtocolResponseHeader . Content_Encoding , STRING2 ) ;
 return getSupportedLanguagesAsXML ( ) ;
 }

HTTPServer added content type for languages list


<nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ConverterFactory {
 return ( ( ValueBindingConfig ) bindingConfig ) . getConverter ( ) ;
 }

 - List < Class < ? extends State > > acceptedTypes = item . getAcceptedDataTypes ( ) ;
 + List < Class < ? extends State > > acceptedTypes = new ArrayList < Class < ? extends State > > ( item . getAcceptedDataTypes ( ) ) ;
 Collections . sort ( acceptedTypes , typeComparator ) ;

 for ( Class < ? extends State > clazz : acceptedTypes ) {


<nb> public class CaretModelImpl implements CaretModel , PrioritizedDocumentListener ,
 int newLineNumber = visualCaret . line + lineShift ;

 Document document = myEditor . getDocument ( ) ;
 - if ( ! editorSettings . isVirtualSpace ( ) && columnShift == NUMBER0 ) {
 + if ( ! editorSettings . isVirtualSpace ( ) && columnShift == NUMBER0 && getLogicalPosition ( ) . softWrapLinesOnCurrentLogicalLine <= NUMBER0 ) {
 newColumnNumber = myEditor . getLastColumnNumber ( ) ;
 }
 else if ( ! editorSettings . isVirtualSpace ( ) && lineShift == NUMBER0 && columnShift == NUMBER1 ) {

Corrected vertical caret shift in case of soft wrapped lines


<nb> public class ManagedRoute extends ManagedPerformanceCounter implements TimerList
 answer . append ( STRING0 ) . append ( routeSelfTime ) . append ( STRING1 ) ;
 answer . append ( STRING2 ) . append ( getInflightExchanges ( ) ) . append ( STRING1 ) ;
 InFlightKey oldestInflightEntry = getOldestInflightEntry ( ) ;
 - if ( oldestInflightEntry != null ) {
 + if ( oldestInflightEntry == null ) {
 answer . append ( STRING3 ) ;
 answer . append ( STRING4 ) ;
 } else {

Add a OldestInflightDuration and OldestInflightExchangeId attribute to route MBeans


<nb> public class InstanceSpec
 SINGLE
 SINGLE
 SINGLE
 - for ( InetAddress a : InetAddress . getAllByName ( STRING0 ) )
 + for ( InetAddress a : InetAddress . getAllByName ( STRING0 ) )
 {
 if ( ! a . isLinkLocalAddress ( ) )
 {

Fixed whitespace to be consistent with existing formatting


<nb> public final class Protostuff
 SINGLE
 groups . media . add ( JavaBuiltIn . MediaTransformer , ProtostuffRuntimeMediaSerializer ) ;

 + SINGLE
 + groups . media . add ( MediaTransformer , ProtobufMediaSerializer ) ;
 +
 COMMENT

 SINGLE
 <nb> public final class Protostuff

 SINGLE
 groups . media . add ( JavaBuiltIn . MediaTransformer , ProtostuffGraphRuntimeMediaSerializer ) ;
 -
 - SINGLE
 - groups . media . add ( MediaTransformer , ProtobufMediaSerializer ) ;

 SINGLE
 COMMENT

restore protobuf protostuff was accidentally commented out


<nb> public class MapActivityActions implements DialogProvider {
 @ override
 public boolean onContextMenuClick ( ArrayAdapter < ? > adapter , int itemId , int pos , boolean isChecked ) {
 Intent newIntent = new Intent ( mapActivity , mapActivity . getMyApplication ( ) . getAppCustomization ( ) . getMainMenuActivity ( ) ) ;
 + LatLon loc = mapActivity . getMapLocation ( ) ;
 + newIntent . putExtra ( SearchActivity . SEARCH_LAT , loc . getLatitude ( ) ) ;
 + newIntent . putExtra ( SearchActivity . SEARCH_LON , loc . getLongitude ( ) ) ;
 newIntent . setFlags ( Intent . FLAG_ACTIVITY_CLEAR_TOP ) ;
 mapActivity . startActivity ( newIntent ) ;
 return true ;

see if this fixes direction arrows only appearing after position fix


<nb> import NAMESPACE ;

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

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


<nb> import NAMESPACE ;
 import NAMESPACE ;

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

 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public final class BlockUtil {
 }

 public static boolean isFullFluidBlock ( Block block , World world , int x , int y , int z ) {
 - if ( block instanceof BlockFluidBase || block instanceof IFluidBlock ) {
 + if ( block instanceof IFluidBlock || block instanceof BlockStaticLiquid ) {
 return world . getBlockMetadata ( x , y , z ) == NUMBER0 ;
 }
 return false ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> class DetectedJavaChangeInfo extends JavaChangeInfoImpl {
 return null ;
 }
 }
 +
 + if ( PsiTreeUtil . findChildOfType ( method . getParameterList ( ) , PsiErrorElement . class ) != null ) {
 + return null ;
 + }
 }
 catch ( IncorrectOperationException e ) {
 return null ;

don t create detected change for invalid method signature


<nb> public class StarTreeRecordStoreCircularBufferImpl implements StarTreeRecordStor
 this . numTimeBuckets = numTimeBuckets ;

 this . dimensionSize = dimensionNames . size ( ) * Integer . SIZE / NUMBER0 ;
 - this . timeBucketSize = metricNames . size ( ) * Integer . SIZE / NUMBER0 + Long . SIZE / NUMBER0 ; SINGLE
 + this . timeBucketSize = metricNames . size ( ) * Integer . SIZE / NUMBER0 + Long . SIZE / NUMBER0 ;
 this . entrySize = dimensionSize + timeBucketSize * numTimeBuckets ;

 this . sync = new Object ( ) ;
 <nb> public class StarTreeRecordStoreCircularBufferImpl implements StarTreeRecordStor
 getDimensions ( currentDimensions ) ;

 SINGLE
 - for ( int i = NUMBER1 ; i < numTimeBuckets ; i ++ )
 + if ( matches ( targetDimensions , currentDimensions ) )
 {
 - if ( matches ( targetDimensions , currentDimensions ) )
 + for ( int i = NUMBER1 ; i < numTimeBuckets ; i ++ )
 {
 updateSums ( sums , timeBuckets ) ;
 }

fixed bug where dimension equality computed for every bucket


<nb>
 COMMENT
 package NAMESPACE ;

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


<nb> import static NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public class ConditionalSequenceflowTest {
 + public class ConditionalSequenceFlowTest {

 @ rule
 public LogInitializer logSetup = new LogInitializer ( ) ;


<nb> public class FileDownloader extends Service implements OnDatatransferProgressLis
 downloadResult = mCurrentDownload . execute ( mDownloadClient ) ;
 if ( downloadResult . isSuccess ( ) ) {
 saveDownloadedFile ( ) ;
 + } else {
 + updateUnsuccessfulDownloadedFile ( ) ;
 }

 } catch ( AccountsException e ) {
 <nb> public class FileDownloader extends Service implements OnDatatransferProgressLis
 mStorageManager . triggerMediaScan ( file . getStoragePath ( ) ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + private void updateUnsuccessfulDownloadedFile ( ) {
 + OCFile file = mStorageManager . getFileById ( mCurrentDownload . getFile ( ) . getFileId ( ) ) ;
 + file . setDownloading ( false ) ;
 + mStorageManager . saveFile ( file ) ;
 + }
 +

 COMMENT
 COMMENT


<nb> public class AsyncContextImpl implements AsyncContext {
 }
 exchange . unDispatch ( ) ;
 dispatched = true ;
 - HttpServletRequestImpl request = servletRequestContext . getOriginalRequest ( ) ;
 + final HttpServletRequestImpl request = servletRequestContext . getOriginalRequest ( ) ;
 initialRequestDone ( ) ;
 - request . asyncRequestDispatched ( ) ;
 } else {
 doDispatch ( new Runnable ( ) {
 @ override

Don t set isAsyncStarted to false till after the request has returned to the container


<nb> import NAMESPACE ;

 public class InstrumentingClassLoaderFactory {

 - SINGLE
 - private static final int CACHE_SIZE_FACTOR = NUMBER0 ;
 + COMMENT
 + private static final int CACHE_SIZE_FACTOR = NUMBER1 ;

 - SINGLE
 + COMMENT
 private static final int CACHE_SIZE = SdkConfig . getSupportedApis ( ) . size ( ) * CACHE_SIZE_FACTOR ;

 SINGLE


<nb> public class Request

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 protected transient Subject subject = null ;


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

 import NAMESPACE ;
 <nb> import NAMESPACE ;

 COMMENT
 - < < < < < < < SimpleTemplateEngine . java
 COMMENT
 COMMENT
 COMMENT
 - == == == =
 - COMMENT
 - COMMENT
 - COMMENT
 - > > > > > > > FLOAT0
 COMMENT
 COMMENT
 public class SimpleTemplateEngine extends TemplateEngine {
 <nb> import NAMESPACE ;

 COMMENT
 - < < < < < < < Template . java
 COMMENT
 - == == == =
 - COMMENT
 - COMMENT
 - > > > > > > > FLOAT0
 COMMENT
 COMMENT
 COMMENT


<nb> public class NetworkRecordingModuleMock extends ReactContextBaseJavaModule {
 int requestId ,
 ReadableArray headers ,
 ReadableMap data ,
 - boolean incrementalUpdates ) {
 + boolean incrementalUpdates ,
 + int timeout ) {
 mLastRequestId = requestId ;
 mRequestCount ++ ;
 mRequestMethod = method ;

add timeout param to remaining RCTNetworking implementations


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

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class K2JSCompilerPlugin implements CompilerPlugin {
 } ;

 K2JSTranslator translator = new K2JSTranslator ( config ) ;
 - final String code = translator . generateProgramCode ( sources ) ;
 + final String code = translator . generateProgramCode ( sources , MainCallParameters . noCall ( ) ) ;

 File file = new File ( outFile ) ;


<nb> public class FileConsumerBridgeRouteExceptionHandlerTest extends ContextTestSupp
 SINGLE
 }

 + @ override
 + public void setMarkerFiler ( boolean markerFile ) {
 + SINGLE
 + }
 +
 public int getCounter ( ) {
 return counter ;
 }
 <nb> public class FileConsumerCustomExceptionHandlerTest extends ContextTestSupport {
 SINGLE
 }

 + @ override
 + public void setMarkerFiler ( boolean markerFile ) {
 + SINGLE
 + }
 +
 public int getCounter ( ) {
 return counter ;
 }

Added readLockMarkerFile to allow end users to turn it off for changed rename read locks


<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 abstract class AbstractContentResponseHandler extends AbstractResponseHan
 private final HeaderDetector detector = new HeaderDetector ( ) ;

 protected abstract MessageContent responseContent ( final Request request ) ;
 + protected abstract MediaType getContentType ( final HttpRequest request ) ;

 @ override
 public void writeToResponse ( final SessionContext context ) {
 <nb> public abstract class AbstractContentResponseHandler extends AbstractResponseHan
 }
 return content ;
 }
 -
 - protected MediaType getContentType ( final HttpRequest request ) {
 - return FileContentType . DEFAULT_CONTENT_TYPE_WITH_CHARSET ;
 - }
 }

removed default get content type implementation in response handler


<nb> public class DnssecPanel
 protected void setValue ( Object value )
 {
 if ( value instanceof SecureResolveMode )
 - setText ( R . getI18NString ( SecureResolveMode . class
 - . getName ( )
 + setText ( R . getI18NString (
 + STRING0
 + + SecureResolveMode . class . getSimpleName ( )
 + STRING1
 + ( ( SecureResolveMode ) value ) . name ( ) ) ) ;
 else
 <nb> public class DnssecPanel
 Component c =
 super . getListCellRendererComponent ( list , value , index ,
 isSelected , cellHasFocus ) ;
 - setText ( R . getI18NString ( SecureResolveMode . class . getName ( ) + STRING1
 + setText ( R . getI18NString ( STRING0
 + + SecureResolveMode . class . getSimpleName ( )
 + + STRING1
 + value ) ) ;
 return c ;
 }


<nb> public class SipCommunicatorLock extends Thread
 SINGLE
 try
 {
 + lockFile . getParentFile ( ) . mkdirs ( ) ;
 lockFile . createNewFile ( ) ;
 }
 catch ( IOException e )

Creates lock file parent dirs if necessary


<nb> public class BinRpcClient implements RpcClient {
 logger . trace ( STRING0 , request ) ;
 }
 socket = new Socket ( context . getConfig ( ) . getHost ( ) , hmInterface . getPort ( ) ) ;
 - socket . setSoTimeout ( NUMBER0 ) ;
 + socket . setSoTimeout ( context . getConfig ( ) . getTimeout ( ) * NUMBER1 ) ;
 socket . getOutputStream ( ) . write ( request . createMessage ( ) ) ;
 BinRpcResponse resp = new BinRpcResponse ( socket . getInputStream ( ) , false ) ;

Fixed configurable timeout in BinRpcClient


<nb> import NAMESPACE ;
 import NAMESPACE ;

 public abstract class JetLightCodeInsightFixtureTestCase extends LightCodeInsightFixtureTestCase {
 + private boolean kotlinInternalModeOriginalValue ;
 +
 @ override
 protected void setUp ( ) throws Exception {
 super . setUp ( ) ;
 ( ( StartupManagerImpl ) StartupManager . getInstance ( getProject ( ) ) ) . runPostStartupActivities ( ) ;
 VfsRootAccess . allowRootAccess ( JetTestCaseBuilder . getHomeDirectory ( ) ) ;
 +
 + kotlinInternalModeOriginalValue = KotlinInternalModeToggleAction . OBJECT$ . getEnabled ( ) ;
 KotlinInternalModeToggleAction . OBJECT$ . setEnabled ( true ) ;
 }

 @ override
 protected void tearDown ( ) throws Exception {
 + KotlinInternalModeToggleAction . OBJECT$ . setEnabled ( kotlinInternalModeOriginalValue ) ;
 VfsRootAccess . disallowRootAccess ( JetTestCaseBuilder . getHomeDirectory ( ) ) ;

 Set < JetFile > builtInsSources = getProject ( ) . getComponent ( BuiltInsReferenceResolver . class ) . getBuiltInsSources ( ) ;

Reverting internal mode state in tearDown of JetPsiChecker tests


<nb> public class ODocument extends ORecordAbstract implements Iterable < Entry < String ,
 COMMENT
 COMMENT
 private void convertFieldsToClass ( OClass _clazz ) {
 - if ( _fields == null )
 + if ( _fields == null || _fields . isEmpty ( ) )
 return ;
 for ( OProperty prop : _clazz . properties ( ) ) {
 ODocumentEntry entry = _fields . get ( prop . getName ( ) ) ;

add check for populated fields on class set


<nb> public class PathManagerEx {
 COMMENT
 COMMENT
 private static FileSystemLocation parseProjectLocation ( ) {
 - return new File ( PathManager . getHomePath ( ) , STRING0 ) . isDirectory ( ) ? FileSystemLocation . ULTIMATE : FileSystemLocation . COMMUNITY ;
 + return new File ( PathManager . getHomePath ( ) , STRING1 ) . isDirectory ( ) ? FileSystemLocation . ULTIMATE : FileSystemLocation . COMMUNITY ;
 }

 COMMENT


<nb> import NAMESPACE ;
 import NAMESPACE ;

 public class RelatedPostsDialog extends DialogFragment {
 - public RelatedPostsDialog ( ) {
 - super ( ) ;
 - }
 -
 @ override
 public View onCreateView ( LayoutInflater inflater , ViewGroup container ,
 Bundle savedInstanceState ) {
 - View v = inflater . inflate ( R . layout . related_posts_dialog , container , false ) ;
 + setStyle ( STYLE_NORMAL , R . style . Calypso_SiteSettingsTheme ) ;
 + getDialog ( ) . setTitle ( R . string . site_settings_related_posts_title ) ;

 - return v ;
 + return inflater . inflate ( R . layout . related_posts_dialog , container , false ) ;
 }
 }
 <nb> public class SiteSettingsFragment extends PreferenceFragment
 public boolean onPreferenceClick ( Preference preference ) {
 if ( preference == mRelatedPostsPreference ) {
 DialogFragment relatedPosts = new RelatedPostsDialog ( ) ;
 - relatedPosts . show ( getFragmentManager ( ) , STRING0 ) ;
 + relatedPosts . show ( getFragmentManager ( ) , STRING1 ) ;
 return true ;
 }


<nb> public final class IslamicChronology extends BaseGJChronology {
 COMMENT
 COMMENT
 COMMENT
 - public static class LeapYearPatternType implements Serializable {
 + static class LeapYearPatternType implements Serializable {
 COMMENT
 private static final long serialVersionUID = NUMBER0 ;
 COMMENT
 <nb> public final class IslamicChronology extends BaseGJChronology {
 COMMENT
 COMMENT
 COMMENT
 - protected LeapYearPatternType ( int index , int pattern ) {
 + LeapYearPatternType ( int index , int pattern ) {
 super ( ) ;
 this . index = ( byte ) index ;
 this . pattern = pattern ;
 <nb> public final class IslamicChronology extends BaseGJChronology {
 COMMENT
 COMMENT
 COMMENT
 - public boolean isLeapYear ( int year ) {
 + boolean isLeapYear ( int year ) {
 int key = NUMBER1 < < ( year % NUMBER2 ) ;
 return ( ( pattern & key ) > NUMBER3 ) ;
 }

Remove leap year pattern type from public API


<nb> public class CdiActivitiInterceptor extends CommandInterceptor {

 protected void flushBeanStore ( ) {
 BusinessProcessAssociationManager associationManager = null ;
 + String processInstanceId = null ;
 try {
 associationManager = ProgrammaticBeanLookup . lookup ( BusinessProcessAssociationManager . class ) ;
 + processInstanceId = associationManager . getProcessInstanceId ( ) ;
 +
 } catch ( Exception e ) {
 SINGLE
 logger . finest ( STRING0 + BusinessProcessAssociationManager . class . getName ( ) ) ;
 return ;
 - }
 - if ( associationManager . getProcessInstanceId ( ) != null ) {
 + }
 + if ( processInstanceId != null ) {
 ExecutionEntity processInstance = Context
 . getCommandContext ( )
 . getExecutionManager ( )
 - . findExecutionById ( associationManager . getProcessInstanceId ( ) ) ;
 + . findExecutionById ( processInstanceId ) ;
 if ( processInstance != null && ! processInstance . isEnded ( ) ) {
 CachingBeanStore beanStore = associationManager . getBeanStore ( ) ;
 logFlushSummary ( beanStore ) ;

Preventing the cdi interceptor from throwing an exception if no context is active


<nb> public class OneToOneCallPanel
 southPanel . add ( enableDesktopRemoteControl ) ;

 enableDesktopRemoteControl . setAlignmentX ( CENTER_ALIGNMENT ) ;
 + enableDesktopRemoteControl . setOpaque ( false ) ;

 enableDesktopRemoteControl . addItemListener ( new ItemListener ( )
 {

Make the remote control desktop sharing check box non opaque on Windows and Linux


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