<nb> public class GroovyLanguageCodeStyleSettingsProvider extends LanguageCodeStyleSe
 @ notnull SettingsType settingsType ) {
 if ( settingsType == SettingsType . WRAPPING_AND_BRACES_SETTINGS ) {
 consumer . showStandardOptions (
 + STRING0 ,
 STRING1 ,
 STRING2 ,
 STRING3 ,
 <nb> public class PyLanguageCodeStyleSettingsProvider extends LanguageCodeStyleSettin
 BLANK_LINES ) ;
 }
 else if ( settingsType == SettingsType . WRAPPING_AND_BRACES_SETTINGS ) {
 - consumer . showStandardOptions ( STRING1 ,
 + consumer . showStandardOptions ( STRING0 ,
 + STRING1 ,
 STRING4 ,
 STRING5 ,
 STRING6 ) ;


<nb> public class HpackEncoder {
 private static final Map < HttpString , TableEntry [ ] > ENCODING_STATIC_TABLE ;

 private final Deque < TableEntry > evictionQueue = new ArrayDeque < > ( ) ;
 - private final Map < HttpString , List < TableEntry > > dynamicTable = new HashMap < > ( ) ; SINGLE
 + private final Map < HttpString , List < TableEntry > > dynamicTable = new HashMap < > ( ) ;

 static {
 Map < HttpString , TableEntry [ ] > map = new HashMap < > ( ) ;
 <nb> public class HpackEncoder {
 }
 List < TableEntry > dynamic = dynamicTable . get ( headerName ) ;
 if ( dynamic != null ) {
 - for ( TableEntry st : dynamic ) {
 + for ( int i = NUMBER0 ; i < dynamic . size ( ) ; ++ i ) {
 + TableEntry st = dynamic . get ( i ) ;
 if ( st . value . equals ( value ) ) { SINGLE
 return st ;
 }

Prevent iterator allocation in HPack encoding


<nb> public class BitmapFont implements Savable {
 }

 public float getLineWidth ( CharSequence text ) {
 -
 +
 SINGLE
 SINGLE
 SINGLE
 <nb> public class BitmapFont implements Savable {
 SINGLE
 if ( i == text . length ( ) - NUMBER0 ) {
 lineWidth += c . getWidth ( ) * sizeScale ;
 -
 - SINGLE
 +
 + SINGLE
 SINGLE
 SINGLE
 lineWidth += c . getXOffset ( ) * sizeScale ;


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


<nb> package NAMESPACE ;
 COMMENT
 public enum NagiosEncryptionMethod {

 - No , Xor , TripeDes ;
 + No , Xor , TripleDes ;

 }

Added encryptionMode option to camel nagios


<nb> public class StubbingWithThrowablesTest {

 try {
 reader . read ( ) ;
 + fail ( ) ;
 } catch ( Exception e ) {
 assertEquals ( ioException , e ) ;
 }
 <nb> public class StubbingWithThrowablesTest {

 try {
 mock . add ( STRING0 ) ;
 + fail ( ) ;
 } catch ( Error e ) {
 assertEquals ( error , e ) ;
 }


<nb> public class MainController implements Choreographer . FrameCallback {

 bubble . destroy ( ) ;

 - SINGLE
 int bubbleIndex = mBubbles . indexOf ( bubble ) ;
 Util . Assert ( bubbleIndex >= NUMBER0 && bubbleIndex < mBubbles . size ( ) ) ;
 -
 - COMMENT
 - while ( bubbleIndex + NUMBER1 < mBubbles . size ( ) ) {
 - Collections . swap ( mBubbles , bubbleIndex , bubbleIndex + NUMBER1 ) ;
 - bubbleIndex += NUMBER1 ;
 - }
 - COMMENT
 - mBubbles . remove ( bubble ) ;
 mBubbles . remove ( bubble ) ;

 Settings . get ( ) . saveCurrentBubbles ( mBubbles ) ;

Remove some duplicated code that isn t required


<nb> public class ContributionManagerDialog {

 protected void downloadAndUpdateContributionListing ( ) {
 retryConnectingButton . setEnabled ( false ) ;
 -
 + status . setMessage ( Language . text ( STRING0 ) ) ;
 contribListing . downloadAvailableList ( new ContribProgressBar ( progressBar ) {


<nb> import NAMESPACE ;
 import NAMESPACE ;

 public interface ResolutionResultsCache {
 - class MemberType < D extends CallableDescriptor > { }
 - MemberType < FunctionDescriptor > FUNCTION_MEMBER_TYPE = new MemberType < FunctionDescriptor > ( ) ;
 - MemberType < VariableDescriptor > PROPERTY_MEMBER_TYPE = new MemberType < VariableDescriptor > ( ) ;
 + class MemberType < D extends CallableDescriptor > {
 + public final String debugName ;
 +
 + public MemberType ( String name ) {
 + debugName = name ;
 + }
 +
 + @ override
 + public String toString ( ) {
 + return debugName ;
 + }
 + }
 + MemberType < FunctionDescriptor > FUNCTION_MEMBER_TYPE = new MemberType < FunctionDescriptor > ( STRING0 ) ;
 + MemberType < VariableDescriptor > PROPERTY_MEMBER_TYPE = new MemberType < VariableDescriptor > ( STRING1 ) ;

 < D extends CallableDescriptor > void recordResolutionResults ( @ notnull CallKey callKey , @ notnull MemberType < D > memberType , @ notnull OverloadResolutionResultsImpl < D > results ) ;


<nb>

 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class WebApplication {
 log . debug ( STRING0 ) ;

 registerComponent ( ActionMethodParser . class ) ;
 + registerComponent ( ActionMethodParamNameResolver . class ) ;
 registerComponent ( ActionPathRewriter . class ) ;
 registerComponent ( ActionPathMacroManager . class ) ;
 registerComponent ( ActionsManager . class ) ;


<nb> public abstract class AbstractTestQueries
 STRING0 ) ;
 }

 + @ test
 public void testOuterJoinWithCommonExpression ( )
 throws Exception
 {


<nb> public class AppBarLayout extends LinearLayout {
 break ;
 }
 }
 - return mDownPreScrollRange = Math . max ( NUMBER0 , range - getTopInset ( ) ) ;
 + return mDownPreScrollRange = Math . max ( NUMBER0 , range ) ;
 }

 COMMENT

Fix AppBarLayout enterAlwaysCollapsed with inset window


<nb> import NAMESPACE ;
 import NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;

 COMMENT
 COMMENT
 <nb> final class SubscriberRegistry {
 COMMENT
 COMMENT
 COMMENT
 - @ guardedby ( STRING0 )
 private final ConcurrentMap < Class < ? > , CopyOnWriteArraySet < Subscriber > > subscribers =
 Maps . newConcurrentMap ( ) ;

Fix GuardedBy annotations with invalid lock expressions


<nb> public class TcpFailureDetector extends ChannelInterceptorBase {
 } else {
 if ( removeSuspectsTimeout > NUMBER0 ) {
 long timeNow = System . currentTimeMillis ( ) ;
 - int timeIdle = ( int ) ( ( timeNow - removeSuspects . get ( m ) ) / NUMBER1 ) ;
 + int timeIdle = ( int ) ( ( timeNow - removeSuspects . get ( m ) . longValue ( ) ) / NUMBER1 ) ;
 if ( timeIdle > removeSuspectsTimeout ) {
 removeSuspects . remove ( m ) ; SINGLE
 }


<nb> public class BranchesPanel extends JPanel {
 } ) ;
 }

 + @ override
 + public Dimension getPreferredSize ( ) {
 + if ( ! isVisible ( ) ) {
 + return new Dimension ( NUMBER0 , NUMBER0 ) ;
 + }
 + return super . getPreferredSize ( ) ;
 + }
 +
 private void recreateComponents ( ) {
 for ( Map . Entry < VirtualFile , List < RefGroup > > entry : myRefGroups . entrySet ( ) ) {
 if ( myRoots == null || myRoots . contains ( entry . getKey ( ) ) ) {

vcs log when branches panel is invisible it has zero size


<nb> public class SocketConnection implements Connection {
 }
 }
 catch ( Exception e ) {
 - Log . warn ( STRING0 , e ) ;
 + Log . warn ( STRING0 + STRING1 + this . toString ( ) , e ) ;
 close ( ) ;
 }
 return ! isClosed ( ) ;


<nb> import NAMESPACE
 COMMENT
 COMMENT
 COMMENT
 - public class OutputLayer extends BaseLayer implements Serializable , Classifier , IterationListener {
 + public class OutputLayer extends BaseLayer implements Serializable , Classifier {

 private static final long serialVersionUID = - NUMBER0 ;
 SINGLE


<nb> public class OracleTableColumnManager extends SQLTableColumnManager < OracleTableC

 final OracleTableColumn column = new OracleTableColumn ( parent ) ;
 column . setName ( getNewColumnName ( context , parent ) ) ;
 - column . setType ( ( OracleDataType ) columnType ) ;
 + column . setDataType ( ( OracleDataType ) columnType ) ;
 column . setTypeName ( columnType == null ? STRING0 : columnType . getName ( ) ) ; SINGLE
 column . setMaxLength ( columnType != null && columnType . getDataKind ( ) == DBPDataKind . STRING ? NUMBER0 : NUMBER1 ) ;
 column . setValueType ( columnType == null ? Types . INTEGER : columnType . getTypeID ( ) ) ;
 <nb> public class OracleTableColumn extends JDBCTableColumn < OracleTableBase > implemen
 return type ;
 }

 - public void setType ( OracleDataType type )
 + public void setDataType ( OracleDataType type )
 {
 this . type = type ;
 this . typeName = type == null ? STRING1 : type . getFullQualifiedName ( ) ;


<nb> public class BSONSplitter extends Configured implements Tool {
 BSONObject splitInfo = ( BSONObject ) callback . get ( ) ;
 splits . add ( createFileSplitFromBSON ( splitInfo , fs , inputFile ) ) ;
 }
 + fsDataStream . close ( ) ;
 + fs . close ( ) ;
 splitsList = splits ;
 } SINGLE


<nb> public class Canvas {

 protected void finalize ( ) throws Throwable {
 super . finalize ( ) ;
 - finalizer ( mNativeCanvas ) ;
 + SINGLE
 + SINGLE
 + if ( mNativeCanvas != NUMBER0 ) {
 + finalizer ( mNativeCanvas ) ;
 + }
 }

 COMMENT

Fix Canvas finalize for the case where the constructor throws an exception


<nb> public class StringUtilTest extends TestCase {
 Collections . sort ( strings , c ) ;
 assertEquals ( Arrays . asList ( STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 , STRING7 , STRING8 , STRING9 ,
 STRING10 , STRING11 , STRING12 , STRING13 ) , strings ) ;
 - final List < String > strings2 = new ArrayList ( Arrays . asList ( STRING14 , STRING15 , STRING16 , STRING17 ) ) ;
 + final List < String > strings2 = new ArrayList ( Arrays . asList ( STRING14 , STRING18 , STRING15 , STRING19 , STRING16 , STRING17 ) ) ;
 Collections . sort ( strings2 , c ) ;
 - assertEquals ( Arrays . asList ( STRING16 , STRING14 , STRING15 , STRING17 ) , strings2 ) ;
 + assertEquals ( Arrays . asList ( STRING16 , STRING14 , STRING18 , STRING15 , STRING17 , STRING19 ) , strings2 ) ;
 }
 }

test that longer strings sort behind shorter strings


<nb> public final class UpgradeService {
 } ) ;
 if ( from > NUMBER0 && from <= NUMBER1 )
 newVersionString ( changeLog , STRING0 , new String [ ] {
 - STRING1 ,
 + STRING2 ,
 + STRING3 ,
 } ) ;

 changeLog . append ( STRING4 ) ;


<nb> public class ModuleManagerComponent extends ModuleManagerImpl {

 @ override
 protected void fireModulesAdded ( ) {
 + if ( myModuleModel . myModules . isEmpty ( ) ) {
 + return ;
 + }
 +
 Runnable runnableWithProgress = new Runnable ( ) {
 @ override
 public void run ( ) {


<nb> public class MainActivity extends AppCompatActivity {
 public void onCreate ( Bundle savedInstanceState ) {
 super . onCreate ( savedInstanceState ) ;

 - startActivity ( new Intent ( this , HtmlLinkExampleActivity . class ) ) ;
 -
 SINGLE
 setContentView ( R . layout . activity_main ) ;

remove intent to go to other activity on start


<nb> class Main {
 private boolean apiFormat = false ;

 COMMENT
 - private static int MAXFILESIZE = NUMBER0 ;
 + private final static int MAXFILESIZE = NUMBER0 ;

 Main ( boolean verbose , Language language , Language motherTongue ) throws IOException ,
 ParserConfigurationException , SAXException {


<nb> public class PlanGenerator {
 case TRANSIT :
 String route = backEdgeNarrative . getName ( ) ;
 if ( mode == TraverseMode . ALIGHTING ) {
 - if ( showIntermediateStops && leg . stop != null ) {
 + if ( showIntermediateStops && leg . stop != null && leg . stop . size ( ) > NUMBER0 ) {
 SINGLE
 leg . stop . remove ( leg . stop . size ( ) - NUMBER1 ) ;
 if ( leg . stop . isEmpty ( ) ) {

maybe fix index error reported by Lukasz Witkowski


<nb> public class Cell < T extends Actor > implements Poolable {
 return ( Cell < A > ) this ;
 }

 + COMMENT
 + public Cell < T > clearActor ( ) {
 + setActor ( null ) ;
 + return this ;
 + }
 +
 COMMENT
 public T getActor ( ) {
 return ( T ) actor ;


<nb> public class XDocsPagesTest {

 private static void validateCheckSection ( ModuleFactory moduleFactory , String fileName ,
 String sectionName , Node section ) throws Exception {
 - Object instance ;
 + final Object instance ;

 try {
 instance = moduleFactory . createModule ( sectionName ) ;

resolve checkstyle violation final variable


<nb> public class PGraphicsPDF extends PGraphicsJava2D {
 int imageHeight = image . height ;
 scale ( ( x2 - x1 ) / ( float ) imageWidth ,
 ( y2 - y1 ) / ( float ) imageHeight ) ;
 - g2 . drawImage ( image . getImage ( ) , u1 , v1 , null ) ;
 + if ( u2 - u1 != imageWidth || v2 - v1 != imageHeight ) {
 + PImage tmp = new PImage ( u2 - u1 , v2 - v1 , ARGB ) ;
 + tmp . copy ( image , u1 , v1 , u2 , v2 , NUMBER0 , NUMBER0 , u2 - u1 , v2 - v1 ) ;
 + g2 . drawImage ( image . getImage ( ) , NUMBER0 , NUMBER0 , null ) ;
 + } else {
 + g2 . drawImage ( image . getImage ( ) , u1 , v1 , null ) ;
 + }
 popMatrix ( ) ;
 }

Add support for custom source regions in imageImpl


<nb> public class MacHashFunctionTest extends TestCase {
 }

 @ suppresswarnings ( STRING0 )
 + @ suppressunderandroid SINGLE
 public void testNoProviders ( ) {
 ProviderList providers = Providers . getProviderList ( ) ;
 Providers . setProviderList ( ProviderList . newList ( ) ) ;
 <nb> public class MacHashFunctionTest extends TestCase {
 Hashing . hmacMd5 ( badKey ) ;
 fail ( ) ;
 } catch ( IllegalArgumentException expected ) {
 + } catch ( NullPointerException toleratedOnAndroid ) {
 + SINGLE
 }
 }


<nb> public class ClsFileImpl extends ClsRepositoryPsiElement < PsiClassHolderFileStub >
 LOG . warn ( STRING0 + getVirtualFile ( ) . getPresentableUrl ( ) ) ;
 stubTree = new StubTree ( new PsiJavaFileStubImpl ( STRING1 , true ) ) ;
 }
 -
 - myStub = new SoftReference < StubTree > ( stubTree ) ;
 SINGLE
 ( ( PsiFileStubImpl ) stubTree . getRoot ( ) ) . setPsi ( this ) ;
 +
 + myStub = new SoftReference < StubTree > ( stubTree ) ;
 }

 return stubTree ;

prevent semi initialized cls stub from being visible from another thread may lead to wrong isValid false


<nb> public abstract class Criterion extends CompilableWithArguments {
 return new Criterion ( null ) {
 @ override
 protected void populate ( SqlBuilder builder , boolean forSqlValidation ) {
 + if ( forSqlValidation ) {
 + builder . sql . append ( STRING0 ) ;
 + }
 builder . sql . append ( selection ) ;
 if ( selectionArgs != null && selectionArgs . length > NUMBER0 ) {
 if ( builder . args == null ) {
 <nb> public abstract class Criterion extends CompilableWithArguments {
 }
 Collections . addAll ( builder . args , selectionArgs ) ;
 }
 + if ( forSqlValidation ) {
 + builder . sql . append ( STRING1 ) ;
 + }
 }
 } ;
 }

Any use of Criterion fromRawSelection should get extra parentheses when compiled for SQL validation


<nb> public class BatchOperationFunctionalTest
 }
 largereq . append ( STRING0 ) ;

 - System . out . println ( Runtime . getRuntime ( ) . totalMemory ( ) ) ;
 -
 Date d = new Date ( ) ;
 JaxRsResponse response = RestRequest . req ( ) . post ( functionalTestHelper . dataUri ( ) + STRING1 , largereq . toString ( ) ) ;


<nb> public class DuplicatesIndex extends FileBasedIndexExtension < Integer , TIntArrayL
 private static boolean ourEnabledOldProfiles = false ;

 @ nonnls public static final ID < Integer , TIntArrayList > NAME = ID . create ( STRING0 ) ;
 - private static final int myBaseVersion = NUMBER0 ;
 + private static final int myBaseVersion = NUMBER1 ;

 private final FileBasedIndex . InputFilter myInputFilter = new FileBasedIndex . InputFilter ( ) {
 @ override


<nb> public class EncodedImage implements Closeable {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public void copyMetaDataFrom ( EncodedImage encodedImage ) {
 + mImageFormat = encodedImage . getImageFormat ( ) ;
 + mWidth = encodedImage . getWidth ( ) ;
 + mHeight = encodedImage . getHeight ( ) ;
 + mRotationAngle = encodedImage . getRotationAngle ( ) ;
 + mSampleSize = encodedImage . getSampleSize ( ) ;
 + mStreamSize = encodedImage . getSize ( ) ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 public static boolean isMetaDataAvailable ( EncodedImage encodedImage ) {

Added copyMetaDataFrom method to EncodedImage


<nb> public class Compiler extends AbstractCompiler {
 return hasHaltingErrors ( ) ;
 }

 + SINGLE
 COMMENT
 @ override
 void addToDebugLog ( String str ) {
 - debugLog . append ( str ) ;
 - debugLog . append ( STRING0 ) ;
 - logger . fine ( str ) ;
 + if ( options . useDebugLog ) {
 + debugLog . append ( str ) ;
 + debugLog . append ( STRING0 ) ;
 + logger . fine ( str ) ;
 + }
 }

 @ override
 <nb> public class CompilerOptions implements Serializable , Cloneable {
 Collections . emptyList ( ) ;

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + boolean useDebugLog ;
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class CompilerOptions implements Serializable , Cloneable {
 SINGLE
 aliasHandler = NULL_ALIAS_TRANSFORMATION_HANDLER ;
 errorHandler = null ;
 + useDebugLog = false ;
 }

 COMMENT

Don t retain strings in the debugLog by default


<nb> public class WebView extends AbsoluteLayout
 break ;
 case REQUEST_KEYBOARD_WITH_SELECTION_MSG_ID :
 displaySoftKeyboard ( true ) ;
 - updateTextSelectionFromMessage ( msg . arg1 , msg . arg2 ,
 - ( WebViewCore . TextSelectionData ) msg . obj ) ;
 - break ;
 + SINGLE
 case UPDATE_TEXT_SELECTION_MSG_ID :
 - SINGLE
 - SINGLE
 - SINGLE
 - rebuildWebTextView ( ) ;
 updateTextSelectionFromMessage ( msg . arg1 , msg . arg2 ,
 ( WebViewCore . TextSelectionData ) msg . obj ) ;
 break ;

Remove call to rebuildWebTextView from handling selection change


<nb> public class StoreView extends Request {
 int len = NUMBER0 ;
 int off = NUMBER0 ;
 String filter = _filter . value ( ) ;
 - SINGLE
 + SINGLE
 SINGLE
 Set < Key > keySet = new TreeSet ( H2O . globalKeySet ( null ) ) ;
 int kcnt = keySet . size ( ) ;
 <nb> public class StoreView extends Request {
 if ( filter != null && SINGLE
 key . toString ( ) . indexOf ( filter ) == - NUMBER1 )
 continue ; SINGLE
 - if ( ! key . user_allowed ( ) ) SINGLE
 - continue ;
 if ( H2O . get ( key ) == null ) continue ; SINGLE
 if ( off >= offset ) { SINGLE
 if ( len < view ) {


<nb> public class ImportingUtilities {
 } finally {
 stream2 . close ( ) ;
 }
 + } else {
 + String value = Streams . asString ( stream ) ;
 + parameters . put ( name , value ) ;
 + SINGLE
 + SINGLE
 +
 }

 } else { SINGLE

Parse parameters from multipart form data POSTs rather than just dropping them needed for Windmill tests among other things


<nb> public abstract class AbstractActiveService {

 public void activate ( ) {
 + shutdown = false ;
 start ( ) ;
 }

fixed bug with services shutting down by itself


<nb> public class SvnUtil {
 @ nullable final SVNRevision revision ,
 @ nullable final SVNRevision pegRevision )
 throws VcsException {
 - ClientFactory factory = target . isFile ( ) ? vcs . getFactory ( target . getFile ( ) ) : vcs . getFactory ( ) ;
 -
 - return factory . createContentClient ( ) . getContent ( target , revision , pegRevision ) ;
 + return vcs . getFactory ( target ) . createContentClient ( ) . getContent ( target , revision , pegRevision ) ;
 }

 public static boolean hasDefaultPort ( @ notnull SVNURL result ) {

Refactored SvnUtil getFileContents reuse factory selection logic from SvnVcs


<nb> public class DefaultWebSocketProcessor implements WebSocketProcessor , Serializab
 throw new AtmosphereMappingException ( STRING0 + request . getRequestURI ( ) ) ;
 }
 proxy = postProcessMapping ( webSocket , request , handler ) ;
 + AtmosphereResourceImpl . class . cast ( webSocket . resource ( ) ) . action ( ) . type ( asynchronousProcessor . invokeInterceptors ( handler . interceptors ( ) , webSocket . resource ( ) ) . type ( ) ) ;
 }

 SINGLE


<nb> public class TemplateResourceReader implements ContentResourceReader {
 Configuration cfg = new Configuration ( CURRENT_VERSION ) ;
 cfg . setObjectWrapper ( new DefaultObjectWrapperBuilder ( CURRENT_VERSION ) . build ( ) ) ;
 cfg . setDefaultEncoding ( STRING0 ) ;
 - cfg . setIncompatibleImprovements ( new Version ( NUMBER0 , NUMBER1 , NUMBER2 ) ) ;
 cfg . setTemplateLoader ( templateLoader ) ;
 return cfg ;
 }


<nb> public class PifaceBinding extends AbstractActiveBinding < PifaceBindingProvider >
 private static final int DEFAULT_SOCKET_TIMEOUT_MS = NUMBER0 ;
 private static final int DEFAULT_MAX_RETRIES = NUMBER1 ;

 - SINGLE
 - private static final byte ERROR_RESPONSE = - NUMBER2 ;
 -
 SINGLE
 private final Map < String , PifaceNode > pifaceNodes = new HashMap < String , PifaceNode > ( ) ;

 <nb> public class PifaceBinding extends AbstractActiveBinding < PifaceBindingProvider >
 int attempt = NUMBER2 ;
 while ( attempt <= node . maxRetries ) {
 try {
 - byte response = sendCommand ( node , command , commandAck , pinNumber , pinValue , attempt ) ;
 - if ( response != ERROR_RESPONSE )
 - return response ;
 + return sendCommand ( node , command , commandAck , pinNumber , pinValue , attempt ) ;
 } catch ( ErrorResponseException e ) {
 attempt ++ ;
 }

PiFace binding reads wrong state for output pins upon startup


<nb> public class MediaRouteButton extends View {
 final RouteInfo route = mRouter . getRouteAt ( i ) ;
 if ( ( route . getSupportedTypes ( ) & mRouteTypes ) != NUMBER0 &&
 route != mRouter . getSystemAudioRoute ( ) ) {
 - mRouter . selectRoute ( mRouteTypes , route ) ;
 + mRouter . selectRouteInt ( mRouteTypes , route ) ;
 }
 }
 }

Permit MediaRouteButton to select system routes in toggle mode


<nb> public class WordPressDB {
 public static final String COLUMN_NAME_VIDEO_PRESS_SHORTCODE = STRING0 ;
 public static final String COLUMN_NAME_UPLOAD_STATE = STRING1 ;

 - private static final int DATABASE_VERSION = NUMBER0 ;
 + private static final int DATABASE_VERSION = NUMBER1 ;

 private static final String CREATE_TABLE_BLOGS = STRING2
 + STRING3 ;
 <nb> public class WordPressDB {
 case NUMBER2 :
 AccountTable . migrationAddEmailAddressField ( db ) ;
 currentVersion ++ ;
 + case NUMBER0 :
 + SINGLE
 + ctx . deleteDatabase ( STRING4 ) ;
 + currentVersion ++ ;
 }
 db . setVersion ( DATABASE_VERSION ) ;
 }

Delete simperium DB on startup before the initialization of simperium


<nb> public class LayoutShadowNode extends ReactShadowNode {
 ViewProps . MARGIN_RIGHT ,
 ViewProps . MARGIN_TOP ,
 ViewProps . MARGIN_BOTTOM ,
 - } , defaultFloat = FLOAT0 )
 + } , defaultFloat = CSSConstants . UNDEFINED )
 public void setMargins ( int index , float margin ) {
 setMargin ( ViewProps . PADDING_MARGIN_SPACING_TYPES [ index ] , PixelUtil . toPixelFromDIP ( margin ) ) ;
 }
 <nb> public class LayoutShadowNode extends ReactShadowNode {
 ViewProps . BORDER_RIGHT_WIDTH ,
 ViewProps . BORDER_TOP_WIDTH ,
 ViewProps . BORDER_BOTTOM_WIDTH ,
 - } , defaultFloat = FLOAT0 )
 + } , defaultFloat = CSSConstants . UNDEFINED )
 public void setBorderWidths ( int index , float borderWidth ) {
 setBorder ( ViewProps . BORDER_SPACING_TYPES [ index ] , PixelUtil . toPixelFromDIP ( borderWidth ) ) ;
 }

Fix resetting margins and borders on android


<nb> public class LanguageConsoleImpl implements Disposable , TypeSafeDataProvider {
 else {
 myPanel . removeAll ( ) ;
 myPanel . add ( myHistoryViewer . getComponent ( ) , BorderLayout . CENTER ) ;
 - fileManager . openTextEditor ( new OpenFileDescriptor ( getProject ( ) , virtualFile , NUMBER0 ) , true ) ;
 + SINGLE
 + myCurrentEditor = fileManager . openTextEditor ( new OpenFileDescriptor ( getProject ( ) , virtualFile , NUMBER0 ) , true ) ;
 myHistoryViewer . setHorizontalScrollbarVisible ( true ) ;
 }
 }

peter full editor not set as current on first appearance fixed


<nb> public abstract class HttpResolution {
 if ( redirectPort == - NUMBER0 ) {
 redirectPort = NUMBER1 ;
 }
 + SINGLE
 + String uri = redirectURI . getRawPath ( ) ;
 + String query = redirectURI . getRawQuery ( ) ;
 + if ( query != null ) {
 + uri = uri + STRING0 + query ; SINGLE
 + }
 createClient ( redirectURI . getScheme ( ) , redirectURI . getHost ( ) , redirectPort ) ;
 - makeRequest ( redirectURI . getScheme ( ) , redirectURI . getHost ( ) , redirectPort , redirectURI . getPath ( ) ) ;
 + makeRequest ( redirectURI . getScheme ( ) , redirectURI . getHost ( ) , redirectPort , uri ) ;
 } catch ( URISyntaxException e ) {
 log . error ( STRING1 + location ) ;
 }

Fix HttpResolution to follow entire location header uri including query


<nb> public class Install {
 public static final String DEFAULT_DISTRIBUTION_PATH = STRING0 ;
 private final IDownload download ;
 private final PathAssembler pathAssembler ;
 - private final ExclusiveFileAccessManager exclusiveFileAccessManager = new ExclusiveFileAccessManager ( NUMBER0 , NUMBER1 ) ;
 + private final ExclusiveFileAccessManager exclusiveFileAccessManager = new ExclusiveFileAccessManager ( NUMBER2 , NUMBER3 ) ;

 public Install ( IDownload download , PathAssembler pathAssembler ) {
 this . download = download ;

Use a larger timeout waiting for the distribution to be available


<nb> public class TestJoystick extends SimpleApplication {
 }

 public void setAxisValue ( JoystickAxis axis , float value ) {
 - SINGLE
 + System . out . println ( STRING0 + axis . getName ( ) + STRING1 + value ) ;
 if ( axis == axis . getJoystick ( ) . getXAxis ( ) ) {
 setXAxis ( value ) ;
 } else if ( axis == axis . getJoystick ( ) . getYAxis ( ) ) {

revert commented out sysout on axis update


<nb> import NAMESPACE ;
 @ mojo ( name = STRING0 , defaultPhase = LifecyclePhase . GENERATE_RESOURCES )
 public final class InstallNodeAndNpmMojo extends AbstractMojo {

 - @ parameter ( defaultValue = STRING1 )
 + COMMENT
 + COMMENT
 + COMMENT
 + @ parameter ( required = true )
 private String nodeVersion ;

 - @ parameter ( defaultValue = STRING2 )
 + COMMENT
 + COMMENT
 + COMMENT
 + @ parameter ( required = true )
 private String npmVersion ;

 + COMMENT
 + COMMENT
 + COMMENT
 @ parameter ( defaultValue = STRING3 )
 private String targetDir ;

 <nb> public final class KarmaRunMojo extends AbstractMojo {
 @ parameter ( defaultValue = STRING3 , property = STRING4 , required = false )
 private File workingDirectory ;

 + COMMENT
 + COMMENT
 + COMMENT
 @ parameter ( defaultValue = STRING5 )
 private String karmaConfPath ;

Make nodeVersion and npmVersion obligatory add description to plugin properties


<nb> public class CompletionResult {
 }
 } ;
 }
 -
 - public static Mapper < CompletionResult , String > completionResultToJson ( ) {
 - return new Mapper < CompletionResult , String > ( ) {
 - public String call ( CompletionResult result ) throws Exception {
 - return methods . toJson ( result ) ;
 - }
 - } ;
 - }
 -
 - public static Mapper < String , CompletionResult > completionResultFromJson ( ) {
 - return new Mapper < String , CompletionResult > ( ) {
 - public CompletionResult call ( String result ) throws Exception {
 - return methods . fromJson ( result ) ;
 - }
 - } ;
 - }
 }

 public static final class methods {


<nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 <nb> public class TransferCallDialog
 this . setOkButtonText ( GuiActivator . getResources ( )
 . getI18NString ( STRING0 ) ) ;

 + this . setMinimumSize ( new Dimension ( NUMBER0 , NUMBER0 ) ) ;
 +
 addOkButtonListener ( new ActionListener ( )
 {
 public void actionPerformed ( ActionEvent e )

Set minimum size for transfer call dialog


<nb> public class VoiceRouter {

 SINGLE
 if ( next == null || next . distance == NUMBER0 ) {
 - if ( currentStatus <= STATUS_UNKNOWN && currentDirection > NUMBER0 ) {
 + SINGLE
 + if ( currentStatus <= STATUS_UNKNOWN ) {
 CommandBuilder play = getNewCommandPlayerToPlay ( ) ;
 if ( play != null ) {
 play . goAhead ( router . getLeftDistance ( ) ) . andArriveAtDestination ( ) . play ( ) ;

announce final prompt again if recovering from a U turn when possible situation


<nb>
 package NAMESPACE ;

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

 @ implementation
 public static Drawable createFromStream ( InputStream is , String srcName ) {
 - BitmapDrawable drawable = new BitmapDrawable ( ) ;
 + BitmapDrawable drawable = new BitmapDrawable ( Robolectric . newInstanceOf ( Bitmap . class ) ) ;
 shadowOf ( drawable ) . setSource ( srcName ) ;
 return drawable ;
 }

createFromStream should create a BitmapDrawable which contains an instance of a bitmap


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> class TaskRunner extends InterruptingExecutionThreadService {

 private void pullImage ( final String image ) throws DockerException , InterruptedException {
 listener . pulling ( ) ;
 - docker . pull ( image ) ;
 +
 + SINGLE
 + try {
 + docker . pull ( image ) ;
 + } catch ( ImageNotFoundException e ) {
 + log . warn ( STRING0 , image , e ) ;
 + }
 +
 + SINGLE
 + docker . inspectImage ( image ) ;
 }

 public static interface Listener {


<nb> public class Logger

 public void log ( Level level , String message , Object . . . parameters )
 {
 -
 - final String logMessage = String . format ( message , parameters ) ;
 - if ( logger != null )
 - {
 - if ( logger . isLoggable ( level ) )
 - {
 - logger . log ( level , logMessage ) ;
 - }
 - }
 - else
 + SINGLE
 + if ( logger . isLoggable ( level ) )
 {
 - System . out . println (
 - String . format ( STRING0 , level . getName ( ) , logMessage ) ) ;
 + final String logMessage = String . format ( message , parameters ) ;
 +
 + logger . log ( level , logMessage ) ;
 }
 }


<nb> public class TomcatPlugin implements ProfilerPlugin {
 InstrumentClass target = instrumentContext . getInstrumentClass ( classLoader , className , classfileBuffer ) ;
 if ( target != null ) {
 target . weave ( STRING0 ) ;
 + return target . toBytecode ( ) ;
 }

 - return target . toBytecode ( ) ;
 + return null ;
 }
 } ) ;
 }


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


<nb> public class DrawerMenuAdapter extends ArrayAdapter < NavDrawerItem > {
 public DrawerMenuAdapter ( Context context , int textViewResourceId , List < NavDrawerItem > objects ) {
 super ( context , textViewResourceId , objects ) ;
 inflater = LayoutInflater . from ( context ) ;
 - this . appContext = context . getApplicationContext ( ) ;
 + appContext = context . getApplicationContext ( ) ;

 mInfoButtonListener = new View . OnClickListener ( ) {
 @ override


<nb> public class ProgressWindow extends BlockingProgressIndicator {
 private boolean myStoppedAlready = false ;
 private FocusTrackback myFocusTrackback ;
 private boolean myStared = false ;
 + private boolean myBackgrounded = false ;

 public ProgressWindow ( boolean shouldShowCancel , Project project ) {
 this ( shouldShowCancel , false , project ) ;
 <nb> public class ProgressWindow extends BlockingProgressIndicator {
 public void background ( ) {
 if ( myDialog != null ) {
 GeneralSettings . getInstance ( ) . setSearchInBackground ( true ) ;
 + myBackgrounded = true ;
 myDialog . background ( ) ;
 myDialog = null ;
 }
 <nb> public class ProgressWindow extends BlockingProgressIndicator {
 . setRequestFocus ( true )
 . setCancelCallback ( new Computable < Boolean > ( ) {
 public Boolean compute ( ) {
 - return isCanceled ( ) || ! isRunning ( ) ;
 + return isCanceled ( ) || ! isRunning ( ) || ProgressWindow . this . myBackgrounded ;
 }
 } ) . createPopup ( ) ;
 myPopup . showInCenterOf ( myParentWindow ) ;

hide progress window on background action


<nb> public class SearchDialog extends Dialog implements OnItemClickListener , OnItemS
 Intent intent = new Intent ( action ) ;
 intent . addFlags ( Intent . FLAG_ACTIVITY_NEW_TASK ) ;
 SINGLE
 - SINGLE
 - intent . addFlags ( Intent . FLAG_ACTIVITY_CLEAR_TOP ) ;
 + SINGLE
 + SINGLE
 + if ( mGlobalSearchMode ) {
 + intent . addFlags ( Intent . FLAG_ACTIVITY_CLEAR_TOP ) ;
 + }
 if ( data != null ) {
 intent . setData ( data ) ;
 }

Only use FLAG_ACTIVITY_CLEAR_TOP on the search intent when from global search


<nb> public class ResourceLoader {
 return resourcePath ;
 } else if ( ( resourcePath = getAndroidResourcePathFromSystemEnvironment ( ) ) != null ) {
 return resourcePath ;
 + } else if ( ( resourcePath = getAndroidResourcePathFromSystemProperty ( ) ) != null ) {
 + return resourcePath ;
 } else if ( ( resourcePath = getAndroidResourcePathByExecingWhichAndroid ( ) ) != null ) {
 return resourcePath ;
 }
 <nb> public class ResourceLoader {
 return null ;
 }

 + private String getAndroidResourcePathFromSystemProperty ( ) {
 + SINGLE
 + String resourcePath = System . getProperty ( STRING0 ) ;
 + if ( resourcePath != null ) {
 + return new File ( resourcePath , getAndroidResourceSubPath ( ) ) . toString ( ) ;
 + }
 + return null ;
 + }
 +
 private String getAndroidResourcePathByExecingWhichAndroid ( ) {
 SINGLE
 SINGLE


<nb> package NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class JolokiaAutoConfigurationTests {
 EnvironmentTestUtils . addEnvironment ( this . context , STRING0 ,
 STRING1 ) ;
 this . context . register ( Config . class , WebMvcAutoConfiguration . class ,
 + PropertyPlaceholderAutoConfiguration . class ,
 ManagementServerPropertiesAutoConfiguration . class ,
 HttpMessageConvertersAutoConfiguration . class ,
 JolokiaAutoConfiguration . class ) ;
 <nb> public class JolokiaAutoConfigurationTests {
 EnvironmentTestUtils . addEnvironment ( this . context ,
 STRING2 ) ;
 this . context . register ( Config . class , WebMvcAutoConfiguration . class ,
 + PropertyPlaceholderAutoConfiguration . class ,
 ManagementServerPropertiesAutoConfiguration . class ,
 HttpMessageConvertersAutoConfiguration . class ,
 JolokiaAutoConfiguration . class ) ;

Fix failing test due to cache timeout property


<nb> public class TouchEvent {
 return this . mAction ;
 }

 + public boolean isActionDown ( ) {
 + return this . mAction == TouchEvent . ACTION_DOWN ;
 + }
 +
 + public boolean isActionUp ( ) {
 + return this . mAction == TouchEvent . ACTION_UP ;
 + }
 +
 + public boolean isActionMove ( ) {
 + return this . mAction == TouchEvent . ACTION_MOVE ;
 + }
 +
 + public boolean isActionCancel ( ) {
 + return this . mAction == TouchEvent . ACTION_CANCEL ;
 + }
 +
 + public boolean isActionOutside ( ) {
 + return this . mAction == TouchEvent . ACTION_OUTSIDE ;
 + }
 +
 COMMENT
 COMMENT
 COMMENT

Added convenience methods to get the action of a TouchEvent


<nb> public class SlidingLayer extends FrameLayout {
 }

 public void setOpenOnTapEnabled ( boolean _openOnTapEnabled ) {
 - _openOnTapEnabled = _openOnTapEnabled ;
 + openOnTapEnabled = _openOnTapEnabled ;
 }


<nb>
 package NAMESPACE ;

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

 <nb> public class HtmlDocumentImpl extends XmlDocumentImpl {
 super ( XmlElementType . HTML_DOCUMENT ) ;
 }

 + public HtmlDocumentImpl ( IElementType type ) {
 + super ( type ) ;
 + }
 +
 @ override
 public XmlTag getRootTag ( ) {
 return ( XmlTag ) findElementByTokenType ( XmlElementType . HTML_TAG ) ;


<nb> public class HystrixCommandTimeoutConcurrencyTesting {
 . andCommandKey ( HystrixCommandKey . Factory . asKey ( STRING0 ) )
 . andCommandPropertiesDefaults ( HystrixCommandProperties . Setter ( )
 . withExecutionTimeoutInMilliseconds ( NUMBER0 )
 - . withCircuitBreakerEnabled ( false ) )
 + . withCircuitBreakerEnabled ( false )
 + . withFallbackIsolationSemaphoreMaxConcurrentRequests ( NUM_CONCURRENT_COMMANDS ) )
 . andThreadPoolPropertiesDefaults ( HystrixThreadPoolProperties . Setter ( )
 . withCoreSize ( NUM_CONCURRENT_COMMANDS ) ) ) ;
 }

Made fallback semaphore allow maximum concurrent fallbacks in unit test


<nb> public class FlickrApi extends DefaultApi10a
 @ override
 public String getAccessTokenEndpoint ( )
 {
 - return STRING0 ;
 + return STRING1 ;
 }

 COMMENT
 <nb> public class FlickrApi extends DefaultApi10a
 @ override
 public String getAuthorizationUrl ( Token requestToken )
 {
 - return STRING2 + requestToken . getToken ( ) ;
 + return STRING3 + requestToken . getToken ( ) ;
 }

 COMMENT
 <nb> public class FlickrApi extends DefaultApi10a
 @ override
 public String getRequestTokenEndpoint ( )
 {
 - return STRING4 ;
 + return STRING5 ;
 }
 }


<nb> public class GroupByQueryEngine
 }
 cursor . advance ( ) ;
 }
 - while ( ! cursor . isDone ( ) ) {
 + while ( ! cursor . isDone ( ) && rowUpdater . getNumRows ( ) < config . getMaxIntermediateRows ( ) ) {
 ByteBuffer key = ByteBuffer . allocate ( dimensions . size ( ) * Ints . BYTES ) ;

 unprocessedKeys = rowUpdater . updateValues ( key , dimensions ) ;
 - if ( unprocessedKeys != null || rowUpdater . getNumRows ( ) > config . getMaxIntermediateRows ( ) ) {
 + if ( unprocessedKeys != null ) {
 break ;
 }

Fix breaking while exceeding max intermediate rows


<nb>
 COMMENT
 package NAMESPACE ;

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

 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 <nb>
 COMMENT
 package NAMESPACE ;

 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

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

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

fixed cs issues by removing unused certs


<nb> package NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public class ComboEditorCompletionContributor extends CompletionContributor {
 + public class ComboEditorCompletionContributor extends CompletionContributor implements DumbAware {

 public static final Key < Boolean > CONTINUE_RUN_COMPLETION = Key . create ( STRING0 ) ;

make editorComboBox completion for String ComboBoxes available during dumb mode


<nb> public class TachyonFSContract extends AbstractFSContract {
 public static final String CONTRACT_XML = STRING0 ;
 public static final String SYSPROP_TEST_BUILD_DATA = STRING1 ;
 public static final String DEFAULT_TEST_BUILD_DATA_DIR = STRING2 ;
 - private LocalTachyonCluster mLocalTachyonCluster ;
 + private final LocalTachyonCluster mLocalTachyonCluster ;
 private FileSystem mFS ;

 COMMENT


<nb> public class ShadowHttpGet extends ShadowHttpRequestBase {
 realHttpGet . setURI ( uri ) ;
 }

 + public void __constructor__ ( String uri ) {
 + this . __constructor__ ( URI . create ( uri ) ) ;
 + }
 +
 @ implementation
 public String getMethod ( ) {
 return HttpGet . METHOD_NAME ;
 <nb> public class HttpGetTest {
 }

 @ test
 - public void shouldReturnUri ( ) throws Exception {
 + public void shouldConstructWithURI ( ) throws Exception {
 URI uri = URI . create ( STRING0 ) ;
 assertSame ( uri , new HttpGet ( uri ) . getURI ( ) ) ;
 }
 +
 + @ test
 + public void shouldConstructWithString ( ) throws Exception {
 + assertEquals ( URI . create ( STRING0 ) , new HttpGet ( STRING0 ) . getURI ( ) ) ;
 + }
 }

Added support for multiple requests in ShadowAbstractHttpClient


<nb> abstract public class Node
 COMMENT
 class EventContentFilter extends FlexibleStanzaTypeFilter < Message >
 {
 - private String firstElement ;
 - private String secondElement ;
 + private final String firstElement ;
 + private final String secondElement ;

 EventContentFilter ( String elementName )
 {
 - firstElement = elementName ;
 + this ( elementName , null ) ;
 }

 EventContentFilter ( String firstLevelEelement , String secondLevelElement )


<nb> public class ClassFilterEditor extends JPanel implements ComponentWithEmptyText
 private final String myPatternsHelpId ;

 public ClassFilterEditor ( Project project ) {
 - this ( project , null , null ) ;
 + this ( project , null ) ;
 + }
 +
 + public ClassFilterEditor ( Project project , ClassFilter classFilter ) {
 + this ( project , classFilter , null ) ;
 }

 public ClassFilterEditor ( Project project , ClassFilter classFilter , @ nullable String patternsHelpId ) {

add constructor in order not to break open API


<nb> public abstract class BaseActualServer < T extends ResponseSetting < T > > extends Ba
 } ;
 }

 + @ override
 public int port ( ) {
 if ( port . isPresent ( ) ) {
 return port . get ( ) ;
 <nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;

 import static NAMESPACE ;
 import static NAMESPACE ;

 - public abstract class BaseServer < T extends ResponseSetting < T > > extends BaseResponseSettingConfiguration < T > {
 + public abstract class BaseServer < T extends ResponseSetting < T > >
 + extends BaseResponseSettingConfiguration < T > implements Server < T > {
 protected abstract T onRequestAttached ( final RequestMatcher matcher ) ;

 public T request ( final RequestMatcher matcher ) {

implemented server interface for base server


<nb> public abstract class InstancePermission extends ClusterPermission {
 protected static final int CREATE = NUMBER0 ;
 protected static final int DESTROY = NUMBER1 ;

 + private static final WildcardConfigPatternMatcher CONFIG_PATTERN_MATCHER = new WildcardConfigPatternMatcher ( ) ;
 +
 protected final int mask ;
 protected final String actions ;

 - private final WildcardConfigPatternMatcher configPatternMatcher = new WildcardConfigPatternMatcher ( ) ;
 -
 public InstancePermission ( String name , String . . . actions ) {
 super ( name ) ;
 if ( name == null || STRING0 . equals ( name ) ) {
 <nb> public abstract class InstancePermission extends ClusterPermission {
 return false ;
 }

 - if ( ! configPatternMatcher . matches ( that . getName ( ) , this . getName ( ) ) ) {
 + if ( ! CONFIG_PATTERN_MATCHER . matches ( that . getName ( ) , this . getName ( ) ) ) {
 return false ;
 }


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

Fixed incorrect comment in QuickSort java


<nb> public class StudyDirectoryProjectGenerator extends PythonProjectGenerator imple
 @ notnull
 @ override
 public String getName ( ) {
 - return STRING0 ;
 + return STRING1 ;
 }


<nb> public class CommandResult {
 return response ;
 }

 + public boolean isOk ( ) {
 + return getResponse ( ) . get ( STRING0 ) . equals ( FLOAT0 ) ;
 + }
 public int getErrorCode ( ) {
 return ( Integer ) getResponse ( ) . get ( STRING1 ) ;
 }


<nb> import NAMESPACE ;
 COMMENT
 public class ElasticsearchClient extends DB {

 - public static final String DEFAULT_CLUSTER_NAME = STRING0 ;
 - public static final String DEFAULT_INDEX_KEY = STRING1 ;
 - public static final String DEFAULT_REMOTE_HOST = STRING2 ;
 + private static final String DEFAULT_CLUSTER_NAME = STRING0 ;
 + private static final String DEFAULT_INDEX_KEY = STRING1 ;
 + private static final String DEFAULT_REMOTE_HOST = STRING2 ;
 private Node node ;
 private Client client ;
 private String indexKey ;

elasticsearch Restrict visibility of defaults


<nb> public class ParticleEmitter {
 aligned = emitter . aligned ;
 behind = emitter . behind ;
 additive = emitter . additive ;
 + premultipliedAlpha = emitter . premultipliedAlpha ;
 }

 private void initialize ( ) {

Copy premultipliedAlpha in copy constructor


<nb> static class InstanceMethodExpr extends MethodExpr {
 {
 Type type = Type . getType ( method . getDeclaringClass ( ) ) ;
 target . emit ( C . EXPRESSION , fn , gen ) ;
 - if ( ! method . getDeclaringClass ( ) . isInterface ( ) )
 - gen . checkCast ( type ) ;
 + SINGLE
 + gen . checkCast ( type ) ;
 MethodExpr . emitTypedArgs ( fn , gen , method . getParameterTypes ( ) , args ) ;
 if ( context == C . RETURN )
 {

added back checkcast before invokevirtual calls


<nb> public final class CentralAuthenticationServiceImpl implements CentralAuthentica
 }

 }
 +
 + log . debug ( STRING0 ,
 + new Object [ ] { registeredService . getName ( ) , principal . getId ( ) , principalId } ) ;
 return principalId ;
 }

Add support for logging when CAS tries to determine the principal Id for a given service


<nb> public class Http11AprProcessor extends AbstractHttp11Processor < Long > {

 @ override
 protected boolean breakKeepAliveLoop ( SocketWrapper < Long > socketWrapper ) {
 + openSocket = true ;
 SINGLE
 if ( sendfileData != null && ! error ) {
 sendfileData . socket = socketWrapper . getSocket ( ) . longValue ( ) ;
 <nb> public class Http11Processor extends AbstractHttp11Processor < Socket > {

 @ override
 protected boolean breakKeepAliveLoop ( SocketWrapper < Socket > socketWrapper ) {
 + openSocket = true ;
 SINGLE
 SINGLE
 if ( inputBuffer . lastValid == NUMBER0 ) {


<nb> public class JavaDocInfoGenerator {
 aClass = ( ( PsiMember ) myElement ) . getContainingClass ( ) ;
 }
 else {
 - LOG . error ( STRING0 + myElement . getClass ( ) . getName ( ) ) ;
 + aClass = PsiTreeUtil . getParentOfType ( myElement , PsiClass . class ) ;
 }

 if ( aClass == null ) {

accept docRoot in parameter documentation


<nb> public class NotificationRowLayout extends ViewGroup {
 STRING0 ,
 childIdx , mSlidingChild , mInitialTouchY , mRowHeight , count ) ) ;
 }
 +
 +
 + SINGLE
 + SINGLE
 + requestDisallowInterceptTouchEvent ( true ) ;
 }
 }
 break ;

Prevent notification swipes from getting canceled too soon


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class DependencyParser {
 SINGLE
 SINGLE
 TreeGraphNode rootNode = new TreeGraphNode ( root ) ;
 - return new EnglishGrammaticalStructure ( dependencies , rootNode ) ;
 + return makeGrammaticalStructure ( dependencies , rootNode ) ;
 + }
 +
 + private GrammaticalStructure makeGrammaticalStructure ( List < TypedDependency > dependencies , TreeGraphNode rootNode ) {
 + switch ( language ) {
 + case English : return new EnglishGrammaticalStructure ( dependencies , rootNode ) ;
 + case Chinese : return new ChineseGrammaticalStructure ( dependencies , rootNode ) ;
 +
 + SINGLE
 + default : return new EnglishGrammaticalStructure ( dependencies , rootNode ) ;
 + }
 }

 COMMENT

return different GrammaticalStructure subclasses based on language


<nb>

 package NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class TraktSyncActivity extends BaseActivity {
 super . onCreate ( savedInstanceState ) ;
 setContentView ( R . layout . trakt_sync ) ;

 + final ActionBar actionBar = getSupportActionBar ( ) ;
 + actionBar . setHomeButtonEnabled ( true ) ;
 + actionBar . setTitle ( R . string . trakt ) ;
 + setTitle ( R . string . trakt ) ;
 +
 mContainer = findViewById ( R . id . syncbuttons ) ;

 mSyncUnseenEpisodes = ( CheckBox ) findViewById ( R . id . checkBoxSyncUnseen ) ;

Enable the home button for TraktSyncActivity also set the title


<nb> public class ConsoleProcess implements ConsoleOutputEvent . HasHandlers ,
 final SatelliteManager satelliteManager )
 {
 server_ = server ;
 - cryptoServer_ = cryptoServer ;
 eventBus_ = eventBus ;

 eventBus_ . addHandler ( SessionInitEvent . TYPE , new SessionInitHandler ( )
 <nb> public class ConsoleProcess implements ConsoleOutputEvent . HasHandlers ,
 }

 private final ConsoleServerOperations server_ ;
 - private final CryptoServerOperations cryptoServer_ ;
 private final EventBus eventBus_ ;
 }

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


<nb> public class PhoneStatusBarView extends PanelBar {

 @ override
 public boolean onRequestSendAccessibilityEventInternal ( View child , AccessibilityEvent event ) {
 - if ( super . onRequestSendAccessibilityEvent ( child , event ) ) {
 + if ( super . onRequestSendAccessibilityEventInternal ( child , event ) ) {
 SINGLE
 SINGLE
 SINGLE

Fix bad super call in PhoneStatusBarView accessibility


<nb> public abstract class FrameworkSupportModelBase extends UserDataHolderBase imple
 multicaster . frameworkUnselected ( oldProvider ) ;
 }
 }
 + for ( FrameworkSupportInModuleProvider . FrameworkDependency dependency : provider . getDependenciesFrameworkIds ( ) ) {
 + if ( ! dependency . isOptional ( ) ) {
 + String id = dependency . getFrameworkId ( ) ;
 + setFrameworkComponentEnabled ( id , true ) ;
 + }
 + }
 }

 public void fireWizardStepUpdated ( ) {


<nb> package NAMESPACE ;

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

 import NAMESPACE ;
 <nb> public class ReadResponse
 if ( ! digestUpdater . compareAndSet ( this , curr , digest ) )
 {
 assert digest . equals ( this . digest ) :
 - String . format ( STRING0 , digest . array ( ) , this . digest . array ( ) ) ;
 + String . format ( STRING0 ,
 + Arrays . toString ( digest . array ( ) ) ,
 + Arrays . toString ( this . digest . array ( ) ) ) ;
 }
 }


<nb> import NAMESPACE ;
 import NAMESPACE ;

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

 - public class FeatureToggles extends SherlockActivity {
 + public class FeatureToggles extends SherlockActivity implements ActionBar . TabListener {
 private static final Random RANDOM = new Random ( ) ;

 private int items = NUMBER0 ;
 <nb> public class FeatureToggles extends SherlockActivity {
 newTab . setText ( STRING0 ) ;
 }
 }
 -
 + newTab . setTabListener ( FeatureToggles . this ) ;
 getSupportActionBar ( ) . addTab ( newTab ) ;
 }
 } ) ;
 <nb> public class FeatureToggles extends SherlockActivity {
 }
 } ) ;
 }
 +
 + @ override
 + public void onTabSelected ( Tab tab ) { }
 +
 + @ override
 + public void onTabUnselected ( Tab tab ) { }
 +
 + @ override
 + public void onTabReselected ( Tab tab ) { }
 }


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 public class Enclosed extends Suite {
 COMMENT

Added abstract avoiding behavior to the javadoc


<nb> public class BoxConsumer extends DefaultConsumer
 public BoxConsumer ( BoxEndpoint endpoint , Processor processor ) {
 super ( endpoint , processor ) ;

 - apiMethod = ApiConsumerHelper . findMethod ( endpoint , this , log ) ;
 + apiMethod = ApiConsumerHelper . findMethod ( endpoint , this ) ;

 properties = new HashMap < String , Object > ( ) ;
 properties . putAll ( endpoint . getEndpointProperties ( ) ) ;


<nb> public class FlashlightTile extends QSTile < QSTile . BooleanState > implements
 }

 @ override
 + public boolean isAvailable ( ) {
 + return mFlashlightController . hasFlashlight ( ) ;
 + }
 +
 + @ override
 protected void handleClick ( ) {
 if ( ActivityManager . isUserAMonkey ( ) ) {
 return ;
 <nb> public class FlashlightController {
 }
 }

 + public boolean hasFlashlight ( ) {
 + return mCameraId != null ;
 + }
 +
 public synchronized boolean isEnabled ( ) {
 return mFlashlightEnabled ;
 }


<nb> public abstract class BlobStoreIndexShardGateway extends AbstractIndexShardCompo
 if ( snapshot . newTranslogCreated ( ) ) {
 try {
 translogContainer . deleteBlob ( STRING0 + snapshot . lastTranslogId ( ) ) ;
 - } catch ( IOException e ) {
 + } catch ( Exception e ) {
 SINGLE
 }
 }


<nb> loop :
 dummyRoot . children = Collections . singletonList ( t ) ; SINGLE

 Collection < ParseTree > work = Collections . < ParseTree > singleton ( dummyRoot ) ;
 - work . add ( dummyRoot ) ;

 int i = NUMBER0 ;
 while ( i < elements . length ) {

Fix XPath implementation throwing exception


<nb> class CommentAdapter extends RecyclerView . Adapter < RecyclerView . ViewHolder > {
 return false ;
 }

 - final int maxImageWidth = ( int ) mContext . getResources ( ) . getDimension ( R . dimen . reader_comment_embedded_image_max_size ) ; SINGLE
 + final int maxImageWidth = ( int ) mContext . getResources ( ) . getDimension ( R . dimen . reader_comment_embedded_image_max_size ) ;

 WPHtml . ImageGetter imgGetter = new WPHtml . ImageGetter ( ) {
 @ override


<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 class PagesResponseWriter
 OutputStream output )
 throws IOException , WebApplicationException
 {
 - PagesSerde . writePages ( blockEncodingSerde , new OutputStreamSliceOutput ( output ) , pages ) ;
 + try {
 + PagesSerde . writePages ( blockEncodingSerde , new OutputStreamSliceOutput ( output ) , pages ) ;
 + }
 + catch ( RuntimeIOException e ) {
 + SINGLE
 + SINGLE
 + if ( ! ( e . getCause ( ) instanceof EOFException ) ) {
 + throw e ;
 + }
 + }
 }
 }

Ignore EOF exception while writing data to client


<nb> import NAMESPACE ;
 import NAMESPACE ;

 public class TWSpannableGridLayoutManager extends TWGridLayoutManager {
 - private static final String LOGTAG = STRING0 ;
 + private static final String LOGTAG = STRING1 ;

 private static final int DEFAULT_NUM_COLS = NUMBER0 ;
 private static final int DEFAULT_NUM_ROWS = NUMBER0 ;

library Fix LOGTAG for TWSpannableGridLayoutManager


<nb> public class Select < T > implements Iterable {
 return sql . toString ( ) ;
 }

 - String getWhereClause ( ) {
 + String getWhereCond ( ) {
 return whereClause ;
 }


<nb> public class JarBuilder implements Closeable {
 }
 copyJarFiles ( writer , jarEntries ) ;

 + SINGLE
 + closer . close ( ) ;
 +
 SINGLE
 target . delete ( ) ;
 org . apache . commons . io . FileUtils . moveFile ( tmp , target ) ;

Close the open files before trying to move them


<nb> public class ReaderActivity extends WPActionBarActivity
 Fragment fragment = ReaderPostDetailFragment . newInstance ( blogId , postId , mIsBlogDetail ) ;
 FragmentTransaction ft = getSupportFragmentManager ( ) . beginTransaction ( ) ;
 ft . setTransition ( FragmentTransaction . TRANSIT_FRAGMENT_FADE ) ;
 + ft . add ( R . id . fragment_container , fragment , tagForFragment ) ;

 SINGLE
 if ( hasListFragment ( ) ) {
 - ft . replace ( R . id . fragment_container , fragment , tagForFragment ) ;
 ft . addToBackStack ( tagForFragment ) ;
 - } else {
 - ft . add ( R . id . fragment_container , fragment , tagForFragment ) ;
 }

 ft . commit ( ) ;

Fixed bug that caused scroll position to be lost in reader post list after returning from post detail


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


<nb> public class UriUtil {
 Cursor cursor = null ;
 try {
 cursor = contentResolver . query ( srcUri , null , null , null , null ) ;
 - if ( cursor != null ) {
 - cursor . moveToFirst ( ) ;
 + if ( cursor != null && cursor . moveToFirst ( ) ) {
 int idx = cursor . getColumnIndex ( MediaStore . Images . ImageColumns . DATA ) ;
 - result = cursor . getString ( idx ) ;
 + if ( idx != - NUMBER0 ) {
 + result = cursor . getString ( idx ) ;
 + }
 }
 } finally {
 if ( cursor != null ) {

Include better error checks for uri to file path utility method


<nb> public class ByteBuddyTest {
 . intercept ( FieldAccessor . ofBeanProperty ( ) ) ;
 }
 byteBuddy . make ( ) ;
 - if ( System . currentTimeMillis ( ) - time > baseline * NUMBER0 / NUMBER1 ) {
 + if ( System . currentTimeMillis ( ) - time > baseline * NUMBER0 / NUMBER2 ) {
 throw new AssertionError ( STRING0 ) ;
 }
 }


<nb> public class MavenModuleImporter {

 String encoding = myMavenProject . getEncoding ( ) ;
 if ( encoding != null ) {
 - try {
 - EncodingProjectManager . getInstance ( myModule . getProject ( ) ) . setEncoding ( myMavenProject . getDirectoryFile ( ) , Charset . forName ( encoding ) ) ;
 - }
 - catch ( UnsupportedCharsetException ignored ) { COMMENT }
 - catch ( IllegalCharsetNameException ignored ) { COMMENT }
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 }
 }


<nb> public class LifeLine {
 @ override
 public void run ( ) {
 try {
 - serverSocket = new ServerSocket ( port ) ;
 + serverSocket = new ServerSocket ( ) ;
 + serverSocket . bind ( new InetSocketAddress ( InetAddress . getLocalHost ( ) , port ) ) ;
 } catch ( IOException e ) {
 System . err . println ( STRING0 + port ) ;
 notifyListener ( ExitCode . CANNOT_BIND_TO_LIFELINE_PORT ) ;


<nb> public abstract class ConfigElement {
 while ( ! element . isRoot ( ) && ! element . getNamespace ( ) . isRoot ( ) ) {
 ConfigNamespace parent = element . getNamespace ( ) ;
 if ( parent . isUmbrella ( ) ) {
 - Preconditions . checkArgument ( umbrellaPos >= NUMBER0 , STRING0 , element ) ;
 + Preconditions . checkArgument ( umbrellaPos >= NUMBER0 , STRING1 , element ) ;
 String umbrellaName = umbrellaElements [ umbrellaPos ] ;
 Preconditions . checkArgument ( ! StringUtils . containsAny ( umbrellaName , ILLEGAL_CHARS ) , STRING2 , umbrellaName ) ;
 path = umbrellaName + SEPARATOR + path ;

Fix precondition string in ConfigElement


<nb> public class CachingBuildEngine implements BuildEngine {
 successType = Optional . of ( success ) ;
 uploadToCache ( success ) ;

 - SINGLE
 - try {
 - outputSize = Optional . of ( buildInfoRecorder . getOutputSize ( ) ) ;
 - outputHash = Optional . of ( buildInfoRecorder . getOutputHash ( fileHashCache ) ) ;
 - } catch ( IOException e ) {
 - context . getEventBus ( ) . post (
 - ThrowableConsoleEvent . create (
 - e ,
 - STRING0 ,
 - rule ) ) ;
 + SINGLE
 + if ( success == BuildRuleSuccessType . BUILT_LOCALLY ) {
 + try {
 + outputSize = Optional . of ( buildInfoRecorder . getOutputSize ( ) ) ;
 + outputHash = Optional . of ( buildInfoRecorder . getOutputHash ( fileHashCache ) ) ;
 + } catch ( IOException e ) {
 + context . getEventBus ( ) . post (
 + ThrowableConsoleEvent . create (
 + e ,
 + STRING0 ,
 + rule ) ) ;
 + }
 }
 }

only get output size hash when building locally


<nb> public class View implements Drawable . Callback , KeyEvent . Callback , Accessibility
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 @ viewdebug.exportedproperty ( deepExport = true , prefix = STRING0 )
 public ViewGroup . LayoutParams getLayoutParams ( ) {
 <nb> public class View implements Drawable . Callback , KeyEvent . Callback , Accessibility
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public void setLayoutParams ( ViewGroup . LayoutParams params ) {
 if ( params == null ) {
 - throw new NullPointerException ( STRING1 ) ;
 + throw new NullPointerException ( STRING2 ) ;
 }
 mLayoutParams = params ;
 requestLayout ( ) ;


<nb> import NAMESPACE ;

 public class DefaultPlatformContainer extends DefaultPolymorphicDomainObjectContainer < Platform > implements PlatformContainer {

 - private List < Platform > searchOrder = new ArrayList < Platform > ( ) ;
 -
 public DefaultPlatformContainer ( Instantiator instantiator ) {
 super ( Platform . class , instantiator ) ;
 - whenObjectAdded ( new Action < Platform > ( ) {
 - public void execute ( Platform platform ) {
 - searchOrder . add ( platform ) ;
 - }
 - } ) ;
 - whenObjectRemoved ( new Action < Platform > ( ) {
 - public void execute ( Platform platform ) {
 - searchOrder . remove ( platform ) ;
 - }
 - } ) ;
 }

 public < T extends Platform > List < T > chooseFromTargets ( Class < T > type , List < String > targets ) {


<nb> class TesterOkHttpChannelBuilder {
 public static ManagedChannel build ( String host , int port , @ nullable String serverHostOverride ,
 boolean useTls , @ nullable InputStream testCa , @ nullable String androidSocketFactoryTls ) {
 ManagedChannelBuilder < ? > channelBuilder = ManagedChannelBuilder . forAddress ( host , port ) ;
 + ( ( OkHttpChannelBuilder ) channelBuilder ) . maxMessageSize ( NUMBER0 * NUMBER1 * NUMBER1 ) ;
 if ( serverHostOverride != null ) {
 SINGLE
 channelBuilder . overrideAuthority ( serverHostOverride ) ;
 <nb> public class TestServiceServer {
 }
 server = NettyServerBuilder . forPort ( port )
 . sslContext ( sslContext )
 + . maxMessageSize ( NUMBER0 * NUMBER1 * NUMBER1 )
 . addService ( ServerInterceptors . intercept (
 new TestServiceImpl ( executor ) ,
 TestUtils . echoRequestHeadersInterceptor ( Util . METADATA_KEY ) ) )


<nb> public class StandardConvertersTest {
 }

 private Date getDateToTest ( ) {
 - Calendar calendar = Calendar . getInstance ( ) ;
 + Calendar calendar = Calendar . getInstance ( Locale . US ) ;
 calendar . set ( NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3 , NUMBER3 , NUMBER3 ) ;
 calendar . set ( Calendar . MILLISECOND , NUMBER3 ) ;
 return calendar . getTime ( ) ;


<nb> public interface RepositoryHandler extends ArtifactRepositoryContainer {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public interface RepositoryHandler extends ArtifactRepositoryContainer {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public interface RepositoryHandler extends ArtifactRepositoryContainer {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public interface RepositoryHandler extends ArtifactRepositoryContainer {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public interface RepositoryHandler extends ArtifactRepositoryContainer {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public interface RepositoryHandler extends ArtifactRepositoryContainer {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public interface RepositoryHandler extends ArtifactRepositoryContainer {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> class SuperColumnSerializer implements IColumnSerializer
 ColumnSerializer serializer = Column . serializer ( ) ;
 ColumnSortedMap preSortedMap = new ColumnSortedMap ( comparator , serializer , dis , interner , size , fromRemote , expireBefore ) ;
 SuperColumn superColumn = new SuperColumn ( name , new ConcurrentSkipListMap < ByteBuffer , IColumn > ( preSortedMap ) ) ;
 - if ( localDeleteTime != Integer . MIN_VALUE && localDeleteTime <= NUMBER0 )
 - {
 - throw new IOException ( STRING0 + localDeleteTime ) ;
 - }
 superColumn . markForDeleteAt ( localDeleteTime , markedForDeleteAt ) ;
 return superColumn ;
 }


<nb> public class ExternalEpisodesListAdapter extends BaseExpandableListAdapter {
 holder . downloadStatus . setVisibility ( View . INVISIBLE ) ;
 holder . lenSize . setVisibility ( View . INVISIBLE ) ;
 }
 -
 +
 holder . feedImage . setTag ( item . getImageLoaderCacheKey ( ) ) ;
 ImageLoader . getInstance ( ) . loadThumbnailBitmap (
 item ,
 <nb> public class ExternalEpisodesListAdapter extends BaseExpandableListAdapter {

 @ override
 public int getGroupCount ( ) {
 - return NUMBER0 ;
 + SINGLE
 + if ( manager . getUnreadItemsSize ( true ) > NUMBER1 ) {
 + return NUMBER0 ;
 + } else {
 + return NUMBER2 ;
 + }
 }

 @ override


<nb> import static NAMESPACE ;
 COMMENT
 COMMENT
 @ elasticsearchintegrationtest.suitescopetest
 - @ testlogging ( STRING0 )
 + @ testlogging ( STRING1 )
 public class GeoBoundsTests extends ElasticsearchIntegrationTest {

 private static final String SINGLE_VALUED_FIELD_NAME = STRING2 ;

added trace action search type to GeoBoundsTests


<nb> public final class RetryHandlingBlockWorkerClient extends AbstractClient
 public synchronized boolean requestSpace ( final long blockId , final long requestBytes )
 throws IOException {
 try {
 - boolean requested = retryRPC ( new RpcCallableThrowsAlluxioTException < Boolean > ( ) {
 + boolean success = retryRPC ( new RpcCallableThrowsAlluxioTException < Boolean > ( ) {
 @ override
 public Boolean call ( ) throws AlluxioTException , TException {
 return mClient . requestSpace ( mSessionId , blockId , requestBytes ) ;
 }
 } ) ;
 - if ( ! requested ) {
 + if ( ! success ) {
 throw new IOException ( ExceptionMessage . CANNOT_REQUEST_SPACE
 . getMessageWithUrl ( RuntimeConstants . ALLUXIO_DEBUG_DOCS_URL , mAddress , blockId ) ) ;
 }


<nb> public enum TaskFilePropertyPathSensitivity {
 RELATIVE_WITH_FILE_NAMES {
 @ override
 public NormalizedFileSnapshot getNormalizedSnapshot ( FileTreeElement fileDetails , IncrementalFileSnapshot snapshot , StringInterner stringInterner ) {
 + SINGLE
 + if ( fileDetails instanceof SingletonFileTree . SingletonFileVisitDetails && fileDetails . isDirectory ( ) ) {
 + return new IgnoredPathFileSnapshot ( snapshot ) ;
 + }
 return getRelativeSnapshot ( fileDetails , snapshot , stringInterner ) ;
 }
 } ,

do not consider the names of root directories when using PathSensitivity RELATIVE_WITH_FILE_NAMES


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


<nb>
 COMMENT
 package NAMESPACE ;

 + import NAMESPACE ;
 + import NAMESPACE ;
 +
 COMMENT
 COMMENT
 COMMENT
 <nb> public class Java extends AbstractLanguage {
 return SUFFIXES ;
 }

 + public static boolean isJavaFile ( java . io . File file ) {
 + String suffix = StringUtils . substringAfterLast ( file . getName ( ) , STRING0 ) ;
 + return ArrayUtils . contains ( SUFFIXES , suffix ) ;
 + }
 }


<nb> public class GraphPath {
 }
 TraverseOptions options = vertices . lastElement ( ) . options ;
 ListIterator < SPTEdge > iterator = edges . listIterator ( vertices . size ( ) - NUMBER0 ) ;
 + SPTEdge firstEdge = edges . get ( NUMBER1 ) ;
 while ( iterator . hasPrevious ( ) ) {
 SPTEdge edge = iterator . previous ( ) ;
 + if ( edge == firstEdge ) {
 + state . lastEdgeWasStreet = false ;
 + }
 TraverseResult result = edge . payload . traverseBack ( state , options ) ;
 assert ( result != null ) ;
 state = result . state ;

handle cases where bike walking starts mid block


<nb> public class DozeService extends DreamService {
 }
 }

 - requestPulse ( mPulseReason ) ;
 mRegistered = false ;
 + requestPulse ( mPulseReason ) ;
 updateListener ( ) ; SINGLE

 SINGLE


<nb> public class MimeUtility {
 }
 text . append ( FILENAME_PREFIX ) ;
 text . append ( filename ) ;
 + text . append ( FILENAME_SUFFIX ) ;
 text . append ( TEXT_DIVIDER . substring ( NUMBER0 , TEXT_DIVIDER_LENGTH -
 FILENAME_PREFIX_LENGTH - filename . length ( ) - FILENAME_SUFFIX_LENGTH ) ) ;
 - text . append ( STRING0 ) ;
 } else {
 text . append ( TEXT_DIVIDER ) ;
 }

Fixed divider before text part with filename


<nb> public abstract class HardwareRenderer {
 if ( canDraw ( ) ) {
 if ( ! hasDirtyRegions ( ) ) {
 dirty = null ;
 + } else if ( dirty != null ) {
 + dirty . intersect ( NUMBER0 , NUMBER0 , mWidth , mHeight ) ;
 }
 attachInfo . mIgnoreDirtyState = true ;
 attachInfo . mDrawingTime = SystemClock . uptimeMillis ( ) ;

Don t allow screen invalidations to go outside bounds of screen


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class KotlinWithGradleConfigurator implements KotlinProjectConfi

 @ override
 public boolean isConfigured ( @ notnull Module module ) {
 + if ( KotlinFrameworkDetector . isJavaKotlinModule ( module ) ) {
 + return true ;
 + }
 +
 GroovyFile moduleGradleFile = getBuildGradleFile ( module . getProject ( ) , getDefaultPathToBuildGradleFile ( module ) ) ;
 if ( moduleGradleFile != null && isFileConfigured ( moduleGradleFile ) ) {
 return true ;

Check if gradle module has kotlin runtime classes in module classpath


<nb> public class RequestLoggingFilter implements Filter {
 }

 public Response filter ( FilterableRequestSpecification requestSpec , FilterableResponseSpecification responseSpec , FilterContext ctx ) {
 - RequestPrinter . print ( requestSpec , ctx . getRequestMethod ( ) . toString ( ) , ctx . getRequestURI ( ) , logDetail , stream , shouldPrettyPrint ) ;
 + RequestPrinter . print ( requestSpec , requestSpec . getMethod ( ) . toString ( ) , requestSpec . getURI ( ) , logDetail , stream , shouldPrettyPrint ) ;
 return ctx . next ( requestSpec , responseSpec ) ;
 }

No longer using deprecated methods of FilterContext


<nb> import NAMESPACE ;
 public class PythonSdkPathCache extends PythonPathCache implements Disposable {
 private static final Key < Map < Project , PythonSdkPathCache > > KEY = Key . create ( STRING0 ) ;

 - public static PythonSdkPathCache getInstance ( Project project , Sdk sdk ) {
 + public static PythonSdkPathCache getInstance ( @ notnull Project project , @ notnull Sdk sdk ) {
 synchronized ( KEY ) {
 Map < Project , PythonSdkPathCache > cacheMap = sdk . getUserData ( KEY ) ;
 if ( cacheMap == null ) {
 <nb> public class PythonSdkPathCache extends PythonPathCache implements Disposable {
 private final Sdk mySdk ;
 private final AtomicReference < PyBuiltinCache > myBuiltins = new AtomicReference < PyBuiltinCache > ( ) ;

 - public PythonSdkPathCache ( final Project project , final Sdk sdk ) {
 + public PythonSdkPathCache ( @ notnull final Project project , @ notnull final Sdk sdk ) {
 myProject = project ;
 mySdk = sdk ;
 sdk . getRootProvider ( ) . addRootSetChangedListener ( new RootProvider . RootSetChangedListener ( ) {

Package requirements and skeletons tests should use fixture from test task as it is recreated every run


<nb> class LocalActorRegistry implements co . paralleluniverse . actors . spi . ActorRegistry
 }

 @ override
 - public < Message > ActorRef < Message > tryGetActor ( final String name ) {
 + public < Message > ActorRef < Message > tryGetActor ( final String name ) throws SuspendExecution {
 ActorRef < ? > actor = registeredActors . get ( name ) ;
 if ( actor == null ) {
 lock . lock ( ) ;


<nb> public class ApplicationImpl extends ComponentManagerImpl implements Application
 LOG . error ( t ) ;
 }
 finally {
 - ReflectionUtil . resetThreadLocals ( ) ;
 + SINGLE
 Thread . interrupted ( ) ; SINGLE
 }
 }
 <nb> public class ApplicationImpl extends ComponentManagerImpl implements Application
 LOG . error ( t ) ;
 }
 finally {
 - ReflectionUtil . resetThreadLocals ( ) ;
 + SINGLE
 Thread . interrupted ( ) ; SINGLE
 }
 return null ;

r maxim mossienko Rollback re setting thread locals for release


<nb> b2ContactFilter defaultFilter ;
 COMMENT
 void destroyFixture ( Body body , Fixture fixture ) {
 jniDestroyFixture ( addr , body . addr , fixture . addr ) ;
 - fixture . setUserData ( null ) ;
 }

 private native void jniDestroyFixture ( long addr , long bodyAddr , long fixtureAddr ) ; / *


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class MiniGraphUI {
 }
 double lat2 = graph . getLatitude ( nodeId ) ;
 double lon2 = graph . getLongitude ( nodeId ) ;
 - if ( lat2 <= NUMBER0 || lon2 <= NUMBER0 )
 - logger . info ( STRING0 + nodeId + STRING1 + iter . distance ( ) + STRING1 + lat2 + STRING2 + lon2 ) ;
 mg . plotEdge ( g2 , lat , lon , lat2 , lon2 ) ;
 }
 }


<nb> public class ConstructorInjectionTest {

 @ test
 public void should_do_the_trick_of_instantiating ( ) throws Exception {
 - given ( resolver . resolveTypeInstances ( Matchers . < Class < ? > [ ] > anyVararg ( ) ) ) . willReturn ( new Object [ ] { observer } ) ;
 -
 boolean result = underTest . process ( field ( STRING0 ) , this , newSetOf ( observer ) ) ;

 assertTrue ( result ) ;


<nb> public class WebView extends AbsoluteLayout
 }

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class WebView extends AbsoluteLayout
 }

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

Clarify documentation for WebView loadData


<nb> public class LaterInvocator {
 invokeLater ( runnable1 , modalityState ) ;
 semaphore . waitFor ( ) ;
 if ( ! exception . isNull ( ) ) {
 - Throwable throwable = exception . get ( ) ;
 - if ( throwable instanceof RuntimeException ) throw ( RuntimeException ) throwable ;
 - throw new RuntimeException ( throwable ) ;
 + SINGLE
 + SINGLE
 + throw new RuntimeException ( exception . get ( ) ) ;
 }
 }


<nb> public class SenderChannel
 receiverWindow ) ;
 activeFlowControlState . updateRightEdgeOfWindow ( rightEdge ) ;

 - if ( flowControlTimer . isActive ( ) )
 - {
 - flowControlTimer . cancel ( ) ;
 - }
 + flowControlTimer . cancel ( ) ;
 }

 public void onFlowControlTimer ( )
 <nb> public class TimerWheel
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 public boolean cancel ( )
 {
 - remove ( ) ;
 - state = TimerState . CANCELLED ;
 + if ( isActive ( ) )
 + {
 + remove ( ) ;
 + state = TimerState . CANCELLED ;
 + }
 return true ;
 }


<nb> public class CustomAnnotationTest {
 @ retention ( RetentionPolicy . RUNTIME )
 @ documented
 public static @ interface MyAnnotation {
 - String value ( ) default STRING0 ;
 + String value ( ) default STRING1 ;
 }

 @ myannotation
 <nb> public class CustomAnnotationTest {
 @ test
 public void testGet ( ) throws IOException , ServletException {

 - AtmosphereRequest request = new AtmosphereRequest . Builder ( ) . pathInfo ( STRING0 ) . method ( STRING2 ) . build ( ) ;
 + AtmosphereRequest request = new AtmosphereRequest . Builder ( ) . pathInfo ( STRING1 ) . method ( STRING2 ) . build ( ) ;
 framework . doCometSupport ( request , AtmosphereResponse . newInstance ( ) ) ;
 r . get ( ) . resume ( ) ;

Change the path to prevent tests from faling each other


<nb> public class MediaPlayerPerformance extends ActivityInstrumentationTestCase2 < Med
 }
 mMemWriter = new BufferedWriter ( new FileWriter
 ( new File ( MEDIA_MEMORY_OUTPUT ) , true ) ) ;
 + mMemWriter . write ( this . getName ( ) + STRING0 ) ;
 }

 @ override

Append the test case name in the beginning


<nb> public class Parser {

 private static final String PYTHON2_EXE = STRING0 ;
 private static final String PYTHON3_EXE = STRING1 ;
 - private static final int TIMEOUT = NUMBER0 ;
 + private static final int TIMEOUT = NUMBER1 ;

 Process python2Process ;
 Process python3Process ;


<nb>
 package NAMESPACE ;

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

 <nb> import static NAMESPACE ;
 @ elasticsearchintegrationtest.clusterscope ( scope = ElasticsearchIntegrationTest . Scope . SUITE )
 public class KuromojiIntegrationTests extends ElasticsearchIntegrationTest {

 + @ override
 + protected Settings nodeSettings ( int nodeOrdinal ) {
 + return ImmutableSettings . builder ( )
 + . put ( super . nodeSettings ( nodeOrdinal ) )
 + . put ( STRING0 + PluginsService . LOAD_PLUGIN_FROM_CLASSPATH , true )
 + . build ( ) ;
 + }
 +
 @ test
 public void testKuromojiAnalyzer ( ) throws ExecutionException , InterruptedException {
 AnalyzeResponse response = client ( ) . admin ( ) . indices ( )


<nb> import NAMESPACE ;

 public class RulerControl extends MapControls {

 + SINGLE
 + SINGLE
 + SINGLE
 +
 ShadowText cacheRulerText = null ;
 double cacheRulerZoom = NUMBER0 ;
 double cacheRulerTileX = NUMBER0 ;
 <nb> public class RulerControl extends MapControls {
 }

 if ( cacheRulerText != null ) {
 + boolean nightMode = drawSettings == null ? false : drawSettings . isNightMode ( ) ;
 Rect bounds = rulerDrawable . getBounds ( ) ;
 int bottom = ( int ) ( view . getHeight ( ) - vmargin ) ;
 if ( bounds . bottom != bottom ) {
 <nb> public class RulerControl extends MapControls {
 rulerDrawable . invalidateSelf ( ) ;
 }
 rulerDrawable . draw ( canvas ) ;
 + rulerTextPaint . setShadowColor ( nightMode ? NUMBER1 : Color . WHITE ) ;
 cacheRulerText . draw ( canvas , bounds . left + ( bounds . width ( ) - cacheRulerTextLen ) / NUMBER2 , bounds . bottom - NUMBER3 * scaleCoefficient ,
 rulerTextPaint , shadowColor ) ;
 }

implement consistent ruler label night appearance


<nb> public class PhoneNumberUtils
 return sb . toString ( ) ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public static String replaceUnicodeDigits ( String number ) {
 + StringBuilder normalizedDigits = new StringBuilder ( number . length ( ) ) ;
 + for ( char c : number . toCharArray ( ) ) {
 + int digit = Character . digit ( c , NUMBER0 ) ;
 + if ( digit != - NUMBER1 ) {
 + normalizedDigits . append ( digit ) ;
 + } else {
 + normalizedDigits . append ( c ) ;
 + }
 + }
 + return normalizedDigits . toString ( ) ;
 + }
 +
 SINGLE
 SINGLE
 SINGLE

Added API to replace unicoded digits to ascii numbers


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public abstract class RecentProjectsManagerBase implements PersistentStateCompon
 myState . lastPath = getProjectPath ( openProjects [ openProjects . length - NUMBER0 ] ) ;
 myState . openPaths = new ArrayList < String > ( ) ;
 for ( Project openProject : openProjects ) {
 - myState . openPaths . add ( getProjectPath ( openProject ) ) ;
 + ContainerUtil . addIfNotNull ( myState . openPaths , getProjectPath ( openProject ) ) ;
 }
 }
 }
 <nb> public abstract class RecentProjectsManagerBase implements PersistentStateCompon
 private class MyProjectManagerListener extends ProjectManagerAdapter {
 public void projectOpened ( final Project project ) {
 String path = getProjectPath ( project ) ;
 - markPathRecent ( path ) ;
 + if ( path != null ) {
 + markPathRecent ( path ) ;
 + }
 }

 public void projectClosed ( final Project project ) {


<nb> public abstract class DiskJournalCache implements InputCache , OutputCache {
 ) ;
 this . serializer = serializer ;

 + COMMENT
 + COMMENT
 + COMMENT
 + LOG . debug ( STRING0 , getDbFileName ( ) ) ;
 + db . commit ( ) ;
 + LOG . debug ( STRING1 , getDbFileName ( ) ) ;
 + db . compact ( ) ;
 +
 this . commitService . scheduleWithFixedDelay ( new Runnable ( ) {
 @ override
 public void run ( ) {

Commit and compact the database on startup


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

 @ runwith ( HazelcastSerialClassRunner . class )
 @ category ( QuickTest . class )
 + @ ignore
 public class ClientMapPartitionLostListenerTest {

 @ after
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> import static NAMESPACE ;

 @ runwith ( HazelcastSerialClassRunner . class )
 @ category ( QuickTest . class )
 + @ ignore
 public class ClientPartitionLostListenerTest {

 @ after


<nb> public class AioSocketChannel extends AbstractAioChannel implements SocketChanne
 }

 flushing = true ;
 +
 + SINGLE
 + SINGLE
 + SINGLE
 + buf . discardReadBytes ( ) ;
 +
 if ( buf . readable ( ) ) {
 javaChannel ( ) . write ( buf . nioBuffer ( ) , this , WRITE_HANDLER ) ;
 } else {
 - buf . discardReadBytes ( ) ;
 notifyFlushFutures ( ) ;
 flushing = false ;
 }


<nb> public class SkeletonControl extends AbstractControl implements Cloneable , JmeCl
 SINGLE
 Set < Material > newMaterials = new HashSet < Material > ( ) ;
 for ( Material m : this . materials ) {
 - newMaterials . add ( cloner . clone ( m ) ) ;
 + Material mClone = cloner . clone ( m ) ;
 + newMaterials . add ( mClone ) ;
 + if ( mClone != m ) {
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + MatParam boneMatrices = mClone . getParam ( STRING0 ) ;
 +
 + SINGLE
 + SINGLE
 + if ( boneMatrices != null ) {
 + mClone . clearParam ( STRING0 ) ;
 + }
 + }
 }
 this . materials = newMaterials ;
 }

Fixed cloning to not confuse the hardware skinning safety check


<nb>
 - class XXX {
 - void f ( ) {
 - new
 - }
 - }
 class C2 {
 public < caret > C2 ( int i ) {
 }
 <nb> class XXX {
 void f ( ) {
 new C2 ( < caret > )
 }
 - }
 - class C2 {
 - public C2 ( int i ) {
 - }
 - }
 + }
 <nb> class XXX {
 void f ( ) {
 new < caret >
 }
 - }
 - class C2 {
 - public C2 ( int i ) {
 - }
 - }
 + }

avoid same class to be present simultaneously in the same package


<nb> package NAMESPACE ;

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

 <nb> public class OIntentMassiveInsert implements OIntent {
 iDatabase . getDatabaseOwner ( ) . getLevel1Cache ( ) . setEnable ( previousLevel1CacheEnabled ) ;
 iDatabase . getDatabaseOwner ( ) . getLevel2Cache ( ) . setEnable ( previousLevel2CacheEnabled ) ;

 - final ODatabaseComplex < ? > ownerDb = iDatabase . getDatabaseOwner ( ) ;
 + ODatabaseComplex < ? > ownerDb = iDatabase . getDatabaseOwner ( ) ;

 if ( ownerDb instanceof ODatabaseRecord )
 ( ( ODatabaseRecord ) ownerDb ) . setRetainRecords ( previousRetainRecords ) ;

 - if ( ownerDb instanceof ODatabaseObject )
 + while ( ownerDb . getDatabaseOwner ( ) != ownerDb )
 + ownerDb = ownerDb . getDatabaseOwner ( ) ;
 +
 + if ( ownerDb instanceof ODatabasePojoAbstract )
 ( ( ODatabasePojoAbstract < ? > ) ownerDb ) . setRetainObjects ( previousRetainObjects ) ;
 }
 }

now the Massive Insert intent reset the old settings


<nb> public class NewVectorTest extends TestUtil {
 assertEquals ( NUMBER0 , vec . at8 ( NUMBER0 ) ) ; SINGLE
 c2 . close ( NUMBER1 , null ) ; SINGLE
 Chunk c3 = vec . elem2BV ( NUMBER1 ) ; SINGLE
 - assertTrue ( STRING0 + c3 . getClass ( ) + STRING1 , c3 instanceof C1Chunk ) ;
 + assertTrue ( STRING0 + c3 . getClass ( ) + STRING2 , c3 instanceof C1NChunk ) ;

 c3 . set8 ( NUMBER2 , NUMBER2 ) ;
 assertEquals ( NUMBER2 , vec . at8 ( NUMBER2 ) ) ; SINGLE
 c3 . close ( NUMBER1 , null ) ; SINGLE
 Chunk c4 = vec . elem2BV ( NUMBER1 ) ; SINGLE
 - assertTrue ( STRING0 + c4 . getClass ( ) + STRING1 , c4 instanceof C1Chunk ) ;
 + assertTrue ( STRING0 + c4 . getClass ( ) + STRING2 , c4 instanceof C1NChunk ) ;

 UKV . remove ( av . _key ) ;
 }


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

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

 - import NAMESPACE ;
 -
 COMMENT
 COMMENT
 COMMENT


<nb>
 COMMENT
 COMMENT
 COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT

Added javadoc for View focusable attribute


<nb> public class ObservableCollapserPerfTest {
 @ param ( { STRING0 , STRING1 , STRING2 , STRING3 } )
 int numToCollapse ;

 - @ param ( { STRING0 } ) SINGLE
 + @ param ( { STRING0 , STRING1 , STRING2 } )
 int numResponsesPerArg ;

 @ param ( { STRING0 , STRING3 , STRING4 } )

Modify ObservableCollapser JMH test to allow multiple response per argument


<nb> public final class SecurityClassLoad {

 private final static void loadUtilPackage ( ClassLoader loader )
 throws Exception {
 - String basePackage = STRING0 ;
 - loader . loadClass ( basePackage + STRING1 ) ;
 - loader . loadClass ( basePackage + STRING2 ) ;
 + String basePackage = STRING3 ;
 + loader . loadClass ( basePackage + STRING4 ) ;
 + loader . loadClass ( basePackage + STRING5 ) ;
 }

 <nb> public final class SecurityClassLoad {
 loader . loadClass ( basePackage + STRING6 ) ;
 loader . loadClass
 ( basePackage + STRING7 ) ;
 + SINGLE
 + Class < ? > clazz = loader . loadClass (
 + basePackage + STRING8 ) ;
 + clazz . newInstance ( ) ;
 }
 }

Fix some TCK failures with the BIO AJP connector when using a security manager


<nb> public class AuthCmdFactory
 if ( authRequest != null )
 {
 SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 + aimConnection . getSsiService ( ) . sendSnac (
 + new AuthFutureCmd (
 + uinToAskForAuth ,
 + authRequest . getReason ( ) ) ) ;

 Vector buddiesToBeAdded = new Vector ( ) ;


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

Remove unused import from BootstrapForTesting


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

 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ConsolePreparableReporter implements PreparableReporter < ConsoleRepo
 LOG . debug ( STRING0 ) ;
 ConsoleReporter . Builder builder = ConsoleReporter . forRegistry ( metricsRegistry ) ;

 - PrintStream stream = System . out ;
 - if ( stream != null ) {
 - builder . outputTo ( stream ) ;
 - }
 -
 + builder . outputTo ( System . out ) ;
 Locale locale = MetricsUtils . getMetricsReporterLocale ( stormConf ) ;
 if ( locale != null ) {
 builder . formattedFor ( locale ) ;

Removing unnecessary null check on STDOUT stream


<nb> public abstract class Packet implements TopLevelStreamElement {
 return removeExtension ( extension . getElementName ( ) , extension . getNamespace ( ) ) ;
 }

 + @ override
 + SINGLE
 + public String toString ( ) {
 + return toXML ( ) . toString ( ) ;
 + }
 +
 COMMENT
 COMMENT
 COMMENT


<nb> public class DesktopImportControllerUI implements ImportControllerUI {
 dd2 . setValid ( ! ( ( ValidationPanel ) e . getSource ( ) ) . isProblem ( ) ) ;
 }
 } ) ;
 + dd2 . setValid ( ! vp . isProblem ( ) ) ;
 }
 Object result = DialogDisplayer . getDefault ( ) . notify ( dd2 ) ;
 if ( result . equals ( NotifyDescriptor . CANCEL_OPTION ) || result . equals ( NotifyDescriptor . CLOSED_OPTION ) ) {


<nb> public class ContextConfig
 protected InputSource getHostWebXmlSource ( ) {
 String resourceName = getHostConfigPath ( Constants . HostWebXml ) ;

 + SINGLE
 + File configBase = getConfigBase ( ) ;
 + if ( configBase == null )
 + return null ;
 +
 String basePath = null ;
 try {
 - basePath = getConfigBase ( ) . getCanonicalPath ( ) ;
 + basePath = configBase . getCanonicalPath ( ) ;
 } catch ( IOException e ) {
 log . error ( sm . getString ( STRING0 ) , e ) ;
 return null ;


<nb> import NAMESPACE ;
 import NAMESPACE ;

 public class ExternalClasspathClassLoader extends URLClassLoader {
 + public ExternalClasspathClassLoader ( ClassLoader parent ) {
 + super ( parseUrls ( ) , parent ) ;
 + }
 +
 public ExternalClasspathClassLoader ( ) {
 super ( parseUrls ( ) ) ;
 }

Missing constructor required for system class loader


<nb> import NAMESPACE ;
 import NAMESPACE ;

 public class PluginModuleType extends ModuleType < PluginModuleBuilder > {
 - private static final Icon PLUGIN_MODULE_ICON = IconLoader . getIcon ( STRING0 ) ;
 + private static final Icon PLUGIN_MODULE_ICON = IconLoader . getIcon ( STRING1 ) ;
 private static final Icon PLUGIN_MODULE_NODE_ICON = IconLoader . getIcon ( STRING2 ) ;
 private static final Icon ADD_PLUGIN_MODULE_ICON = IconLoader . getIcon ( STRING3 ) ;
 private static PluginModuleType ourInstance = new PluginModuleType ( ) ;

correct sized icon for plugin module type


<nb> public class ShortcutManager implements NativePreviewHandler ,
 {
 keyBuffer_ . clear ( ) ;

 - SINGLE
 - SINGLE
 if ( XTermWidget . isXTerm ( Element . as ( event . getEventTarget ( ) ) ) &&
 ( binding . getContext ( ) != AppCommand . Context . Workbench &&
 - binding . getContext ( ) != AppCommand . Context . Addin ) )
 + binding . getContext ( ) != AppCommand . Context . Addin &&
 + binding . getContext ( ) != AppCommand . Context . PackageDevelopment ) )
 {
 + SINGLE
 return false ;
 }
 event . stopPropagation ( ) ;

add PackageDevelopment context to list of commands whose keyboard shortcuts are processed even if focus is in terminal


<nb> public class PeopleTable {
 }

 public static List < Person > getFollowers ( int localTableBlogId ) {
 - String [ ] args = { Integer . toString ( localTableBlogId ) , Integer . toString ( NUMBER0 ) } ;
 - String where = STRING0 ;
 + String [ ] args = { Integer . toString ( localTableBlogId ) , Integer . toString ( NUMBER0 ) , Integer . toString ( NUMBER1 ) } ;
 + String where = STRING1 ;
 return PeopleTable . getPeople ( localTableBlogId , where , args ) ;
 }

Don t include email followers in getFollowers query


<nb> public class CookieUtil
 {
 String name = nameValuePair . substring ( NUMBER0 , index ) . trim ( ) ;
 String value = stripOffSurrounding ( nameValuePair . substring ( index + NUMBER1 ) . trim ( ) ) ;
 - if ( nameValuePair . charAt ( NUMBER0 ) != STRING0 )
 + if ( name . charAt ( NUMBER0 ) != STRING0 )
 {
 if ( cookieToBeAdd != null )
 {
 <nb> public class CookieUtil
 }
 return s ;
 }
 - }
 + }
 <nb> public class TestCookieUtil
 public void testInvalidCookieFromClient ( )
 {
 cookieA . setComment ( STRING1 ) ;
 - List < String > encodeStrs = Collections . singletonList ( STRING2 ) ;
 + List < String > encodeStrs = Collections . singletonList ( STRING3 ) ;
 List < HttpCookie > cookieList = CookieUtil . decodeCookies ( encodeStrs ) ;

 Assert . assertEquals ( NUMBER0 , cookieList . size ( ) ) ;

Fix a bug when detecting cookies name with sign at the beginning


<nb> public class Requirements {
 Map < String , String > mapService = new HashMap < String , String > ( ) ;
 String [ ] services = ( String [ ] ) listServices . invoke ( null ) ;
 if ( services != null )
 - for ( String service : services ) {
 - IBinder binder = ( IBinder ) getService . invoke ( null , service ) ;
 - String descriptor = ( binder == null ? null : binder . getInterfaceDescriptor ( ) ) ;
 - mapService . put ( service , descriptor ) ;
 - }
 + for ( String service : services )
 + if ( service != null ) {
 + IBinder binder = ( IBinder ) getService . invoke ( null , service ) ;
 + String descriptor = ( binder == null ? null : binder . getInterfaceDescriptor ( ) ) ;
 + mapService . put ( service , descriptor ) ;
 + }

 if ( mapService . size ( ) > NUMBER0 ) {
 SINGLE


<nb> public class PipelineInstanceModel implements PipelineInfo {
 }

 public String getRevisionOfLatestModification ( ) {
 - return abbreviate ( buildCause . getMaterialRevisions ( ) . latestRevision ( ) ) ;
 - }
 -
 - private String abbreviate ( String originalRevision ) {
 - return originalRevision ;
 + return buildCause . getMaterialRevisions ( ) . latestRevision ( ) ;
 }

 public Integer getCounter ( ) {

Removing no longer required function abbreviate


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

 import NAMESPACE ;

 <nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 + @ unstableapi
 public class Http2ServerDowngrader extends MessageToMessageCodec < Http2StreamFrame , HttpObject > {

 private final boolean validateHeaders ;

Annotate Http2ServerDowngrader with UnstableApi


<nb> public class TrustedSslDomainTable {
 }

 public static boolean isDomainTrusted ( String domain ) {
 - return SqlUtils . intForQuery ( getDb ( ) , STRING0 + TABLE_NAME + STRING1 ,
 + return domain != null && SqlUtils . intForQuery ( getDb ( ) , STRING0 + TABLE_NAME + STRING1 ,
 new String [ ] { domain } ) > NUMBER0 ;
 }
 }


<nb> public class Stage extends InputAdapter implements Disposable {
 if ( target == null ) target = root ;

 target . fire ( event ) ;
 + boolean handled = event . isHandled ( ) ;
 Pools . free ( event ) ;
 - return event . isHandled ( ) ;
 + return handled ;
 }

 COMMENT

TouchDown is now caching the handled state of the event before the


<nb> public abstract class FlexibleDividerDecoration extends RecyclerView . ItemDecorat
 int childCount = mShowLastDivider ? parent . getChildCount ( ) : parent . getChildCount ( ) - NUMBER0 ;
 for ( int i = NUMBER1 ; i < childCount ; i ++ ) {
 View child = parent . getChildAt ( i ) ;
 - int childPosition = parent . getChildAdapterPosition ( child ) ;
 + int childPosition = parent . getChildPosition ( child ) ;
 if ( mVisibilityProvider . shouldHideDivider ( childPosition , parent ) ) {
 continue ;
 }
 <nb> public abstract class FlexibleDividerDecoration extends RecyclerView . ItemDecorat

 @ override
 public void getItemOffsets ( Rect rect , View v , RecyclerView parent , RecyclerView . State state ) {
 - int position = parent . getChildAdapterPosition ( v ) ;
 + int position = parent . getChildPosition ( v ) ;
 setItemOffsets ( rect , position , parent ) ;
 }

revert fix for deprecated method to avoid crash for older recyclerview version


<nb>
 package NAMESPACE ;

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


<nb> abstract class PooledByteBuf < T > extends AbstractByteBuf implements Unsafe {

 @ override
 public void suspendIntermediaryDeallocations ( ) {
 + assert ! isFreed ( ) ;
 if ( suspendedDeallocations == null ) {
 suspendedDeallocations = new ArrayDeque < Allocation < T > > ( NUMBER0 ) ;
 }

Do not allow suspendIntermediaryDeallocations after free


<nb> public class ExampleRunner {
 request . get ( STRING0 ) . set ( STRING1 ) ;
 request . get ( STRING2 ) . setEmptyList ( ) ;
 ModelNode r = client . execute ( request ) ;
 - System . out . println ( r . asString ( ) ) ;
 + System . out . println ( r . get ( STRING3 ) . asString ( ) ) ;

 } finally {
 StreamUtils . safeClose ( client ) ;


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

Made Transformation class non final methods still final


<nb> public final class Aeron implements AutoCloseable
 throwable . printStackTrace ( ) ;
 if ( throwable instanceof DriverTimeoutException )
 {
 - System . err . printf ( STRING0 ) ;
 + System . err . printf ( STRING1 ) ;
 System . exit ( - NUMBER0 ) ;
 }
 } ;
 <nb> public final class Aeron implements AutoCloseable
 }
 catch ( final Exception ex )
 {
 - System . err . printf ( STRING2 ) ;
 + System . err . printf ( STRING3 ) ;

 throw new IllegalStateException ( STRING4 , ex ) ;
 }

Java Use platform specific new lines in output formatting


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class FsTranslog extends AbstractIndexShardComponent implements Translog
 if ( currentFree < size ) {
 size = currentFree ;
 location = file ;
 - } else if ( currentFree == size && ThreadLocalRandom . current ( ) . nextBoolean ( ) ) {
 - location = file ;
 }
 }
 try {
 <nb> public class FsTranslog extends AbstractIndexShardComponent implements Translog
 if ( currentFree < size ) {
 size = currentFree ;
 location = file ;
 - } else if ( currentFree == size && ThreadLocalRandom . current ( ) . nextBoolean ( ) ) {
 - location = file ;
 }
 }
 this . trans = type . create ( shardId , id , new InternalChannelReference ( location . resolve ( getPath ( id ) ) , StandardOpenOption . READ , StandardOpenOption . WRITE , StandardOpenOption . CREATE_NEW ) , transientBufferSize ) ;

TRANSLOG Remove useless random translog directory selection


<nb> import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 public class ChronicleTcpHiccupMain {
 SINGLE
 - static final int WARMUP = Integer . getInteger ( STRING0 , NUMBER0 ) ;
 + static final int WARMUP = Integer . getInteger ( STRING0 , NUMBER1 ) ;
 SINGLE
 static int RUNS = Integer . getInteger ( STRING1 , NUMBER2 ) ;
 SINGLE


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

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class MathJax
 style . setProperty ( STRING0 , STRING1 ) ;
 style . setCursor ( Style . Cursor . DEFAULT ) ;

 + SINGLE
 + if ( BrowseCap . isWindowsDesktop ( ) )
 + {
 + style . setProperty ( STRING2 , STRING3 ) ;
 + style . setProperty ( STRING4 , STRING5 ) ;
 + }
 +
 return panel ;
 }

improve MathJax sizing behavior on Windows


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 COMMENT
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public interface RememberMeServices {
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class JDBCRealm
 SINGLE
 open ( ) ;

 - try ( PreparedStatement stmt = credentials ( dbConnection , username ) ;
 - ResultSet rs = stmt . executeQuery ( ) ) {
 + PreparedStatement stmt = credentials ( dbConnection , username ) ;
 + try ( ResultSet rs = stmt . executeQuery ( ) ) {
 if ( rs . next ( ) ) {
 dbCredentials = rs . getString ( NUMBER0 ) ;
 }
 <nb> public class JDBCRealm
 return null ;
 }

 -
 COMMENT
 COMMENT
 COMMENT
 <nb> public class JDBCRealm
 SINGLE
 open ( ) ;

 - try ( PreparedStatement stmt = roles ( dbConnection , username ) ;
 - ResultSet rs = stmt . executeQuery ( ) ) {
 + PreparedStatement stmt = roles ( dbConnection , username ) ;
 + try ( ResultSet rs = stmt . executeQuery ( ) ) {
 SINGLE
 ArrayList < String > roleList = new ArrayList < > ( ) ;

Don t use instance scoped variables in try with block since it will get


<nb> public class WelcomeActivity extends Activity {
 }
 } ) ;

 - AlertDialog alert = ad . create ( ) ;
 - alert . show ( ) ;
 + ad . show ( ) ;
 }


<nb> public class EvalMapperTest extends TestCase {
 for ( String key : keys ) {
 DummyCandidate candidate = population . get ( Integer . parseInt ( key ) ) ;
 assertEquals ( STRING0 + key , NUMBER0 , collector . getValue ( key ) . size ( ) ) ;
 - double fitness = ( double ) collector . getValue ( key ) . get ( NUMBER1 ) . get ( ) ;
 + double fitness = collector . getValue ( key ) . get ( NUMBER1 ) . get ( ) ;
 assertEquals ( STRING1 + key , DummyEvaluator
 . getFitness ( candidate . getIndex ( ) ) , fitness ) ;
 }


<nb> public class View implements Drawable . Callback , Drawable . Callback2 , KeyEvent . Cal
 if ( mNextFocusForwardId == View . NO_ID ) return null ;
 return findViewInsideOutShouldExist ( root , mNextFocusForwardId ) ;
 case FOCUS_BACKWARD : {
 + if ( mID == View . NO_ID ) return null ;
 final int id = mID ;
 return root . findViewByPredicateInsideOut ( this , new Predicate < View > ( ) {
 @ override

Fix FOCUS_BACKWARD search if view had no id


<nb>
 package NAMESPACE ;

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

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

 public class FMLRelauncher
 {
 <nb> public class FMLRelauncher
 private void setupHome ( File minecraftHome )
 {
 FMLInjectionData . build ( minecraftHome , classLoader ) ;
 + FMLRelaunchLog . minecraftHome = minecraftHome ;
 FMLRelaunchLog . info ( STRING0 , FMLInjectionData . major , FMLInjectionData . minor ,
 FMLInjectionData . rev , FMLInjectionData . build , FMLInjectionData . mccversion , FMLInjectionData . mcsversion ) ;

Fix up directory injection of log file locations