<nb> public class VcsLogManager implements Disposable {

 protected void processErrorFirstTime ( @ notnull Exception e ) {
 if ( myRecreateMainLogHandler != null ) {
 - LOG . info ( e ) ;
 - VcsBalloonProblemNotifier . showOverChangesView ( myProject , STRING0 + e . getMessage ( ) , MessageType . ERROR ) ;
 + String message = STRING0 + e . getMessage ( ) ;
 + if ( isLogVisible ( ) ) {
 + LOG . info ( e ) ;
 + VcsBalloonProblemNotifier . showOverChangesView ( myProject , message , MessageType . ERROR ) ;
 + }
 + else {
 + LOG . error ( message , e ) ;
 + }
 myRecreateMainLogHandler . run ( ) ;
 }
 else {

vcs log when log is recreated only show balloon when log is visible


<nb> public class HttpChannelOverHTTP2 extends HttpChannel

 _expect100Continue = fields . contains ( HttpHeader . EXPECT , HttpHeaderValue . CONTINUE . asString ( ) ) ;

 - SINGLE
 HttpFields response = getResponse ( ) . getHttpFields ( ) ;
 if ( getHttpConfiguration ( ) . getSendServerVersion ( ) )
 response . add ( SERVER_VERSION ) ;
 <nb> public class HttpChannel implements Runnable
 _request . setTimeStamp ( System . currentTimeMillis ( ) ) ;
 _request . setMetaData ( request ) ;

 - SINGLE
 if ( _configuration . getSendDateHeader ( ) )
 _response . getHttpFields ( ) . put ( _connector . getServer ( ) . getDateField ( ) ) ;
 }


<nb> public class SemanticAnalyzer extends BaseSemanticAnalyzer {
 private RelOptSchema relOptSchema ;
 private SemanticException semanticException ;
 private Map < String , PrunedPartitionList > partitionCache ;
 - private AtomicInteger noColsMissingStats = new AtomicInteger ( NUMBER0 ) ;
 + private final AtomicInteger noColsMissingStats = new AtomicInteger ( NUMBER0 ) ;
 List < FieldSchema > topLevelFieldSchema ;

 SINGLE
 <nb> public class SemanticAnalyzer extends BaseSemanticAnalyzer {

 private RelNode genFilterRelNode ( ASTNode filterExpr , RelNode srcRel ) throws SemanticException {
 ExprNodeDesc filterCondn = genExprNodeDesc ( filterExpr , relToHiveRR . get ( srcRel ) ) ;
 + if ( filterCondn instanceof ExprNodeConstantDesc &&
 + ! filterCondn . getTypeString ( ) . equals ( serdeConstants . BOOLEAN_TYPE_NAME ) ) {
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + throw new OptiqSemanticException ( STRING0 ) ;
 + }
 ImmutableMap < String , Integer > hiveColNameOptiqPosMap = this . relToHiveColNameOptiqPosMap
 . get ( srcRel ) ;
 RexNode convertedFilterExpr = new RexNodeConverter ( cluster , srcRel . getRowType ( ) ,

CBO Handle filters with non boolean return type Ashutosh Chauhan via John Pullokkaran


<nb> class ChangeHighlighterHolder {
 }

 @ nullable
 - public RangeHighlighter addRangeHighlighter ( int start ,
 - int end ,
 - int layer ,
 - TextDiffType type ,
 - HighlighterTargetArea targetArea ,
 + public RangeHighlighter addRangeHighlighter ( int start , int end , int layer , TextDiffType type , HighlighterTargetArea targetArea ,
 boolean applied ) {
 if ( getMarkupModel ( ) . getDocument ( ) . getTextLength ( ) == NUMBER0 ) return null ;
 TextAttributes attributes = type . getTextAttributes ( myEditor ) ;
 <nb> public class ChangeList {
 public Project getProject ( ) { return myProject ; }

 public List < Change > getChanges ( ) {
 - return Collections . unmodifiableList ( myChanges ) ;
 + return new ArrayList < Change > ( myChanges ) ;
 }

 public static ChangeList build ( Document base , Document version , Project project ) throws FilesTooBigForDiffException {

return a new ArrayList instead of unmodifiable list


<nb> public final class InputMethodInfo implements Parcelable {
 }
 }

 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - public boolean isEncryptionAware ( ) {
 - if ( mService == null || mService . serviceInfo == null ) {
 - return false ;
 - }
 - return mService . serviceInfo . encryptionAware ;
 - }
 -
 public void dump ( Printer pw , String prefix ) {
 pw . println ( prefix + STRING0 + mId
 + STRING1 + mSettingsActivityName

Remove unused InputMethodInfo isEncryptionAware


<nb> public class EclipsePatcher {
 }

 public static void premain ( String agentArgs , Instrumentation instrumentation ) throws Exception {
 - System . out . println ( STRING0 + System . getProperty ( STRING1 , STRING2 ) ) ;
 registerPatcher ( instrumentation , false ) ;
 addLombokToSearchPaths ( instrumentation ) ;
 }


<nb> public class TestOnlyInspection extends BaseJavaBatchLocalInspectionTool {
 public void visitReferenceExpression ( PsiReferenceExpression reference ) {
 PsiElement resolve = reference . resolve ( ) ;
 if ( resolve instanceof PsiField ) {
 - validate ( reference , ( ( PsiField ) resolve ) , h ) ;
 + validate ( reference , ( PsiField ) resolve , h ) ;
 }
 }

 <nb> public class TestOnlyInspection extends BaseJavaBatchLocalInspectionTool {
 return ;
 }
 PsiElement resolve = reference . resolve ( ) ;
 - if ( resolve instanceof PsiClass ) validate ( reference , ( ( PsiClass ) resolve ) , h ) ;
 + if ( resolve instanceof PsiClass ) validate ( reference , ( PsiClass ) resolve , h ) ;
 }
 } ;
 }


<nb> final class WebSocketSessionRemoteEndpoint implements RemoteEndpoint {

 @ override
 public void sendPong ( final ByteBuffer applicationData ) throws IOException , IllegalArgumentException {
 - WebSockets . sendPingBlocking ( applicationData , webSocketChannel ) ;
 + WebSockets . sendPongBlocking ( applicationData , webSocketChannel ) ;
 }
 }
 }


<nb> public abstract class LagartoServletFilter implements Filter {

 COMMENT
 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public void doFilter ( ServletRequest servletRequest , ServletResponse servletResponse , FilterChain filterChain ) throws IOException , ServletException {
 HttpServletRequest request = ( HttpServletRequest ) servletRequest ;
 HttpServletResponse response = ( HttpServletResponse ) servletResponse ;
 String actionPath = DispatcherUtil . getServletPath ( request ) ;

 + if ( processActionPath ( request , response , actionPath ) == true ) {
 + return ;
 + }
 +
 if ( acceptActionPath ( request , actionPath ) == false ) {
 filterChain . doFilter ( servletRequest , servletResponse ) ;
 return ;
 <nb> public abstract class LagartoServletFilter implements Filter {
 }

 COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + protected boolean processActionPath (
 + HttpServletRequest servletRequest ,
 + HttpServletResponse servletResponse ,
 + String actionPath ) throws IOException {
 +
 + return false ;
 + }
 +
 + COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class VimPlugin implements ApplicationComponent , PersistentStateComponent
 @ override
 public void initComponent ( ) {
 LOG . debug ( STRING0 ) ;
 - Notifications . Bus . register ( IDEAVIM_NOTIFICATION_ID , NotificationDisplayType . STICKY_BALLOON ) ;

 ApplicationManager . getApplication ( ) . invokeLater ( new Runnable ( ) {
 public void run ( ) {


<nb>

 package NAMESPACE ;

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

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

 -
 COMMENT
 COMMENT
 COMMENT
 <nb> public class AnnotatedConfigClassesWithoutAtConfigurationTests {
 @ autowired
 private LifecycleBean lifecycleBean ;

 +
 @ test
 public void testSPR_9051 ( ) throws Exception {
 assertNotNull ( enigma ) ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ApiGroovyCompiler implements org . gradle . language . base . internal . comp
 }

 private ClassLoader getExtClassLoader ( ) {
 - return new DefaultClassLoaderFactory ( ) . getIsolatedSystemClassLoader ( ) ;
 + return ClassLoaderUtils . getPlatformClassLoader ( ) ;
 }
 }

Use shared method to calculate the platform ClassLoader


<nb> public final class CxfPayloadConverter {
 payload . getBodySources ( ) . set ( NUMBER0 , new DOMSource ( d . getDocumentElement ( ) ) ) ;
 return type . cast ( d ) ;
 }
 + SINGLE
 + Source s = payload . getBodySources ( ) . get ( NUMBER0 ) ;
 + if ( type . isInstance ( s ) ) {
 + return type . cast ( s ) ;
 + }
 TypeConverter tc = registry . lookup ( type , Source . class ) ;
 if ( tc != null ) {
 - Source s = payload . getBodySources ( ) . get ( NUMBER0 ) ;
 - if ( type . isInstance ( s ) ) {
 - return type . cast ( s ) ;
 - }
 if ( ( s instanceof StreamSource
 || s instanceof SAXSource )
 && ! type . isAssignableFrom ( Document . class )

Optimize type conversion of CxfPaylaod with StreamSource with thanks to Stephan


<nb> public class GenericsType extends ASTNode {
 Map < String , GenericsType > classNodePlaceholders = GenericsUtils . extractPlaceholders ( classNode ) ;
 Map < String , GenericsType > boundPlaceHolders = GenericsUtils . extractPlaceholders ( bound ) ;
 boolean match = true ;
 - for ( int i = NUMBER0 ; i < redirectBoundGenericTypes . length && match ; i ++ ) {
 + for ( int i = NUMBER0 ; redirectBoundGenericTypes != null && i < redirectBoundGenericTypes . length && match ; i ++ ) {
 GenericsType redirectBoundType = redirectBoundGenericTypes [ i ] ;
 GenericsType classNodeType = cnTypes [ i ] ;
 SINGLE


<nb> public final class DlvDebugProcess extends DebugProcessImpl < RemoteVmConnection >

 @ override
 public void computeStackFrames ( int firstFrameIndex , XStackFrameContainer container ) {
 - for ( Api . Location location : myLocations ) {
 - if ( ! myStack . isEmpty ( ) ) {
 - location . line -= NUMBER0 ; SINGLE
 + if ( myStack . isEmpty ( ) ) {
 + for ( Api . Location location : myLocations ) {
 + if ( ! myStack . isEmpty ( ) ) {
 + location . line -= NUMBER0 ; SINGLE
 + }
 + myStack . add ( new DlvStackFrame ( location , myProcessor ) ) ;
 }
 - myStack . add ( new DlvStackFrame ( location , myProcessor ) ) ;
 + container . addStackFrames ( myStack , true ) ;
 }
 - container . addStackFrames ( myStack , true ) ;
 }

 private static class DlvStackFrame extends XStackFrame {


<nb> public class DateTimeType extends LiquibaseDataType {
 if ( database instanceof MySQLDatabase ) {
 boolean supportsParameters = true ;
 try {
 - supportsParameters = database . getDatabaseMajorVersion ( ) >= NUMBER0
 - && database . getDatabaseMinorVersion ( ) >= NUMBER1
 - && ( ( MySQLDatabase ) database ) . getDatabasePatchVersion ( ) >= NUMBER2 ;
 + int major = database . getDatabaseMajorVersion ( ) ;
 + int minor = database . getDatabaseMinorVersion ( ) ;
 + int patch = ( ( MySQLDatabase ) database ) . getDatabasePatchVersion ( ) ;
 + supportsParameters = ( major > NUMBER0 )
 + || ( ( major == NUMBER0 ) && ( minor > NUMBER1 ) )
 + || ( ( major == NUMBER0 ) && ( minor == NUMBER1 ) && ( patch >= NUMBER2 ) ) ;
 } catch ( Exception ignore ) {
 SINGLE
 }

correct the MySQL version check in DateTimeType


<nb> enum InputExplicitInit3 {
 int TOKEN_first = NUMBER0 ;
 int TOKEN_second = NUMBER1 ;
 int TOKEN_third = NUMBER2 ;
 + }
 +
 + class ForEach {
 + public ForEach ( Collection < String > strings )
 + {
 + for ( String s : strings ) SINGLE
 + {
 +
 + }
 + }
 }

Added foreach test cases for ExplicitInitializationCheck


<nb> public class Http2OkHttpTest extends AbstractTransportTest {
 Messages . StreamingOutputCallRequest . Builder requestBuilder =
 Messages . StreamingOutputCallRequest . newBuilder ( )
 . setResponseType ( Messages . PayloadType . COMPRESSABLE ) ;
 - for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) {
 + for ( int i = NUMBER0 ; i < NUMBER2 ; i ++ ) {
 requestBuilder . addResponseParameters ( responseParameters ) ;
 }


<nb>
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 package NAMESPACE ;

 import NAMESPACE ;


<nb> import NAMESPACE ;

 if ( ! isArrowKey && mWebView . nativeFocusNodePointer ( ) != mNodePointer ) {
 mWebView . nativeClearCursor ( ) ;
 - remove ( ) ;
 + SINGLE
 + SINGLE
 + SINGLE
 + mWebView . removeView ( this ) ;
 + mWebView . requestFocus ( ) ;
 return mWebView . dispatchKeyEvent ( event ) ;
 }

Do not hide the soft keyboard when the DOM has moved focus


<nb> public class RelativeLayout extends ViewGroup {
 }

 final int heightMode ;
 - if ( params . width == LayoutParams . MATCH_PARENT ) {
 + if ( params . height == LayoutParams . MATCH_PARENT ) {
 heightMode = MeasureSpec . EXACTLY ;
 } else {
 heightMode = MeasureSpec . AT_MOST ;

DO NOT MERGE Use correct param for heightMode in RelativeLayout horizontal measure


<nb> public abstract class ServiceCommandDispatcher < C > implements CommandDispatcher < C
 }

 private RequestOptions createRequestOptions ( ) {
 - return new RequestOptions ( ResponseMode . GET_ALL , this . timeout , false , FILTER , Message . Flag . DONT_BUNDLE ) ;
 + return new RequestOptions ( ResponseMode . GET_ALL , this . timeout , false , FILTER , Message . Flag . DONT_BUNDLE , Message . Flag . OOB ) ;
 }

 static < R > CommandResponse < R > createCommandResponse ( Rsp < R > response ) {

Fix transient failures in CommandDispatcherTestCase


<nb> package NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public class StringTemplate {
 private final Tuple tuple ;

added more comments on how to construct a valid StringTemplate


<nb> public class SourceFunctionTest {
 NUMBER0 ) ) ;
 assertEquals ( expectedList , actualList ) ;
 }
 -
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 }

hotfix Removed deprecated and commented code in SourceFunctionTest


<nb>
 package NAMESPACE ;

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

 @ implements ( NumberPicker . class )
 public class ShadowNumberPicker extends ShadowLinearLayout {
 <nb> public class ShadowNumberPicker extends ShadowLinearLayout {
 private int maxValue ;
 private boolean wrapSelectorWheel ;
 private String [ ] displayedValues ;
 + private NumberPicker . OnValueChangeListener onValueChangeListener ;

 @ implementation
 public void setValue ( int value ) {
 <nb> public class ShadowNumberPicker extends ShadowLinearLayout {
 public boolean getWrapSelectorWheel ( ) {
 return wrapSelectorWheel ;
 }
 +
 + @ implementation
 + public void setOnValueChangedListener ( NumberPicker . OnValueChangeListener listener ) {
 + this . onValueChangeListener = listener ;
 + }
 +
 + public NumberPicker . OnValueChangeListener getOnValueChangeListener ( ) {
 + return onValueChangeListener ;
 + }
 }

Add OnValueChangeListener property to ShadowNumberPicker


<nb> public class FormRelatedFilesProvider extends GotoRelatedProvider {
 public List < ? extends GotoRelatedItem > getItems ( @ notnull PsiElement context ) {
 PsiClass psiClass = PsiTreeUtil . getParentOfType ( context , PsiClass . class , false ) ;
 if ( psiClass != null ) {
 - List < PsiFile > forms = FormClassIndex . findFormsBoundToClass ( psiClass ) ;
 - return GotoRelatedItem . createItems ( forms ) ;
 + while ( psiClass != null ) {
 + List < PsiFile > forms = FormClassIndex . findFormsBoundToClass ( psiClass ) ;
 + if ( ! forms . isEmpty ( ) ) {
 + return GotoRelatedItem . createItems ( forms ) ;
 + }
 + psiClass = PsiTreeUtil . getParentOfType ( psiClass , PsiClass . class ) ;
 + }
 }
 else {
 PsiFile file = context . getContainingFile ( ) ;

fixed navigation to form file from anonymous and inner classes


<nb> public class DechunkingChannelBuffer implements ChannelBuffer
 private ChannelBuffer buffer ;
 private boolean more ;
 private boolean hasMarkedReaderIndex ;
 - private final long timeoutSeconds ;
 + private final long timeoutMillis ;
 private boolean failure ;
 private final byte applicationProtocolVersion ;
 private final byte internalProtocolVersion ;

 - DechunkingChannelBuffer ( BlockingReadHandler < ChannelBuffer > reader , long timeoutSeconds , byte internalProtocolVersion ,
 + DechunkingChannelBuffer ( BlockingReadHandler < ChannelBuffer > reader , long timeoutMillis , byte internalProtocolVersion ,
 byte applicationProtocolVersion )
 {
 this . reader = reader ;
 - this . timeoutSeconds = timeoutSeconds ;
 + this . timeoutMillis = timeoutMillis ;
 this . internalProtocolVersion = internalProtocolVersion ;
 this . applicationProtocolVersion = applicationProtocolVersion ;
 readNextChunk ( ) ;
 <nb> public class DechunkingChannelBuffer implements ChannelBuffer
 {
 try
 {
 - ChannelBuffer result = reader . read ( timeoutSeconds , TimeUnit . SECONDS ) ;
 + ChannelBuffer result = reader . read ( timeoutMillis , TimeUnit . MILLISECONDS ) ;
 if ( result == null )
 {
 throw new ComException ( STRING0 ) ;

Changes DechunkingChannelBuffer to use milliseconds since that s the configuration provided value


<nb> public class MvcNamespaceTests {

 @ test
 public void testContentNegotiationManager ( ) throws Exception {
 - loadBeanDefinitions ( STRING0 , NUMBER0 ) ;
 + loadBeanDefinitions ( STRING0 , NUMBER1 ) ;

 RequestMappingHandlerMapping mapping = appContext . getBean ( RequestMappingHandlerMapping . class ) ;
 ContentNegotiationManager manager = mapping . getContentNegotiationManager ( ) ;


<nb> import NAMESPACE ;

 public class PsiFileStubImpl < T extends PsiFile > extends StubBase < T > implements PsiFileStub < T > {
 public static final IStubFileElementType TYPE = new IStubFileElementType ( Language . ANY ) ;
 - private T myFile ;
 + private volatile T myFile ;

 public PsiFileStubImpl ( final T file ) {
 super ( null , null ) ;
 <nb> public abstract class PsiFileImpl extends ElementBase implements PsiFileEx , PsiF
 final StubTree derefdOnLock = derefStub ( ) ;
 if ( derefdOnLock != null ) return derefdOnLock ;

 + SINGLE
 + ( ( StubBase ) stubHolder . getRoot ( ) ) . setPsi ( this ) ;
 myStub = new SoftReference < StubTree > ( stubHolder ) ;
 - StubBase < PsiFile > base = ( StubBase ) stubHolder . getRoot ( ) ;
 - base . setPsi ( this ) ;
 return stubHolder ;
 }
 }

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


<nb> public class SipPhone extends SipPhoneBase {
 Log . v ( LOG_TAG , STRING0 + mPeer . getUriString ( ) + STRING1
 + STRING2 + getPhone ( ) . getPhoneName ( ) ) ;
 try {
 - mSipAudioCall . endCall ( ) ;
 + if ( mSipAudioCall != null ) mSipAudioCall . endCall ( ) ;
 setState ( Call . State . DISCONNECTING ) ;
 setDisconnectCause ( DisconnectCause . LOCAL ) ;
 } catch ( SipException e ) {


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


<nb> public class BaseRestTestCase extends PvmTestCase {
 protected ObjectMapper objectMapper = new ObjectMapper ( ) ;

 private static final List < String > TABLENAMES_EXCLUDED_FROM_DB_CLEAN_CHECK = Arrays . asList (
 - STRING0
 + STRING0 ,
 + STRING1 ,
 + STRING2
 ) ;

 protected ProcessEngine processEngine ;


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

 List < ZipFile > toClose = ContainerUtil . newSmartList ( ) ;

 + paths = ContainerUtil . map ( paths , new Function < String , String > ( ) {
 + @ override
 + public String fun ( String path ) {
 + return toCanonicalPath ( path ) ;
 + }
 + } ) ;
 +
 synchronized ( ourLock ) {
 for ( String path : paths ) {
 - path = toCanonicalPath ( path ) ;
 -
 CacheRecord record = ourPathCache . remove ( path ) ;
 if ( record != null ) {
 ourFileCache . remove ( record . file ) ;


<nb> public class OServerNetworkListener extends Thread {
 final ODistributedServerManager . NODE_STATUS nodeStatus = server . getDistributedManager ( ) . getNodeStatus ( ) ;
 if ( nodeStatus != ODistributedServerManager . NODE_STATUS . ONLINE ) {
 OLogManager . instance ( ) . warn ( this ,
 - STRING0 , nodeStatus ,
 + STRING1 , nodeStatus ,
 socket . getRemoteSocketAddress ( ) ) ;
 socket . close ( ) ;


<nb> public abstract class BasePopup implements ActionListener , ElementFilter , com . in
 final PopupFactory factory = PopupFactory . getSharedInstance ( ) ;
 if ( ! SystemInfo . isWindows ) {
 try {
 - final Method method = factory . getClass ( ) . getDeclaredMethod ( STRING0 , int . class ) ;
 + final Method method = PopupFactory . class . getDeclaredMethod ( STRING0 , int . class ) ;
 method . setAccessible ( true ) ;
 method . invoke ( factory , NUMBER0 ) ;
 }


<nb> import NAMESPACE ;
 public class FtpShutdownCompleteAllTasksTest extends FtpServerTestSupport {

 private String getFtpUrl ( ) {
 - return STRING0 + getPort ( ) + STRING1 ;
 + return STRING0 + getPort ( ) + STRING2 ;
 }

 @ override
 <nb> public class FtpShutdownCompleteAllTasksTest extends FtpServerTestSupport {

 MockEndpoint bar = getMockEndpoint ( STRING3 ) ;
 bar . expectedMinimumMessageCount ( NUMBER0 ) ;
 - bar . setResultWaitTime ( NUMBER1 ) ;

 assertMockEndpointsSatisfied ( ) ;

 <nb> import NAMESPACE ;
 public class FtpShutdownCompleteCurrentTaskOnlyTest extends FtpServerTestSupport {

 private String getFtpUrl ( ) {
 - return STRING0 + getPort ( ) + STRING1 ;
 + return STRING0 + getPort ( ) + STRING2 ;
 }

 @ override
 <nb> public class FtpShutdownCompleteCurrentTaskOnlyTest extends FtpServerTestSupport

 MockEndpoint bar = getMockEndpoint ( STRING3 ) ;
 bar . expectedMinimumMessageCount ( NUMBER0 ) ;
 - bar . setResultWaitTime ( NUMBER1 ) ;

 assertMockEndpointsSatisfied ( ) ;


<nb> public class KMeansSampleDataGenerator {

 private static final double DEFAULT_VALUE_RANGE = FLOAT0 ;

 - private static final double RELATIVE_STDDEV = FLOAT1 ;
 + private static final double RELATIVE_STDDEV = FLOAT2 ;

 private static final int DIMENSIONALITY = NUMBER0 ;

Changed default stddev in kmeans sample data generator


<nb> public class SpiceManagerTest extends InstrumentationTestCase {
 public void test_shouldStop_stops_requests_immediatly ( ) throws InterruptedException {
 SINGLE
 spiceManager . start ( getInstrumentation ( ) . getTargetContext ( ) ) ;
 - SpiceRequestStub < String > contentRequestStub = new SpiceRequestFailingStub < String > ( TEST_CLASS ) ;
 - SpiceRequestStub < String > contentRequestStub2 = new SpiceRequestFailingStub < String > ( TEST_CLASS ) ;
 + SpiceRequestStub < String > contentRequestStub = new SpiceRequestFailingStub < String > ( TEST_CLASS , WAIT_BEFORE_EXECUTING_REQUEST ) ;
 + SpiceRequestStub < String > contentRequestStub2 = new SpiceRequestFailingStub < String > ( TEST_CLASS , WAIT_BEFORE_EXECUTING_REQUEST ) ;
 RequestListenerStub < String > requestListenerStub = new RequestListenerStub < String > ( ) ;
 RequestListenerStub < String > requestListenerStub2 = new RequestListenerStub < String > ( ) ;


<nb> public final class HikariPool implements HikariPoolMBean
 COMMENT
 private boolean isConnectionAlive ( final IHikariConnectionProxy connection , long timeoutMs )
 {
 - if ( timeoutMs < NUMBER0 )
 - {
 - timeoutMs = NUMBER0 ;
 - }
 -
 try
 {
 connection . setAutoCommit ( isAutoCommit ) ;
 <nb> public final class HikariPool implements HikariPoolMBean
 connection . setTransactionIsolation ( transactionIsolation ) ;
 }

 + SINGLE
 + if ( System . currentTimeMillis ( ) - connection . getLastAccess ( ) < NUMBER0 )
 + {
 + return true ;
 + }
 +
 try
 {
 + if ( timeoutMs < NUMBER0 )
 + {
 + timeoutMs = NUMBER0 ;
 + }
 +
 if ( jdbc4ConnectionTest )
 {
 return connection . isValid ( ( int ) TimeUnit . MILLISECONDS . toSeconds ( timeoutMs ) ) ;

Add short circuit to aliveness check if connection was used within the last second


<nb>

 package NAMESPACE ;

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


<nb> public class UserLoginUidActivity extends BaseActivity implements
 showShortToast ( getResources ( ) . getString ( R . string . user_pwd ) ) ;
 return ;
 } else if ( ! NetWorkHelper . checkNetState ( this ) ) {
 - SINGLE
 - SINGLE
 + showLongToast ( getResources ( ) . getString ( R . string . httpisNull ) ) ;
 + return ;
 }
 String loginUser = String . format ( Urls . USER_LOGIN , name , pwd ) ;
 new LoginAsyncTask ( ) . execute ( loginUser ) ;


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public abstract class FileColorManager {

 public abstract Project getProject ( ) ;

 - @ suppresswarnings ( { STRING0 } )
 @ nullable
 public abstract Color getColor ( @ notnull String name ) ;

 <nb> public abstract class FileColorManager {

 @ nullable
 public abstract Color getRendererBackground ( PsiFile file ) ;
 +
 + public abstract void addScopeColor ( @ notnull String scopeName , @ notnull String colorName , boolean isProjectLevel ) ;
 }
 <nb> public class FileColorManagerImpl extends FileColorManager implements Persistent
 }

 @ override
 + public void addScopeColor ( @ notnull String scopeName , @ notnull String colorName , boolean isProjectLevel ) {
 + myModel . add ( scopeName , colorName , isProjectLevel ) ;
 + }
 +
 + @ override
 @ nullable
 public Color getFileColor ( @ notnull final PsiFile file ) {
 initProjectLevelConfigurations ( ) ;


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

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


<nb> public class HttpDownloadConnection implements Transferable {
 && this . file . getKey ( ) == null ) {
 this . message . setEncryption ( Message . ENCRYPTION_NONE ) ;
 }
 - checkFileSize ( true ) ;
 + checkFileSize ( interactive ) ;
 } catch ( MalformedURLException e ) {
 this . cancel ( ) ;
 }


<nb> public class StandardLibraryReferenceResolver extends AbstractProjectComponent {
 ensureInitialized ( ) ;
 DeclarationDescriptor declarationDescriptor = BindingContextUtils . referenceToDescriptor ( originalContext , referenceExpression ) ;

 - if ( declarationDescriptor != null ) {
 - declarationDescriptor = declarationDescriptor . getOriginal ( ) ;
 - declarationDescriptor = findCurrentDescriptor ( declarationDescriptor ) ;
 - if ( declarationDescriptor != null ) {
 - return BindingContextUtils . descriptorToDeclaration ( bindingContext , declarationDescriptor ) ;
 - }
 + return declarationDescriptor != null ? resolveStandardLibrarySymbol ( declarationDescriptor ) : null ;
 + }
 +
 + @ nullable
 + public PsiElement resolveStandardLibrarySymbol ( @ notnull DeclarationDescriptor declarationDescriptor ) {
 + ensureInitialized ( ) ;
 + DeclarationDescriptor descriptor = declarationDescriptor ;
 +
 + descriptor = descriptor . getOriginal ( ) ;
 + descriptor = findCurrentDescriptor ( descriptor ) ;
 + if ( descriptor != null ) {
 + return BindingContextUtils . descriptorToDeclaration ( bindingContext , descriptor ) ;
 }
 return null ;
 }

Introduced resolveStandardLibrarySymbol taking DeclarationDescriptor


<nb> public final class EncryptedMapDecorator implements Map < String , String > {
 COMMENT
 private byte [ ] consumeByteSourceOrNull ( final ByteSource source ) {
 try {
 + if ( source == null || source . isEmpty ( ) ) {
 + return null ;
 + }
 return source . read ( ) ;
 } catch ( final IOException e ) {
 logger . warn ( STRING0 , e ) ;


<nb> public class UriTest extends TestCase {
 assertEquals ( NUMBER0 , names . size ( ) ) ;
 assertEquals ( STRING0 , names . iterator ( ) . next ( ) ) ;
 }
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + public void testGetQueryParametersEmptyValue ( ) {
 + assertEquals ( Arrays . asList ( STRING1 ) ,
 + Uri . parse ( STRING2 ) . getQueryParameters ( STRING3 ) ) ;
 + assertEquals ( Arrays . asList ( STRING1 ) ,
 + Uri . parse ( STRING4 ) . getQueryParameters ( STRING3 ) ) ;
 + assertEquals ( Arrays . asList ( STRING1 ) ,
 + Uri . parse ( STRING5 ) . getQueryParameters ( STRING3 ) ) ;
 + assertEquals ( Arrays . asList ( STRING6 , STRING1 , STRING1 ) ,
 + Uri . parse ( STRING7 ) . getQueryParameters ( STRING3 ) ) ;
 + assertEquals ( Arrays . asList ( STRING6 , STRING1 , STRING1 ) ,
 + Uri . parse ( STRING8 ) . getQueryParameters ( STRING3 ) ) ;
 + }
 }

Add a test to demonstrate parsing of trailing URI parameters


<nb> public class DataServerIntegrationTest {
 Assert . assertEquals ( TestUtils . getIncreasingByteBuffer ( length ) , result ) ;
 }

 - @ test
 + SINGLE
 + SINGLE
 public void readThroughClientNonExistentTest ( )
 throws InvalidPathException , FileAlreadyExistException , IOException {
 final int length = NUMBER0 ;


<nb> public class ResStyleValue extends ResBagValue implements
 SINGLE
 if ( resource . contains ( STRING0 ) ) {
 continue ;
 - } else if ( resource . contains ( STRING1 ) || resource . contains ( STRING2 ) ) {
 + } else if ( resource . contains ( STRING1 ) || resource . contains ( STRING2 ) ||
 + resource . contains ( STRING3 ) ) {
 name = STRING4 + spec . getFullName ( res . getResSpec ( ) . getPackage ( ) , false ) ;
 } else {
 ResAttr attr = ( ResAttr ) spec . getDefaultResource ( ) . getValue ( ) ;


<nb>
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 COMMENT
 COMMENT
 <nb> public class IdeaDecompiler extends ClassFileDecompilers . Light {
 }
 decompiler . decompileContext ( ) ;

 - file . putUserData ( LineNumbersMapping . LINE_NUMBERS_MAPPING_KEY ,
 - new ExactMatchLineNumbersMapping ( saver . myMapping ) ) ;
 + if ( saver . myMapping != null ) {
 + file . putUserData ( LineNumbersMapping . LINE_NUMBERS_MAPPING_KEY , new ExactMatchLineNumbersMapping ( saver . myMapping ) ) ;
 + }

 return saver . myResult ;
 }
 <nb> public class IdeaDecompiler extends ClassFileDecompilers . Light {
 private static class ExactMatchLineNumbersMapping implements LineNumbersMapping {
 private int [ ] myMapping ;

 - private ExactMatchLineNumbersMapping ( int [ ] mapping ) {
 + private ExactMatchLineNumbersMapping ( @ notnull int [ ] mapping ) {
 myMapping = mapping ;
 }


<nb> public final class RegisteredServiceSimpleFormController extends AbstractManagem
 possibleAttributeNames . addAll ( this . personAttributeDao . getPossibleUserAttributeNames ( ) ) ;
 Collections . sort ( possibleAttributeNames ) ;
 formData . setAvailableAttributes ( possibleAttributeNames ) ;
 -
 +
 bean . setStatus ( HttpServletResponse . SC_OK ) ;
 JsonViewUtils . render ( bean , response ) ;
 } catch ( final Exception e ) {
 <nb> public final class RegisteredServiceEditBean implements Serializable {
 } else if ( provider instanceof PrincipalAttributeRegisteredServiceUsernameProvider ) {
 final PrincipalAttributeRegisteredServiceUsernameProvider p =
 ( PrincipalAttributeRegisteredServiceUsernameProvider ) provider ;
 + uBean . setType ( RegisteredServiceUsernameAttributeProviderEditBean . Types . ATTRIBUTE . toString ( ) ) ;
 uBean . setValue ( p . getUsernameAttribute ( ) ) ;
 }


<nb> public abstract class BaseIndex < D , E extends Dto < K > , K extends Serializable >
 . admin ( )
 . indices ( )
 . prepareRefresh ( this . getIndexName ( ) )
 - . setForce ( true )
 . get ( ) ;
 }


<nb> public class InputMethodManagerService extends IInputMethodManager . Stub
 Slog . d ( TAG , STRING0
 + STRING1 + uid + STRING2 + Process . SYSTEM_UID
 + STRING3 + userId + STRING4
 - + mSettings . getCurrentUserId ( ) + STRING5 + Binder . getCallingPid ( ) ) ;
 + + mSettings . getCurrentUserId ( ) + STRING6 + Binder . getCallingPid ( ) ) ;
 }
 if ( uid == Process . SYSTEM_UID || userId == mSettings . getCurrentUserId ( ) ) {
 return true ;
 <nb> public class InputMethodManagerService extends IInputMethodManager . Stub
 mSwitchingDialog . setCanceledOnTouchOutside ( true ) ;
 mSwitchingDialog . getWindow ( ) . setType (
 WindowManager . LayoutParams . TYPE_INPUT_METHOD_DIALOG ) ;
 + mSwitchingDialog . getWindow ( ) . getAttributes ( ) . privateFlags |=
 + WindowManager . LayoutParams . PRIVATE_FLAG_SHOW_FOR_ALL_USERS ;
 mSwitchingDialog . getWindow ( ) . getAttributes ( ) . setTitle ( STRING7 ) ;
 mSwitchingDialog . show ( ) ;
 }

Fix an issue on showInputMethodPickerFromClient


<nb> class GlobalScreenshot {

 SINGLE
 if ( mScreenshotAnimation != null ) {
 - mScreenshotAnimation . end ( ) ;
 + if ( mScreenshotAnimation . isStarted ( ) ) {
 + mScreenshotAnimation . end ( ) ;
 + }
 mScreenshotAnimation . removeAllListeners ( ) ;
 }


<nb> public class Translog extends AbstractIndexShardComponent implements IndexShardC
 if ( current . getTragicException ( ) != null ) {
 try {
 close ( ) ;
 + } catch ( AlreadyClosedException inner ) {
 + SINGLE
 + SINGLE
 } catch ( Exception inner ) {
 ex . addSuppressed ( inner ) ;
 + assert ( ex != inner . getCause ( ) ) ;
 }
 }
 }


<nb> public class GpsLocationProvider implements LocationProviderInterface {
 public GpsLocationProvider ( Context context , ILocationManager locationManager ) {
 mContext = context ;
 mLocationManager = locationManager ;
 - mNIHandler = new GpsNetInitiatedHandler ( context , this ) ;
 + mNIHandler = new GpsNetInitiatedHandler ( context , this ) ;
 +
 + mLocation . setExtras ( mLocationExtras ) ;

 SINGLE
 PowerManager powerManager = ( PowerManager ) mContext . getSystemService ( Context . POWER_SERVICE ) ;

Fix broken location extras in GpsLocationProvider


<nb> public class FileRenameFileOnCommitIssueTest extends ContextTestSupport {
 . inOut ( STRING0 )
 . process ( new Processor ( ) {
 public void process ( Exchange exchange ) throws Exception {
 - SINGLE
 + log . info ( STRING1 , exchange . getIn ( ) . getBody ( String . class ) ) ;
 }
 } )
 . to ( STRING2 ) ;

Replaced System out println with log info


<nb> public class SlidingUpPanelLayout extends ViewGroup {
 COMMENT
 COMMENT
 COMMENT
 - private static final int [ ] ATTRS = new int [ ] {
 + private static final int [ ] DEFAULT_ATTRS = new int [ ] {
 android . R . attr . layout_gravity
 } ;

 <nb> public class SlidingUpPanelLayout extends ViewGroup {
 public SlidingUpPanelLayout ( Context context , AttributeSet attrs , int defStyle ) {
 super ( context , attrs , defStyle ) ;
 if ( attrs != null ) {
 - TypedArray defAttrs = context . obtainStyledAttributes ( attrs , ATTRS ) ;
 + TypedArray defAttrs = context . obtainStyledAttributes ( attrs , DEFAULT_ATTRS ) ;

 if ( defAttrs != null ) {
 mIsSlidingUp = defAttrs . getInt ( NUMBER0 , Gravity . BOTTOM ) == Gravity . BOTTOM ;


<nb> public class ShellPane extends Composite implements Shell . Display ,

 public void consoleWriteInput ( String input )
 {
 - output ( input , styles_ . input ( ) + KEYWORD_CLASS_NAME , false ) ;
 + output ( input , styles_ . command ( ) + KEYWORD_CLASS_NAME , false ) ;
 scrollToBottomAsync ( ) ;
 }

Fix selection rendering issue in console desktop only


<nb> public class Message
 {
 id = Integer . parseInt ( getAttributeValue ( messageNode , STRING0 ) ) ; SINGLE
 name = getAttributeValue ( messageNode , STRING1 ) ; SINGLE
 + checkForValidName ( messageNode , name ) ;
 +
 description = getAttributeValueOrNull ( messageNode , STRING2 ) ; SINGLE
 blockLength = Integer . parseInt ( getAttributeValue ( messageNode , STRING3 , STRING4 ) ) ; SINGLE
 semanticType = getAttributeValueOrNull ( messageNode , STRING5 ) ; SINGLE
 <nb> package NAMESPACE ;

 import NAMESPACE ;

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

 <nb> public abstract class Type
 public Type ( final Node node )
 {
 name = getAttributeValue ( node , STRING1 ) ;
 + checkForValidName ( node , name ) ;
 +
 presence = Presence . get ( getAttributeValue ( node , STRING6 , STRING7 ) ) ;
 description = getAttributeValueOrNull ( node , STRING2 ) ;
 semanticType = getAttributeValueOrNull ( node , STRING5 ) ;

Java Check message and all type names for potential keywords


<nb> public class ModelUtils {
 long hash = NUMBER0 ;
 if ( data != null )
 for ( double d : data ) hash ^= Double . doubleToRawLongBits ( d + i ) > > NUMBER1 ; SINGLE
 - labels [ i ++ ] = indices . remove ( ( int ) hash % indices . size ( ) ) ;
 + labels [ i ++ ] = indices . remove ( ( int ) Math . abs ( hash ) % indices . size ( ) ) ;
 }
 assert ( i == numK ) ;
 }

use absolute value of hash before doing modulo operation in Hit Ratio multi class tie breaking


<nb> public class ColumnDefinition
 return new ColumnDefinition ( name , validator , index_type , index_options , index_name , componentIndex ) ;
 }

 - public ColumnDefinition clone ( )
 - {
 - return new ColumnDefinition ( name , validator , index_type , index_options , index_name ) ;
 - }
 -
 @ override
 public boolean equals ( Object o )
 {


<nb> public class PreferenceManager {
 return getDefaultSharedPreferences ( context , HoloEverywhere . PREFERENCE_IMPL ) ;
 }

 + public static SharedPreferences getDefaultSharedPreferences ( Context context , int mode ) {
 + return wrap ( context , getDefaultSharedPreferencesName ( context ) , mode ) ;
 + }
 +
 public static SharedPreferences getDefaultSharedPreferences ( Context context ,
 PreferenceImpl impl ) {
 return wrap ( context , impl , getDefaultSharedPreferencesName ( context ) ,

Added another getDefaultSharedPreferences method


<nb> public class JettyEmbeddedServletContainerFactory extends
 protected final void configureWebAppContext ( WebAppContext context ,
 ServletContextInitializer . . . initializers ) {
 Assert . notNull ( context , STRING0 ) ;
 + context . setTempDirectory ( getTempDirectory ( ) ) ;
 setExtendedListenerTypes ( context ) ;
 if ( this . resourceLoader != null ) {
 context . setClassLoader ( this . resourceLoader . getClassLoader ( ) ) ;
 <nb> public class JettyEmbeddedServletContainerFactory extends
 postProcessWebAppContext ( context ) ;
 }

 + private File getTempDirectory ( ) {
 + String temp = System . getProperty ( STRING1 ) ;
 + return ( temp == null ? null : new File ( temp ) ) ;
 + }
 +
 private void setExtendedListenerTypes ( WebAppContext context ) {
 try {
 context . getServletContext ( ) . setExtendedListenerTypes ( true ) ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ImportClassHelper {
 COMMENT
 COMMENT
 public static void addImportDirective ( @ notnull String importString , @ notnull JetFile file ) {
 -
 +
 + SINGLE
 + if ( importString . startsWith ( JavaDescriptorResolver . JAVA_ROOT + STRING0 ) ) {
 + importString = importString . substring ( ( JavaDescriptorResolver . JAVA_ROOT + STRING0 ) . length ( ) ) ;
 + }
 +
 SINGLE
 - if ( JetPsiUtil . getFQName ( file ) . equals ( QualifiedNamesUtil . withoutLastSegment ( importString ) ) ) {
 + if ( QualifiedNamesUtil . isOneSegmentFQN ( importString ) ||
 + JetPsiUtil . getFQName ( file ) . equals ( QualifiedNamesUtil . withoutLastSegment ( importString ) ) ) {
 +
 return ;
 }


<nb> public class XmlHighlightVisitor extends PsiElementVisitor implements Validator .
 ) {
 if ( tag instanceof HtmlTag ) {
 XmlEntitiesInspection inspection = getInspectionProfile ( tag , HtmlStyleLocalInspection . SHORT_NAME ) ;
 - if ( inspection != null && isAdditionallyDeclared ( inspection . getAdditionalEntries ( XmlEntitiesInspection . UNKNOWN_TAG ) , name ) ) {
 + if ( inspection != null COMMENT ) {
 return ;
 }
 }

add custom tag to custom tag list qf fixed


<nb> public class OObjectSerializerHelper {
 type = getFieldType ( iUserObject , iFieldName ) ;
 }

 + if ( type == null )
 + throw new OSerializationException ( STRING0 + iFieldName + STRING1 + iRoot . getClassName ( ) + STRING2 ) ;
 +
 Object fieldValue = null ;
 Class < ? > fieldClass ;
 boolean propagate = false ;


<nb> public class DaemonClient implements GradleLauncherActionExecuter < BuildActionPar
 }

 private < T > Result < T > runBuild ( Build build , Connection < Object > connection ) {
 + DaemonClientInputForwarder inputForwarder = new DaemonClientInputForwarder ( System . in , build . getClientMetaData ( ) , connection ) ;
 try {
 SINGLE
 connection . dispatch ( build ) ;
 + inputForwarder . start ( ) ;
 while ( true ) {
 Object object = connection . receive ( ) ;

 <nb> public class DaemonClient implements GradleLauncherActionExecuter < BuildActionPar
 }
 }
 } finally {
 + inputForwarder . stop ( ) ;
 connection . stop ( ) ;
 }
 }

integrate the daemon client input forwarder though there s not yet anything listening on the other side


<nb> public class ConversationFragment extends Fragment {
 return true ;
 case R . id . download_image :
 downloadImage ( selectedMessage ) ;
 + return true ;
 default :
 return super . onContextItemSelected ( item ) ;
 }
 <nb> public class ManageAccountActivity extends XmppActivity {
 return true ;
 case R . id . mgmt_account_announce_pgp :
 publishOpenPGPPublicKey ( selectedAccount ) ;
 + return true ;
 default :
 return super . onContextItemSelected ( item ) ;
 }


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


<nb> public class StaticMethod implements Matcher < ExpressionTree > {
 @ override
 public boolean matches ( ExpressionTree item , VisitorState state ) {
 Symbol sym = ASTHelpers . getSymbol ( item ) ;
 - if ( sym == null || ! ( sym instanceof MethodSymbol ) ) {
 - throw new IllegalArgumentException ( STRING0 ) ;
 - }
 - if ( ! sym . isStatic ( ) ) {
 + if ( sym == null || ! ( sym instanceof MethodSymbol ) || ! sym . isStatic ( ) ) {
 return false ;
 }

Make StaticMethod fail the match rather than throwing an exception when not passed a method invocation


<nb> public class ExpressionStatement extends Statement {
 this . expression = expression ;
 }

 + public String getText ( ) {
 + return this . toString ( ) ;
 + }
 public String toString ( ) {
 return super . toString ( ) + STRING0 + expression + STRING1 ;
 }

overrode the super class default getText


<nb> public class InvoiceDateUtils {
 return calculateProrationBetweenDates ( previousBillThroughDate , endDate , previousBillThroughDate , nextBillThroughDate ) ;
 }

 - COMMENT
 - public static LocalDate calculateBillingCycleDateOnOrAfter ( final LocalDate date , final DateTimeZone accountTimeZone ,
 - final int billingCycleDayLocal ) {
 - final DateTime tmp = date . toDateTimeAtStartOfDay ( accountTimeZone ) ;
 - final DateTime proposedDateTime = calculateBillingCycleDateOnOrAfter ( tmp , billingCycleDayLocal ) ;
 -
 - return new LocalDate ( proposedDateTime , accountTimeZone ) ;
 - }
 -
 - public static LocalDate calculateBillingCycleDateAfter ( final LocalDate date , final DateTimeZone accountTimeZone ,
 - final int billingCycleDayLocal ) {
 - final DateTime tmp = date . toDateTimeAtStartOfDay ( accountTimeZone ) ;
 - final DateTime proposedDateTime = calculateBillingCycleDateAfter ( tmp , billingCycleDayLocal ) ;
 -
 - return new LocalDate ( proposedDateTime , accountTimeZone ) ;
 - }
 - COMMENT
 -
 public static LocalDate calculateBillingCycleDateOnOrAfter ( final LocalDate date , final int billingCycleDayLocal ) {
 final int lastDayOfMonth = date . dayOfMonth ( ) . getMaximumValue ( ) ;


<nb> public class IntroduceParameterDialog extends RefactoringDialog {
 myTypeSelectorManager = typeSelectorManager ;
 setTitle ( REFACTORING_NAME ) ;
 init ( ) ;
 + myPanel . updateTypeSelector ( ) ;
 }

 protected void dispose ( ) {
 <nb> public abstract class IntroduceParameterSettingsUI {
 }
 }

 + protected void updateTypeSelector ( ) {
 + if ( myCbReplaceAllOccurences != null ) {
 + getTypeSelectionManager ( ) . setAllOccurrences ( myCbReplaceAllOccurences . isSelected ( ) ) ;
 + }
 + else {
 + getTypeSelectionManager ( ) . setAllOccurrences ( myIsInvokedOnDeclaration ) ;
 + }
 + }
 +
 protected abstract TypeSelectorManager getTypeSelectionManager ( ) ;

 protected void createRemoveParamsPanel ( GridBagConstraints gbConstraints , JPanel panel ) {


<nb> public final class Configuration implements Parcelable , Comparable < Configuration
 COMMENT
 COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 @ deprecated public Locale locale ;

Give guidance on alternatives to deprecated locale field


<nb> public abstract class SegmentBase {
 return DashSegmentIndex . INDEX_UNBOUNDED ;
 } else {
 long durationMs = ( duration * NUMBER0 ) / timescale ;
 - return startNumber + ( int ) ( periodDurationMs / durationMs ) ;
 + return startNumber + ( int ) ( periodDurationMs / durationMs ) - NUMBER1 ;
 }
 }

Fixed wrong calculation of last segment number when using segment template without segment timeline


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class HttpConfigurable implements PersistentStateComponent < HttpConfigurab
 proxy . add ( STRING0 + httpConfigurable . PROXY_HOST ) ;
 proxy . add ( STRING1 + httpConfigurable . PROXY_PORT ) ;
 proxy . add ( STRING2 + httpConfigurable . PROXY_HOST ) ;
 - proxy . add ( STRING3 + Integer . toString ( httpConfigurable . PROXY_PORT ) ) ;
 + proxy . add ( STRING3 + httpConfigurable . PROXY_PORT ) ;
 +
 + if ( httpConfigurable . KEEP_PROXY_PASSWORD && StringUtil . isNotEmpty ( httpConfigurable . PROXY_LOGIN ) ) {
 + proxy . add ( STRING4 + httpConfigurable . PROXY_LOGIN ) ;
 + proxy . add ( STRING5 + httpConfigurable . getPlainProxyPassword ( ) ) ;
 + }
 +
 }
 return proxy ;
 }

if we keep proxy password pass it to other processes


<nb> public class AsyncTwitterTest extends TwitterTestBase implements TwitterListener
 String neu = STRING0 ;
 newName = user . getName ( ) + neu ;
 newURL = user . getURL ( ) + neu ;
 - newLocation = user . getLocation ( ) + neu ;
 + newLocation = new Date ( ) . toString ( ) ;
 newDescription = user . getDescription ( ) + neu ;

 async1 . updateProfile ( newName , newURL , newLocation , newDescription ) ;


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

 COMMENT
 <nb> public class JpsAntSerializationTest extends JpsSerializationTestCase {
 PathManagerEx . findFileUnderCommunityHome ( STRING0 ) ) ;
 }

 + @ override
 + protected Map < String , String > getPathVariables ( ) {
 + Map < String , String > pathVariables = super . getPathVariables ( ) ;
 + pathVariables . put ( PathMacrosImpl . APPLICATION_HOME_MACRO_NAME , PlatformTestUtil . getCommunityPath ( ) ) ;
 + return pathVariables ;
 + }
 +
 public void testLoadAntConfiguration ( ) {
 loadProject ( PROJECT_PATH ) ;
 loadGlobalSettings ( OPTIONS_PATH ) ;


<nb> public class GroupTest {
 protected static final String NAME1 = STRING0 ;
 protected static final String NAME2 = STRING1 ;

 - @ test ( enabled = false )
 + @ test
 public void shouldCreateTablesInGroup ( ) {
 Group group = new Group ( ) ;

 <nb> public class ViewColumnsTest extends AbstractViewTest {
 assertNull ( record3 ) ;
 }

 - @ test ( enabled = false )
 + @ test
 public void shouldFindAllRecordsByColumnValue ( ) throws IllegalAccessException {
 EmployeeView view1 = employees . firstName . findAll ( NAME1 ) ;
 assertEquals ( NUMBER0 , view1 . size ( ) ) ;

Enabled some tests that had been temporary disabled


<nb> public class AimsicdService extends Service implements OnSharedPreferenceChangeL
 COMMENT
 public String getPhoneNumber ( boolean force ) {
 if ( mPhoneNum . isEmpty ( ) || force ) {
 - mPhoneNum = tm . getLine1Number ( ) ;
 + try {
 + mPhoneNum = tm . getLine1Number ( ) ;
 + } catch ( NullPointerException npe ) {
 + SINGLE
 + }
 }

 + SINGLE
 + if ( mPhoneNum . isEmpty ( ) )
 + mPhoneNum = tm . getSubscriberId ( ) ;
 +
 return mPhoneNum ;
 }


<nb> public class StickyGridHeadersGridView extends GridView implements OnScrollListe
 }
 }

 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 - SINGLE
 -
 switch ( action & MotionEvent . ACTION_MASK ) {
 case MotionEvent . ACTION_DOWN :
 if ( mPendingCheckForTap == null ) {
 <nb> public class StickyGridHeadersGridView extends GridView implements OnScrollListe
 mHeaderBottomPosition += getPaddingTop ( ) ;
 }
 }
 -
 - TouchDelegate headerTouchDelegate ;
 - Rect tdArea = new Rect ( NUMBER0 , NUMBER0 , getWidth ( ) , mHeaderBottomPosition ) ;
 - headerTouchDelegate = new TouchDelegate ( tdArea , mStickiedHeader ) ;
 - setTouchDelegate ( headerTouchDelegate ) ;
 }
 }


<nb>

 package NAMESPACE ;

 - import NAMESPACE ;
 -
 import NAMESPACE ;
 import NAMESPACE ;

 <nb> public final class Base64
 }

 COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - @ deprecated
 - public static String encode ( byte [ ] binaryData ) {
 - return DatatypeConverter . printBase64Binary ( binaryData ) ;
 - }
 -
 - COMMENT
 COMMENT
 COMMENT
 COMMENT


<nb> public class TextureOptions {
 public static final TextureOptions DEFAULT = new TextureOptions ( GL10 . GL_NEAREST , GL10 . GL_NEAREST , GL10 . GL_MODULATE , GL10 . GL_CLAMP_TO_EDGE , GL10 . GL_CLAMP_TO_EDGE ) ;
 public static final TextureOptions BILINEAR = new TextureOptions ( GL10 . GL_NEAREST , GL10 . GL_LINEAR , GL10 . GL_MODULATE , GL10 . GL_CLAMP_TO_EDGE , GL10 . GL_CLAMP_TO_EDGE ) ;
 public static final TextureOptions REPEATING = new TextureOptions ( GL10 . GL_NEAREST , GL10 . GL_NEAREST , GL10 . GL_MODULATE , GL10 . GL_REPEAT , GL10 . GL_REPEAT ) ;
 + public static final TextureOptions REPEATING_BILINEAR = new TextureOptions ( GL10 . GL_NEAREST , GL10 . GL_LINEAR , GL10 . GL_MODULATE , GL10 . GL_REPEAT , GL10 . GL_REPEAT ) ;

 SINGLE
 SINGLE


<nb> import NAMESPACE ;
 public class MongoIdentifierResolver extends IdentifierResolver {
 @ override
 public void resolve ( String identifier ) {
 - new Throwable ( ) . printStackTrace ( ) ;
 - log . info ( STRING0 + identifier ) ;
 if ( identifier . equalsIgnoreCase ( MONGODB_ID ) ||
 identifier . equalsIgnoreCase ( MONGO_ID ) ||
 identifier . equalsIgnoreCase ( BSON_ID ) ) {


<nb> public class DbConnectionManager {
 stmt . close ( ) ;
 }
 }
 - SINGLE
 - SINGLE
 - SINGLE
 - if ( i >= NUMBER0 ) {
 - stmt = con . createStatement ( ) ;
 - stmt . execute ( STRING0 + i + STRING1 ) ;
 - stmt . close ( ) ;
 - }
 }
 finally {
 if ( in != null ) {

Removed automatic update of the jiveVersion table


<nb> public class SourceFormatter {
 STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5
 } ) ;

 + Pattern pattern = Pattern . compile (
 + STRING6 +
 + STRING7 ) ;
 +
 + for ( ; ; ) {
 + Matcher matcher = pattern . matcher ( newContent ) ;
 +
 + if ( ! matcher . find ( ) ) {
 + break ;
 + }
 +
 + String match = matcher . group ( ) ;
 +
 + String replacement = StringUtil . replaceFirst (
 + match , StringPool . NEW_LINE , StringPool . BLANK ) ;
 +
 + newContent = StringUtil . replaceFirst (
 + newContent , match , replacement ) ;
 + }
 +
 if ( newContent . contains ( STRING8 ) ) {
 _processErrorMessage ( fileName , STRING9 + fileName ) ;
 }


<nb> import NAMESPACE ;
 COMMENT
 public final class BindFBO extends AbstractStateChange < String > implements FBOManagerSubscriber {
 private static final Integer DEFAULT_FRAME_BUFFER_ID = NUMBER0 ;
 - private static final String DEFAULT_FRAME_BUFFER_NAME = STRING0 ;
 + private static final String DEFAULT_FRAME_BUFFER_NAME = STRING1 ;
 private static BindFBO defaultInstance = new BindFBO ( ) ;

 private Integer fboId ;

Make DEFAULT_FRAME_BUFFER_NAME as display


<nb> class TypeCorrector extends PsiTypeMapper {
 PsiTypeParameter [ ] originalTypeParameters = originalClass . getTypeParameters ( ) ;
 if ( typeParameters . length != originalTypeParameters . length ) return substitutor ;

 + Map < PsiTypeParameter , PsiType > substitutionMap = substitutor . getSubstitutionMap ( ) ;
 +
 PsiSubstitutor mappedSubstitutor = PsiSubstitutor . EMPTY ;
 for ( int i = NUMBER0 ; i < originalTypeParameters . length ; i ++ ) {
 + if ( ! substitutionMap . containsKey ( originalTypeParameters [ i ] ) ) continue ;
 +
 PsiType originalSubstitute = substitutor . substitute ( originalTypeParameters [ i ] ) ;
 if ( originalSubstitute != null ) {
 PsiType substitute = mapType ( originalSubstitute ) ;

don t add new variables to substitutor when correcting type by scope


<nb> import NAMESPACE ;
 COMMENT
 public class TryFilesFilter implements Filter
 {
 - public static final String ROOT_INIT_PARAM = STRING0 ;
 public static final String FILES_INIT_PARAM = STRING1 ;

 private String [ ] files ;


<nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class GroovyScriptEngineImpl
 private static boolean debug = false ;

 SINGLE
 - private ManagedConcurrentMap < String , Class > classMap = new ManagedConcurrentMap < String , Class > ( ReferenceBundle . getSoftBundle ( ) ) ;
 + private ManagedConcurrentValueMap < String , Class > classMap = new ManagedConcurrentValueMap < String , Class > ( ReferenceBundle . getSoftBundle ( ) ) ;
 SINGLE
 SINGLE
 private ManagedConcurrentValueMap < String , Closure > globalClosures = new ManagedConcurrentValueMap < String , Closure > ( ReferenceBundle . getHardBundle ( ) ) ;


<nb> public class LogBuffers implements AutoCloseable

 public void close ( )
 {
 - CloseHelper . quietClose ( fileChannel ) ;
 + CloseHelper . close ( fileChannel ) ;

 for ( final MappedByteBuffer buffer : mappedByteBuffers )
 {

Don t quietly hide exceptions when closing clients


<nb> import NAMESPACE
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class LibraryOptionsPanel implements Disposable {
 boolean showDoNotCreateOption , final List < ? extends FrameworkLibraryVersion > versions ) {
 SINGLE
 mySettings = new LibraryCompositionSettings ( libraryDescription , baseDirectoryPath , currentFrameworkVersion , versions ) ;
 + Disposer . register ( this , mySettings ) ;
 List < Library > libraries = calculateSuitableLibraries ( ) ;

 myButtonEnumModel = RadioButtonEnumModel . bindEnum ( Choice . class , myButtonGroup ) ;


<nb> public class AQUtility {
 AQUtility . debug = debug ;
 }

 + public static boolean isDebug ( ) {
 + return debug ;
 + }
 +
 public static void debugWait ( long time ) {

 if ( ! debug ) return ;


<nb> public class IndexShard extends AbstractIndexShardComponent {
 this . codecService = codecService ;
 this . shardSuggestService = shardSuggestService ;
 this . shardBitsetFilterCache = shardBitsetFilterCache ;
 - assert clusterService . lifecycleState ( ) == Lifecycle . State . STARTED ; SINGLE
 + assert clusterService . lifecycleState ( ) == Lifecycle . State . STARTED : STRING0 + clusterService . lifecycleState ( ) ; SINGLE
 this . localNode = clusterService . localNode ( ) ;
 state = IndexShardState . CREATED ;
 this . refreshInterval = indexSettings . getAsTime ( INDEX_REFRESH_INTERVAL , EngineConfig . DEFAULT_REFRESH_INTERVAL ) ;

Improve reporting of assert in IndexShard


<nb>

 package NAMESPACE ;

 + import NAMESPACE ;
 +
 import NAMESPACE ;
 import NAMESPACE ;

 <nb> public class IncrementalCompileOptions implements Serializable {
 COMMENT
 COMMENT
 COMMENT
 + @ input
 public File getAnalysisFile ( ) {
 return analysisFile ;
 }
 <nb> public class IncrementalCompileOptions implements Serializable {
 COMMENT
 COMMENT
 COMMENT
 + SINGLE
 public File getPublishedCode ( ) {
 return publishedCode ;
 }
 <nb> package NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ScalaCompileOptions extends AbstractOptions {
 this . useAnt = useAnt ;
 }

 + @ nested
 public IncrementalCompileOptions getIncrementalOptions ( ) {
 return incrementalOptions ;
 }


<nb> public class WindowLayersController {
 SINGLE
 layer ++ ;
 layer = assignAndIncreaseLayerIfNeeded ( mDockDivider , layer ) ;
 +
 + SINGLE
 + if ( mDockDivider != null && mService . mInputMethodWindow != null ) {
 + layer = assignAndIncreaseLayerIfNeeded ( mService . mInputMethodWindow , layer ) ;
 + }
 +
 SINGLE
 SINGLE
 SINGLE
 <nb> public class WindowManagerService extends IWindowManager . Stub
 SINGLE
 SINGLE
 if ( fl == NUMBER0 || fl == ( FLAG_NOT_FOCUSABLE | FLAG_ALT_FOCUSABLE_IM )
 - || type == TYPE_APPLICATION_STARTING || type == TYPE_DOCK_DIVIDER ) {
 + || type == TYPE_APPLICATION_STARTING ) {
 if ( DEBUG_INPUT_METHOD ) {
 Slog . i ( TAG_WM , STRING0 + w + STRING1 + w . isVisibleOrAdding ( ) ) ;
 if ( ! w . isVisibleOrAdding ( ) ) {


<nb> public interface World {
 COMMENT
 public ArrowEntity spawnArrow ( Location loc , Vector velocity ,
 float speed , float spread ) ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public boolean generateTree ( Location loc ) ;
 +
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + public boolean generateBigTree ( Location loc ) ;
 }

Added world spawnTree world spawnBigTree


<nb> class ViewCompatHC {

 static void offsetTopAndBottom ( View view , int offset ) {
 view . offsetTopAndBottom ( offset ) ;
 + tickleInvalidationFlag ( view ) ;
 +
 ViewParent parent = view . getParent ( ) ;
 if ( parent instanceof View ) {
 tickleInvalidationFlag ( ( View ) parent ) ;
 <nb> class ViewCompatHC {

 static void offsetLeftAndRight ( View view , int offset ) {
 view . offsetLeftAndRight ( offset ) ;
 + tickleInvalidationFlag ( view ) ;
 +
 ViewParent parent = view . getParent ( ) ;
 if ( parent instanceof View ) {
 tickleInvalidationFlag ( ( View ) parent ) ;


<nb> public class Loader
 {
 FMLLog . fine ( STRING0 , injectedContainers ) ;
 SINGLE
 - mods . add ( new InjectedModContainer ( mcp , null ) ) ;
 + mods . add ( new InjectedModContainer ( mcp , new File ( STRING1 ) ) ) ;
 File coremod = new File ( minecraftDir , STRING2 ) ;
 for ( String cont : injectedContainers )
 {

Fix a small problem with the new MCP container it can cause NPEs


<nb> public class XMPPTCPConnection extends AbstractXMPPConnection {
 }
 failedAddresses . add ( hostAddress ) ;
 } else {
 + socket = socketFactory . createSocket ( ) ;
 StringUtils . requireNotNullOrEmpty ( host , STRING0 + hostAddress + STRING1 ) ;
 final String hostAndPort = host + STRING2 + port ;
 LOGGER . finer ( STRING3 + hostAndPort ) ;

Initialize Socket in TCP connection when proxy is used


<nb> public class SearchEverywhereAction extends AnAction implements CustomComponentA
 if ( o instanceof PsiElement && ! ( ( ( PsiElement ) o ) . getParent ( ) instanceof PsiFile ) ) {
 final PsiElement element = ( PsiElement ) o ;
 final PsiFile file = element . getContainingFile ( ) ;
 - if ( ! myListModel . contains ( o ) &&
 + if ( ! myListModel . contains ( o ) && ! symbols . contains ( o ) &&
 SINGLE
 ( file == null || ( file . getVirtualFile ( ) != null && ( includeLibs || scope . accept ( file . getVirtualFile ( ) ) ) ) ) ) {
 symbols . add ( o ) ;


<nb> public class LocalExecutionPlanner

 private PhysicalOperation planGroupByAggregation ( AggregationNode node , PhysicalOperation source )
 {
 - List < Symbol > groupBySymbols = node . getGroupBy ( ) ;
 + List < Symbol > groupBySymbols = ImmutableList . copyOf ( ImmutableSet . copyOf ( node . getGroupBy ( ) ) ) ;

 SINGLE
 source = packIfNecessary ( groupBySymbols , source ) ;
 <nb> public abstract class AbstractTestQueries
 }

 @ test
 + public void testGroupByRepeatedField ( )
 + throws Exception
 + {
 + assertQuery ( STRING0 ) ;
 + }
 +
 + @ test
 public void testGroupByMultipleFieldsWithPredicateOnAggregationArgument ( )
 throws Exception
 {

Fix planning issue when grouping by repeated fields


<nb> final class ActivityStack {
 r . userId , System . identityHashCode ( r ) , r . shortComponentName ,
 mPausingActivity != null
 ? mPausingActivity . shortComponentName : STRING0 ) ;
 + if ( r . finishing && r . state == ActivityState . PAUSING ) {
 + if ( DEBUG_PAUSE ) Slog . v ( TAG ,
 + STRING1 + r ) ;
 + finishCurrentActivityLocked ( r , FINISH_AFTER_VISIBLE , false ) ;
 + }
 }
 }
 }

ActivityManager Finish the failed to pause activity


<nb> public class AlertController {
 mShowTitle = a . getBoolean ( R . styleable . AlertDialog_showTitle , true ) ;

 a . recycle ( ) ;
 +
 + COMMENT
 + window . requestFeature ( Window . FEATURE_NO_TITLE ) ;
 }

 static boolean canTextInput ( View v ) {
 <nb> public class AlertController {
 }

 public void installContent ( ) {
 - COMMENT
 - mWindow . requestFeature ( Window . FEATURE_NO_TITLE ) ;
 int contentView = selectContentView ( ) ;
 mWindow . setContentView ( contentView ) ;
 setupView ( ) ;

Allow AlertDialog to be used in a DialogFragment


<nb> final class DeploymentUnitPhaseService < T > implements Service < T > {
 }
 }
 if ( deploymentUnit . getParent ( ) != null ) {
 - phaseServiceBuilder . addDependencies ( Services . deploymentUnitName ( deploymentUnit . getParent ( ) . getName ( ) , deploymentUnit . getName ( ) , nextPhase ) ) ;
 + phaseServiceBuilder . addDependencies ( Services . deploymentUnitName ( deploymentUnit . getParent ( ) . getName ( ) , nextPhase ) ) ;
 }
 List < DeploymentUnit > subDeployments = deploymentUnit . getAttachmentList ( Attachments . SUB_DEPLOYMENTS ) ;
 SINGLE

Fix wrong dep that was preventing phases from ordering properly fixes integration tests


<nb> public class RCompletionManager implements CompletionManager

 if ( results . length == NUMBER0 )
 {
 - if ( nativeEvent_ != null && nativeEvent_ . getKeyCode ( ) != KeyCodes . KEY_TAB ) {
 + if ( docDisplay_ == null ||
 + ( nativeEvent_ != null && nativeEvent_ . getKeyCode ( ) != KeyCodes . KEY_TAB ) ) {
 popup_ . showErrorMessage (
 STRING0 ,
 new PopupPositioner ( input_ . getCursorBounds ( ) , popup_ ) ) ;

Avoid error on tab insertion when within console


<nb> public class ReaderPostListFragment extends Fragment
 final ReaderActions . ActionListener actionListener = new ReaderActions . ActionListener ( ) {
 @ override
 public void onActionResult ( boolean succeeded ) {
 - if ( ! succeeded ) {
 + if ( ! succeeded && hasActivity ( ) ) {
 ToastUtils . showToast ( getActivity ( ) , R . string . reader_toast_err_generic ) ;
 }
 }


<nb> public abstract class Parser extends Recognizer < Token , ParserATNSimulator > {
 return t ;
 }

 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 - COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 COMMENT
 public void setBuildParseTree ( boolean buildParseTrees ) {
 this . _buildParseTrees = buildParseTrees ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public boolean getBuildParseTree ( ) {
 return _buildParseTrees ;
 }

Updated documentation of getBuildParseTree and setBuildParseTree


<nb> public class KotlinClassifier implements SuspendableClassifier {

 SINGLE
 for ( final String s : excludePrefixes ) {
 - if ( className . startsWith ( s ) )
 + if ( className != null && className . startsWith ( s ) )
 return null ;
 }


<nb> public class CodeStyleSettings extends CommonCodeStyleSettings implements Clonea
 return OTHER_INDENT_OPTIONS ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public IndentOptions getIndentOptions ( FileType fileType ) {
 IndentOptions indentOptions = getLanguageIndentOptions ( fileType ) ;
 if ( indentOptions != null ) return indentOptions ;
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public interface FileTypeIndentOptionsProvider {
 ExtensionPointName < FileTypeIndentOptionsProvider > EP_NAME = ExtensionPointName . create ( STRING0 ) ;

Removed unused CoffeeScript indent options provider more Api documentation


<nb> public class ApplicationSqlDao extends AbstractSqlDao {
 try ( InputStream inputStream = ApplicationSqlDao . class . getResourceAsStream ( fullResourcePath ) ) {

 SqlRunner . runScript ( connection , inputStream ) ;
 - connection . commit ( ) ;
 }
 catch ( Exception e ) {
 throw new RuntimeException ( e ) ;
 <nb> public class DownOperation extends AbstractTransferOperation {
 if ( cleanupOccurred ) {
 localBranch = new DatabaseBranch ( ) ;
 localDatabase . deleteAll ( ) ;
 + localDatabase . commit ( ) ;
 }
 Map . Entry < String , DatabaseBranch > winnersBranch = determineWinnerBranch ( localBranch , allStitchedBranches ) ;


<nb> import NAMESPACE ;

 import NAMESPACE ;

 - COMMENT
 - COMMENT
 - COMMENT
 public class PatternRuleXmlCreatorTest extends TestCase {

 public void testToXML ( ) throws IOException {


<nb> public class TaskListWrapperActivity extends AstridWrapperActivity {
 return true ;
 }
 } ) ;
 - if ( selectionToSet != - NUMBER0 && selectionToSet < listDropdownAdapter . getCount ( ) ) {
 - selectionToSet = - NUMBER0 ;
 + if ( selectionToSet < listDropdownAdapter . getCount ( ) ) {
 getSupportActionBar ( ) . setSelectedNavigationItem ( selectionToSet ) ;
 }
 }


<nb> public class DefaultGrailsPlugin extends AbstractGrailsPlugin implements GrailsP
 return lastModified ;
 }
 } catch ( IOException e ) {
 - LOG . warn ( STRING0 + e . getMessage ( ) , e ) ;
 + LOG . debug ( STRING0 + e . getMessage ( ) , e ) ;
 }
 return - NUMBER0 ;
 }


<nb> public class Account extends AbstractEntity {
 return this . avatar ;
 }

 - public int getReadableStatusId ( ) {
 - return this . getStatus ( ) . getReadableId ( ) ;
 - }
 -
 public void activateGracePeriod ( ) {
 this . mEndGracePeriod = SystemClock . elapsedRealtime ( )
 + ( Config . CARBON_GRACE_PERIOD * NUMBER0 ) ;
 <nb> public class EditAccountActivity extends XmppActivity implements OnAccountUpdate
 }
 } else {
 if ( this . mAccount . errorStatus ( ) ) {
 - this . mAccountJid . setError ( getString ( this . mAccount
 - . getReadableStatusId ( ) ) ) ;
 + this . mAccountJid . setError ( getString ( this . mAccount . getStatus ( ) . getReadableId ( ) ) ) ;
 this . mAccountJid . requestFocus ( ) ;
 }
 this . mStats . setVisibility ( View . GONE ) ;


<nb> public class CompileTextTest extends CodegenTestCase {
 createEnvironmentWithMockJdk ( ) ;
 String text = STRING0 ;
 CompilerDependencies dependencies = CompileCompilerDependenciesTest . compilerDependenciesForTests ( CompilerSpecialMode . REGULAR , false ) ;
 - JetCoreEnvironment environment = new JetCoreEnvironment ( CompileEnvironmentUtil . createMockDisposable ( ) , dependencies ) ;
 - CompileEnvironmentConfiguration configuration = new CompileEnvironmentConfiguration ( environment , dependencies , MessageCollector . PLAIN_TEXT_TO_SYSTEM_ERR ) ;
 + CompileEnvironmentConfiguration configuration = new CompileEnvironmentConfiguration ( myEnvironment , dependencies , MessageCollector . PLAIN_TEXT_TO_SYSTEM_ERR ) ;
 configuration . getEnvironment ( ) . addToClasspathFromClassLoader ( getClass ( ) . getClassLoader ( ) ) ;
 ClassLoader classLoader = KotlinToJVMBytecodeCompiler . compileText ( configuration , text ) ;
 Class < ? > namespace = classLoader . loadClass ( STRING1 ) ;

reuse CodegenTestCase in CompileTextTest


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

 + import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 <nb> import NAMESPACE ;
 COMMENT
 public class HikariJNDIFactory implements ObjectFactory
 {
 + static
 + {
 + CodaHaleShim . initialize ( ) ;
 + }
 +
 @ override
 public Object getObjectInstance ( Object obj , Name name , Context nameCtx , Hashtable < ? , ? > environment ) throws Exception
 {
 <nb> import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

 + import NAMESPACE ;
 import NAMESPACE ;

 COMMENT
 <nb> import NAMESPACE ;
 COMMENT
 public class HikariJNDIFactory implements ObjectFactory
 {
 + static
 + {
 + CodaHaleShim . initialize ( ) ;
 + }
 +
 @ override
 public Object getObjectInstance ( Object obj , Name name , Context nameCtx , Hashtable < ? , ? > environment ) throws Exception
 {

Initialize the codahale shim in the JNDI factory


<nb> public class GrLightMethodBuilder extends LightElement implements GrMethod {
 public static < T > T getData ( @ nullable PsiElement method , @ notnull Object kind ) {
 if ( method instanceof GrLightMethodBuilder ) {
 if ( kind . equals ( ( ( GrLightMethodBuilder ) method ) . myMethodKind ) ) {
 - return ( ( GrLightMethodBuilder ) method ) . getData ( ) ;
 + return ( ( GrLightMethodBuilder ) method ) . < T > getData ( ) ;
 }
 }
 return null ;


<nb> import NAMESPACE ;
 import NAMESPACE ;

 @ mixin ( SpongeProxyBlockAccess . class )
 - public class MixinSpongeProxyBlockAccess {
 + public abstract class MixinSpongeProxyBlockAccess implements IBlockAccess {

 @ shadow @ final IBlockAccess original ;

 <nb> public class MixinSpongeProxyBlockAccess {
 SINGLE
 SINGLE

 + @ override
 public int getCombinedLight ( BlockPos pos , int lightValue ) {
 return this . original . getCombinedLight ( pos , lightValue ) ;
 }

 + @ override
 public BiomeGenBase getBiomeGenForCoords ( BlockPos pos ) {
 return this . original . getBiomeGenForCoords ( pos ) ;
 }

 + @ override
 public boolean extendedLevelsInChunkCache ( ) {
 return this . original . extendedLevelsInChunkCache ( ) ;
 }

 + @ override
 public WorldType getWorldType ( ) {
 return this . original . getWorldType ( ) ;
 }

Make MixinSpongeProxyBlockAccess implement IBlockAccess


<nb> public class Tomcat {
 SINGLE
 SINGLE
 SINGLE
 - SINGLE
 + SINGLE
 SINGLE
 private final Set < Logger > pinnedLoggers = new HashSet < > ( ) ;


<nb> public class PyMoveModuleMembersProcessor extends BaseRefactoringProcessor {
 PyClassRefactoringUtil . updateImportOfElement ( importStmt , newElement ) ;
 }
 final PsiFile usageFile = usage . getContainingFile ( ) ;
 - if ( usageFile == oldElement . getContainingFile ( ) && ! PsiTreeUtil . isAncestor ( oldElement , usage , false ) ) {
 + final PsiElement oldElementBody = PyMoveModuleMembersHelper . expandNamedElementBody ( oldElement ) ;
 + if ( usageFile == oldElement . getContainingFile ( ) && ! PsiTreeUtil . isAncestor ( oldElementBody , usage , false ) ) {
 PyClassRefactoringUtil . insertImport ( oldElement , newElement ) ;
 }
 if ( resolvesToLocalStarImport ( usage ) ) {

Prevent insertion of redundant import statement in the original file of moved element


<nb> class ActivityUtils {
 private Activity activity ;
 private ArrayList < Activity > activityList = new ArrayList < Activity > ( ) ;
 private final int PAUS = NUMBER0 ;
 - private int orientation = NUMBER1 ;

 COMMENT
 COMMENT


<nb> public class MediaFile {
 public static final int FILE_TYPE_PNG = NUMBER0 ;
 public static final int FILE_TYPE_BMP = NUMBER1 ;
 public static final int FILE_TYPE_WBMP = NUMBER2 ;
 + public static final int FILE_TYPE_WEBP = NUMBER3 ;
 private static final int FIRST_IMAGE_FILE_TYPE = FILE_TYPE_JPEG ;
 - private static final int LAST_IMAGE_FILE_TYPE = FILE_TYPE_WBMP ;
 + private static final int LAST_IMAGE_FILE_TYPE = FILE_TYPE_WEBP ;

 SINGLE
 public static final int FILE_TYPE_M3U = NUMBER4 ;
 <nb> public class MediaFile {
 addFileType ( STRING0 , FILE_TYPE_PNG , STRING1 , MtpConstants . FORMAT_PNG ) ;
 addFileType ( STRING2 , FILE_TYPE_BMP , STRING3 , MtpConstants . FORMAT_BMP ) ;
 addFileType ( STRING4 , FILE_TYPE_WBMP , STRING5 ) ;
 + addFileType ( STRING6 , FILE_TYPE_WBMP , STRING7 ) ;

 addFileType ( STRING8 , FILE_TYPE_M3U , STRING9 , MtpConstants . FORMAT_M3U_PLAYLIST ) ;
 addFileType ( STRING8 , FILE_TYPE_M3U , STRING10 , MtpConstants . FORMAT_M3U_PLAYLIST ) ;

Add WebP Mime Type support in Android Media File


<nb> public class SQLiteCursor extends AbstractWindowedCursor {
 if ( ! sAlreadyWarned . containsKey ( databasePath ) ) {
 sAlreadyWarned . put ( databasePath , true ) ;
 String packageName = ActivityThread . currentPackageName ( ) ;
 + Throwable t = null ;
 + SINGLE
 + t = new RequeryOnUiThreadException ( packageName ) ;
 + SINGLE
 Log . w ( TAG , STRING0 +
 - packageName == null ? STRING1 : packageName ,
 - new RequeryOnUiThreadException ( packageName ) ) ;
 + packageName == null ? STRING1 : packageName , t ) ;
 }
 }
 }

before shipping remove stacktrace printing in requery warning msg


<nb> public class AsyncProcessRevisitedTest extends SpringActivitiTestCase {
 ProcessInstance processInstance = runtimeService . startProcessInstanceByKey ( STRING0 ) ;
 List < Execution > executionList = runtimeService . createExecutionQuery ( ) . list ( ) ;
 assertEquals ( NUMBER0 , executionList . size ( ) ) ;
 - waitForJobExecutorToProcessAllJobs ( NUMBER1 , NUMBER2 ) ;
 + waitForJobExecutorToProcessAllJobs ( NUMBER3 , NUMBER2 ) ;
 assertEquals ( NUMBER4 , runtimeService . createProcessInstanceQuery ( ) . processInstanceId ( processInstance . getId ( ) ) . count ( ) ) ;
 }
 }

increase the waiting time just to wait enough also for slow machines


<nb> public class StatusBarKeyguardViewManager {
 private boolean mScreenOn = false ;
 private KeyguardBouncer mBouncer ;
 private boolean mShowing ;
 + private boolean mOccluded = false ;

 public StatusBarKeyguardViewManager ( Context context , ViewMediatorCallback callback ,
 LockPatternUtils lockPatternUtils ) {
 <nb> public class StatusBarKeyguardViewManager {
 }

 public void showBouncer ( ) {
 - mBouncer . show ( ) ;
 - updateBackButtonState ( ) ;
 + if ( ! mOccluded ) {
 + mBouncer . show ( ) ;
 + updateBackButtonState ( ) ;
 + }
 }

 COMMENT
 <nb> public class StatusBarKeyguardViewManager {
 }

 public void setOccluded ( boolean occluded ) {
 + mOccluded = occluded ;
 + if ( occluded ) {
 + mPhoneStatusBar . hideKeyguard ( ) ;
 + mBouncer . hide ( ) ;
 + } else {
 + showBouncerOrKeyguard ( ) ;
 + }
 mStatusBarWindowManager . setKeyguardOccluded ( occluded ) ;
 }

Fix broken status bar when activity is showing above keyguard


<nb> public class ORecordSerializerSchemaAware2CSV extends ORecordSerializerCSVAbstra
 type = OType . EMBEDDEDMAP ;
 } else if ( fieldValue . charAt ( NUMBER0 ) == OStringSerializerHelper . LINK )
 type = OType . LINK ;
 + else if ( fieldValue . charAt ( NUMBER0 ) == OStringSerializerHelper . EMBEDDED )
 + type = OType . EMBEDDED ;
 else if ( fieldValue . equals ( STRING0 ) || fieldValue . equals ( STRING1 ) )
 type = OType . BOOLEAN ;
 else

Fixed issue on unmarshalling of embedded types


<nb> class TypedCodeGenerator extends CodeGenerator {
 COMMENT
 COMMENT
 private String getFunctionAnnotation ( Node fnNode ) {
 - Preconditions . checkState ( fnNode . isFunction ( ) ) ;
 JSType type = fnNode . getJSType ( ) ;
 + Preconditions . checkState ( fnNode . isFunction ( ) || type . isFunctionType ( ) ) ;

 if ( type == null || type . isUnknownType ( ) ) {
 return STRING0 ;
 <nb> public final class CodePrinterTest extends CodePrinterTestBase {
 + STRING1 ) ;
 }

 + public void testTypeAnnotationsMemberStub ( ) {
 + SINGLE
 + assertTypeAnnotations ( STRING2
 + + STRING3 ,
 + STRING4
 + + STRING5
 + + STRING6
 + + STRING7
 + + STRING8
 + + STRING9 ) ;
 + }
 +
 public void testTypeAnnotationsImplements ( ) {
 assertTypeAnnotations ( STRING10
 + STRING11


<nb> class CanonicalPathMap {
 }

 private static Map < String , String > resolvePaths ( Collection < String > recursiveRoots , Collection < String > flatRoots ) {
 - Map < Thread , StackTraceElement [ ] > before = Thread . getAllStackTraces ( ) ;
 - long start = System . currentTimeMillis ( ) ;
 Map < String , String > result = ContainerUtil . newConcurrentMap ( ) ;

 List < String > roots = ContainerUtil . concat ( Arrays . asList ( recursiveRoots , flatRoots ) ) ;
 <nb> class CanonicalPathMap {
 return true ;
 } ) ;

 - long finish = System . currentTimeMillis ( ) ;
 - Map < Thread , StackTraceElement [ ] > after = Thread . getAllStackTraces ( ) ;
 - System . out . println ( ( recursiveRoots . size ( ) + flatRoots . size ( ) ) + STRING0 + before . size ( ) + STRING1 + after . size ( ) + STRING2 + ( finish - start ) + STRING3 ) ;
 return result ;
 }


<nb> public class PreferencesFrame {
 . addGroup ( layout . createSequentialGroup ( )
 . addComponent ( fontLabel )
 . addComponent ( fontSelectionBox , GroupLayout . PREFERRED_SIZE , GroupLayout . DEFAULT_SIZE , GroupLayout . PREFERRED_SIZE ) )
 - . addGroup ( layout . createSequentialGroup ( )
 + . addGroup ( GroupLayout . Alignment . LEADING ,
 + layout . createSequentialGroup ( )
 . addComponent ( fontSizelabel )
 . addComponent ( fontSizeField , GroupLayout . PREFERRED_SIZE , GroupLayout . DEFAULT_SIZE , GroupLayout . PREFERRED_SIZE )
 . addComponent ( consoleFontSizeLabel )


<nb> package NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 + import NAMESPACE ;

 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class ClusterManager < T extends ClusterItem > implements GoogleMap . OnCamera
 SINGLE
 mClusterTask . cancel ( true ) ;
 mClusterTask = new ClusterTask ( ) ;
 - mClusterTask . execute ( mMap . getCameraPosition ( ) . zoom ) ;
 + if ( Build . VERSION . SDK_INT < Build . VERSION_CODES . HONEYCOMB ) {
 + mClusterTask . execute ( mMap . getCameraPosition ( ) . zoom ) ;
 + } else {
 + mClusterTask . executeOnExecutor ( AsyncTask . THREAD_POOL_EXECUTOR , mMap . getCameraPosition ( ) . zoom ) ;
 + }
 } finally {
 mClusterTaskLock . writeLock ( ) . unlock ( ) ;
 }


<nb> public class AndroidCompiledStatement implements CompiledStatement {

 public DatabaseResults runQuery ( ObjectCache objectCache ) throws SQLException {
 SINGLE
 - if ( type != StatementType . SELECT ) {
 + if ( ! type . isOkForQuery ( ) ) {
 throw new IllegalArgumentException ( STRING0 + type + STRING1 ) ;
 }
 return new AndroidDatabaseResults ( getCursor ( ) , objectCache ) ;
 }

 public int runUpdate ( ) throws SQLException {
 - if ( type == StatementType . SELECT ) {
 + if ( ! type . isOkForUpdate ( ) ) {
 throw new IllegalArgumentException ( STRING2 + type + STRING1 ) ;
 }
 String finalSql = null ;
 <nb> public class AndroidCompiledStatement implements CompiledStatement {
 }

 public int runExecute ( ) throws SQLException {
 - if ( type != StatementType . EXECUTE ) {
 + if ( ! type . isOkForExecute ( ) ) {
 throw new IllegalArgumentException ( STRING3 + type + STRING1 ) ;
 }
 try {

Fixed problems with query type detection that caused countOf under Android not to work


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

 + import static NAMESPACE ;
 +
 COMMENT
 COMMENT
 COMMENT
 <nb> public abstract class OpenTSDBGenericWriter extends BaseOutputWriter {
 Settings . getBooleanSetting ( this . getSettings ( ) , STRING0 , this . getAddHostnameTagDefault ( ) ) ,
 getAddHostnameTagDefault ( ) ) ;

 - messageFormatter = new OpenTSDBMessageFormatter ( typeNames , ImmutableMap . copyOf (
 + ImmutableList < String > nonNullTypeNames = copyOf ( MoreObjects . firstNonNull ( typeNames , Collections . < String > emptyList ( ) ) ) ;
 +
 + messageFormatter = new OpenTSDBMessageFormatter ( nonNullTypeNames , ImmutableMap . copyOf (
 firstNonNull (
 tags ,
 ( Map < String , String > ) getSettings ( ) . get ( STRING1 ) ,

Make sure typenames are non null in OpenTSDBWriter


<nb> class DaemonListeners implements Disposable {

 connection . subscribe ( DumbService . DUMB_MODE , new DumbService . DumbModeListener ( ) {
 public void enteredDumbMode ( ) {
 - stopDaemon ( true ) ;
 + myDaemonCodeAnalyzer . restart ( ) ;
 }

 public void exitDumbMode ( ) {
 - stopDaemon ( true ) ;
 + myDaemonCodeAnalyzer . restart ( ) ;
 }
 } ) ;

forcefully restart all files on dumbness change


<nb> public class ResidentQueryParserCache extends AbstractIndexComponent implements
 public ResidentQueryParserCache ( Index index , @ indexsettings Settings indexSettings ) {
 super ( index , indexSettings ) ;

 - this . maxSize = indexSettings . getAsInt ( STRING0 , componentSettings . getAsInt ( STRING1 , NUMBER0 ) ) ;
 - this . expire = indexSettings . getAsTime ( STRING2 , componentSettings . getAsTime ( STRING3 , null ) ) ;
 + this . maxSize = componentSettings . getAsInt ( STRING1 , NUMBER0 ) ;
 + this . expire = componentSettings . getAsTime ( STRING3 , null ) ;
 logger . debug ( STRING4 , maxSize , expire ) ;

 CacheBuilder cacheBuilder = CacheBuilder . newBuilder ( ) . maximumSize ( maxSize ) ;

remove the field settings for query parser cache not really relevant


<nb>
 package NAMESPACE ;

 import NAMESPACE ;
 - import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;
 <nb> public class StatsActivity extends AppCompatActivity
 }
 } , StatsConstants . STATS_SCROLL_TO_DELAY ) ;

 - trackStatsAnalitycs ( ) ;
 + trackStatsAnalytics ( ) ;
 }
 @ override
 public void onNothingSelected ( AdapterView < ? > parent ) {
 <nb> public class StatsActivity extends AppCompatActivity
 SINGLE
 if ( savedInstanceState == null ) {
 AnalyticsTracker . track ( AnalyticsTracker . Stat . STATS_ACCESSED ) ;
 - trackStatsAnalitycs ( ) ;
 + trackStatsAnalytics ( ) ;
 }
 }

 - private void trackStatsAnalitycs ( ) {
 + private void trackStatsAnalytics ( ) {
 SINGLE
 switch ( mCurrentTimeframe ) {
 case INSIGHTS :

Fixed a typo and removed an unused import


<nb> public class AceEditor implements DocDisplay ,
 return widget_ . addFocusHandler ( handler ) ;
 }

 - public int getSuggestedScopeUpdateDelay ( )
 - {
 - int nrow = getRowCount ( ) ;
 - return MathUtil . clamp ( nrow / NUMBER0 , NUMBER1 , NUMBER2 ) ;
 - }
 -
 public Scope getCurrentScope ( )
 {
 return getSession ( ) . getMode ( ) . getCodeModel ( ) . getCurrentScope (
 <nb> public interface DocDisplay extends HasValueChangeHandlers < Void > ,
 void alignCursor ( Position position , double ratio ) ;
 void centerSelection ( ) ;

 - int getSuggestedScopeUpdateDelay ( ) ;
 Scope getCurrentScope ( ) ;
 Scope getCurrentChunk ( ) ;
 Scope getCurrentChunk ( Position position ) ;


<nb> public class BulkIndexer implements Startable {

 @ override
 public void stop ( ) {
 - if ( bulkRequest . numberOfActions ( ) > NUMBER0 ) {
 - executeBulk ( bulkRequest ) ;
 + try {
 + if ( bulkRequest . numberOfActions ( ) > NUMBER0 ) {
 + executeBulk ( bulkRequest ) ;
 + }
 + } finally {
 + progress . stop ( ) ;
 }

 - progress . stop ( ) ;
 -
 if ( refresh ) {
 client . prepareRefresh ( indexName ) . get ( ) ;
 }

Fix thread cleanup on errors in BulkIndexer


<nb> public class TerminalView {
 if ( myDockContainer == null ) {
 myDockContainer = new TerminalDockContainer ( toolWindow ) ;

 + Disposer . register ( myProject , myDockContainer ) ;
 DockManager . getInstance ( myProject ) . register ( myDockContainer ) ;
 }
 }


<nb> public final class OBJLoader implements AssetLoader {

 if ( hasNormals ) {
 normBuf = BufferUtils . createFloatBuffer ( vertIndexMap . size ( ) * NUMBER0 ) ;
 + m . setBuffer ( VertexBuffer . Type . Normal , NUMBER0 , normBuf ) ;
 }
 if ( hasTexCoord ) {
 tcBuf = BufferUtils . createFloatBuffer ( vertIndexMap . size ( ) * NUMBER1 ) ;
 + m . setBuffer ( VertexBuffer . Type . TexCoord , NUMBER1 , tcBuf ) ;
 }

 IndexBuffer indexBuf = null ;
 <nb> public final class OBJLoader implements AssetLoader {
 }

 m . setBuffer ( VertexBuffer . Type . Position , NUMBER0 , posBuf ) ;
 - m . setBuffer ( VertexBuffer . Type . Normal , NUMBER0 , normBuf ) ;
 - m . setBuffer ( VertexBuffer . Type . TexCoord , NUMBER1 , tcBuf ) ;
 - SINGLE
 + SINGLE

 m . setStatic ( ) ;
 m . updateBound ( ) ;

Prevent exception when loading OBJ file without normals or texcoords


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

 + import NAMESPACE ;
 import NAMESPACE ;
 import NAMESPACE ;

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

 COMMENT
 COMMENT

Restore the imports like on the original repo


<nb> public class AppLinkTest extends InstrumentationTestCase {
 STRING0 , STRING1 ,
 STRING2 , STRING3 ,
 STRING4 , STRING5 ,
 - STRING6 , STRING7 ) ;
 + STRING6 , STRING7 ) ; SINGLE
 Uri url = getURLForData ( html ) ;
 Task < AppLink > task = new WebViewAppLinkResolver ( getInstrumentation ( ) . getTargetContext ( ) )
 . getAppLinkFromUrlInBackground ( url ) ;
 <nb> public class AppLinkTest extends InstrumentationTestCase {
 }

 public void testAppLinkURLNavigationFailure ( ) throws Exception {
 - String html = getHtmlWithMetaTags ( STRING6 , STRING8 ) ;
 + String html = getHtmlWithMetaTags ( STRING6 , STRING8 ) ; SINGLE
 Uri uri = getURLForData ( html ) ;

 Task < AppLinkNavigation . NavigationResult > task = AppLinkNavigation . navigateInBackground (


<nb> public class ESNodeTest {
 }

 @ test ( expected = IllegalStateException . class )
 - @ ignore SINGLE
 + @ ignore SINGLE
 public void should_fail_on_corrupt_index ( ) throws Exception {
 File zip = new File ( Resources . getResource ( getClass ( ) , STRING0 ) . toURI ( ) ) ;
 ZipUtils . unzip ( zip , dataDir ) ;


<nb> public class StandardJarScanFilter implements JarScanFilter {
 if ( attribute != null ) {
 StringTokenizer tokenizer = new StringTokenizer ( attribute , STRING0 ) ;
 while ( tokenizer . hasMoreElements ( ) ) {
 - set . add ( Matcher . tokenizePathAsArray ( tokenizer . nextToken ( ) ) ) ;
 + String token = tokenizer . nextToken ( ) . trim ( ) ;
 + set . add ( Matcher . tokenizePathAsArray ( token ) ) ;
 }
 }
 }

Allow whitespace between elements which allows wrapping of lone lines in the config files


<nb> public class ValidatorHelper {
 TypeMirror httpMessageConverterType = annotationHelper . typeElementFromQualifiedName ( HTTP_MESSAGE_CONVERTER ) . asType ( ) ;
 TypeMirror httpMessageConverterTypeErased = annotationHelper . getTypeUtils ( ) . erasure ( httpMessageConverterType ) ;
 List < DeclaredType > converters = annotationHelper . extractAnnotationClassArrayParameter ( element , annotationHelper . getTarget ( ) , STRING0 ) ;
 +
 + if ( converters == null ) {
 + valid . invalidate ( ) ;
 + return ;
 + }
 +
 for ( DeclaredType converterType : converters ) {
 TypeMirror erasedConverterType = annotationHelper . getTypeUtils ( ) . erasure ( converterType ) ;
 if ( annotationHelper . isSubtype ( erasedConverterType , httpMessageConverterTypeErased ) ) {

Fixed NPE when converters are not defined in the Rest annotation


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 public class Rapids {
 - protected final String _str ; SINGLE
 - public int _x ; SINGLE
 + private final String _str ; SINGLE
 + private int _x ; SINGLE

 COMMENT
 COMMENT
 <nb> public class AstNumList extends AstParameter {
 while ( true ) {
 char c = e . skipWS ( ) ;
 if ( c == STRING0 ) break ;
 - if ( c == STRING1 ) e . _x ++ ;
 + if ( c == STRING1 ) e . xpeek ( STRING1 ) ;
 double base = e . number ( ) , cnt = NUMBER0 , stride = NUMBER0 ;
 c = e . skipWS ( ) ;
 if ( c == STRING2 ) {


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

 - SINGLE
 + SINGLE
 public final HashMap < PackageProviderKey , PackageStatistics > statistics
 = new HashMap < PackageProviderKey , PackageStatistics > ( ) ;


<nb> public class AddKotlinSignatureAnnotation extends BaseIntentionAction {

 @ override
 public void invoke ( @ notnull Project project , Editor editor , PsiFile file ) throws IncorrectOperationException {
 - PsiMethod method = ( PsiMethod ) findMethod ( file , editor . getCaretModel ( ) . getOffset ( ) ) . getOriginalElement ( ) ;
 - String signature = getDefaultSignature ( project , method ) ;
 + PsiMethod method = findMethod ( file , editor . getCaretModel ( ) . getOffset ( ) ) ;
 + PsiMethod original = ( PsiMethod ) method . getOriginalElement ( ) ;
 + String signature = getDefaultSignature ( project , original ) ;
 if ( signature == null ) {
 return ;
 }
 createFix ( method , signature ) . invoke ( project , editor , file ) ;
 KotlinSignatureInJavaMarkerProvider . refresh ( project ) ;
 + KotlinSignatureInJavaMarkerProvider . invokeEditSignature ( method , editor , null ) ;
 }

 @ notnull

Invoking signature editor after creating


<nb> import NAMESPACE ;

 @ suppresswarnings ( STRING0 )
 public class SettingsFragment extends PreferenceFragment {
 + public static final String SETTINGS_PREFERENCES = STRING1 ;
 +
 private SharedPreferences mSettings ;
 private WPEditTextPreference mTaglineTextPreference ;

 <nb> public class SettingsFragment extends PreferenceFragment {
 Configuration conf = res . getConfiguration ( ) ;
 conf . locale = new Locale ( availableLocales [ position ] ) ;
 res . updateConfiguration ( conf , dm ) ;
 +
 + mSettings . edit ( ) . putString ( SETTINGS_PREFERENCES , availableLocales [ position ] ) . apply ( ) ;
 +
 Intent refresh = new Intent ( getActivity ( ) , getActivity ( ) . getClass ( ) ) ;
 startActivity ( refresh ) ;
 getActivity ( ) . finish ( ) ;


<nb> public class ProfilerEditingTarget implements EditingTarget ,
 {
 globalDisplay_ . showMessage ( GlobalDisplay . MSG_ERROR ,
 STRING0 ,
 - STRING1 + selectedPath_ ) ;
 + STRING2 + selectedPath_ + STRING3 ) ;
 }
 }
 }


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

 COMMENT


<nb> import NAMESPACE ;
 public class WorldDevIndicatorMapper
 extends Mapper < ObjectId , BSONObject , Text , DoubleWritable >
 {
 - public void map ( final Text pKey ,
 + public void map ( final String pKey ,
 final BSONObject pValue ,
 final Context pContext )
 throws IOException , InterruptedException


<nb> public interface RemoteAuthenticationManager {
 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
 public GrantedAuthority [ ] attemptAuthentication ( String username ,
 String password ) throws RemoteAuthenticationException ;


<nb> public abstract class BlobStoreGateway extends SharedStorageGateway {
 int fileIndex = Integer . parseInt ( name . substring ( name . indexOf ( STRING0 ) + NUMBER0 ) ) ;
 if ( fileIndex >= index ) {
 SINGLE
 + byte [ ] data = null ;
 try {
 - readMetaData ( metaDataBlobContainer . readBlobFully ( name ) ) ;
 + data = metaDataBlobContainer . readBlobFully ( name ) ;
 + readMetaData ( data ) ;
 index = fileIndex ;
 } catch ( IOException e ) {
 - logger . warn ( STRING1 + name + STRING2 , e ) ;
 + logger . warn ( STRING3 , e , name , data == null ? STRING4 : data . length ) ;
 }
 }
 }


<nb> public class SessionsController extends Controller {
 session ( STRING0 , subject . getSession ( ) . toString ( ) ) ;
 return redirect ( STRING1 ) ;
 } catch ( AuthenticationException e ) {
 - log . warn ( STRING2 , e ) ;
 + log . warn ( STRING3 , r . username , e ) ;
 flash ( STRING4 , STRING5 ) ;
 return redirect ( STRING6 ) ;
 }

log the supplied user name for authc failures


<nb> public class ChainingPrincipalResolverTests {
 final PrincipalResolver resolver2 = mock ( PrincipalResolver . class ) ;
 when ( resolver2 . supports ( any ( Credential . class ) ) ) . thenReturn ( true ) ;
 when ( resolver2 . resolve ( any ( Credential . class ) , any ( Principal . class ) ) )
 - . thenReturn ( principalFactory . createPrincipal ( STRING0 , Collections . < String , Object > singletonMap ( STRING1 , STRING2 ) ) ) ;
 + . thenReturn ( principalFactory . createPrincipal ( STRING3 , Collections . < String , Object > singletonMap ( STRING1 , STRING2 ) ) ) ;

 final ChainingPrincipalResolver resolver = new ChainingPrincipalResolver ( ) ;
 resolver . setChain ( Lists . newArrayList ( resolver1 , resolver2 ) ) ;


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

 import NAMESPACE ;

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


<nb> public class ProgressIndicatorUtils {
 ApplicationManager . getApplication ( ) . addApplicationListener ( new ApplicationAdapter ( ) {
 @ override
 public void beforeWriteActionStart ( Object action ) {
 - progress . cancel ( ) ;
 + if ( progress . isRunning ( ) ) {
 + progress . cancel ( ) ;
 + }
 }
 } , builder ) ;
 return progress ;

writeAction should cancel progress only if it is running


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

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


<nb> public abstract class AbstractDatabase {
 private static final long serialVersionUID = NUMBER0 ;
 }

 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 + COMMENT
 public static class MigrationFailedException extends RuntimeException {

 COMMENT

Add javadoc for MigrationFailedException


<nb> public class IntroduceVariableTest extends LightCodeInsightTestCase {
 doTest ( new MockIntroduceVariableHandler ( STRING0 , true , true , false , STRING1 ) ) ;
 }

 - public void testAndAndSubExpression ( ) throws Exception {
 + public void testAndAndSubexpression ( ) throws Exception {
 doTest ( new MockIntroduceVariableHandler ( STRING2 , true , true , false , STRING3 ) ) ;
 }


<nb> public class ServerGroupDeploymentReplaceHandler implements OperationStepHandler

 @ override
 public ModelNode getModelDescription ( Locale locale ) {
 - return DeploymentDescription . getDeployDeploymentOperation ( locale ) ;
 + return DeploymentDescription . getReplaceDeploymentOperation ( locale ) ;
 }

 public void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException {

Fixed wrong description for replace deployment


<nb> public class PolicyBlock
 {
 if ( protectionDomain == null )
 {
 - if ( codesource == null )
 - {
 - protectionDomain = new ProtectionDomain ( null , permissions ) ;
 - }
 - else
 - {
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 + SINGLE
 protectionDomain = new ProtectionDomain ( codesource , permissions , Thread . currentThread ( ) . getContextClassLoader ( ) , principals ) ;
 - }
 + SINGLE
 }

 return protectionDomain ;

committing some synchronization and comments to policy


<nb> public class XmlPullStreamDecoder implements ResStreamDecoder {
 ser . event ( par ) ;
 }
 ser . flush ( ) ;
 - in . close ( ) ;
 - out . close ( ) ;
 } catch ( XmlPullParserException ex ) {
 throw new AndrolibException ( STRING0 , ex ) ;
 } catch ( IOException ex ) {


<nb> public final class HttpServerExchange extends AbstractAttachable {
 }

 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 - COMMENT
 + COMMENT
 COMMENT
 public InetSocketAddress getDestinationAddress ( ) {
 if ( destinationAddress != null ) {

Fix mischievous Javadoc comment in io undertow server HttpServerExchange getDestinationAddress


<nb> public class MocoRequestHit {
 }

 public static UnexpectedRequestMatcher unexpected ( ) {
 - return new UnexpectedRequestMatcher ( ) { } ;
 + return new UnexpectedRequestMatcher ( ) ;
 }

 public static VerificationMode never ( ) {

removed unused subclass definition for unexpected request matcher


<nb> public class HighlightMethodUtil {

 static HighlightInfo checkConstructorCallMustBeFirstStatement ( PsiReferenceExpression expression ) {
 - String text = expression . getText ( ) ;
 PsiElement methodCall = expression . getParent ( ) ;
 if ( ! HighlightUtil . isSuperOrThisMethodCall ( methodCall ) ) return null ;
 PsiElement codeBlock = methodCall . getParent ( ) . getParent ( ) ;
 <nb> public class HighlightMethodUtil {
 prevSibling = prevSibling . getPrevSibling ( ) ;
 }
 }
 - String message = JavaErrorMessages . message ( STRING0 , text + STRING1 ) ;
 + String message = JavaErrorMessages . message ( STRING0 , expression . getText ( ) + STRING1 ) ;
 return HighlightInfo . createHighlightInfo ( HighlightInfoType . ERROR , expression . getParent ( ) , message ) ;
 }

don t get psi text without a serious need


<nb> package NAMESPACE ;

 import NAMESPACE ;

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


<nb> public class SearchView extends LinearLayout implements CollapsibleActionView {
 }

 @ override
 - public void onDetachedFromWindow ( ) {
 + protected void onDetachedFromWindow ( ) {
 removeCallbacks ( mUpdateDrawableStateRunnable ) ;
 super . onDetachedFromWindow ( ) ;
 }

Fix an unintentional change in method signature and avoid an API change


<nb> import NAMESPACE ;
 COMMENT
 COMMENT
 COMMENT
 - public class TestNepheleMiniCluster extends TestCase {
 + public class NepheleMiniClusterITCase extends TestCase {
 private HDFSProvider hdfs ;

 private NepheleMiniCluster nephele ;

Renamed class in NepheleMiniClusterITCase


<nb> public class View implements Drawable . Callback , KeyEvent . Callback ,
 info . setAccessibilityFocused ( isAccessibilityFocused ( ) ) ;
 info . setSelected ( isSelected ( ) ) ;
 info . setLongClickable ( isLongClickable ( ) ) ;
 + info . setLiveRegion ( getAccessibilityLiveRegion ( ) ) ;

 SINGLE
 SINGLE

Set live region property on AccessibilityNodeInfo


<nb> public abstract class ClassDescriptorBase implements ClassDescriptor {
 @ notnull
 @ override
 public JetScope getMemberScope ( List < TypeProjection > typeArguments ) {
 - assert typeArguments . size ( ) == getTypeConstructor ( ) . getParameters ( ) . size ( ) ;
 + assert typeArguments . size ( ) == getTypeConstructor ( ) . getParameters ( ) . size ( ) : STRING0
 + + getTypeConstructor ( ) . getParameters ( ) . size ( ) + STRING1 + typeArguments . size ( )
 + + STRING2 + getTypeConstructor ( ) + STRING3 + getTypeConstructor ( ) . getParameters ( ) ;
 if ( typeArguments . isEmpty ( ) ) return getScopeForMemberLookup ( ) ;

 List < TypeParameterDescriptor > typeParameters = getTypeConstructor ( ) . getParameters ( ) ;

add message for assert for clarify cause of exception


<nb> public class GrailsScriptRunner {

 private PrintStream out = System . out ;
 private GrailsConsole console = GrailsConsole . getInstance ( ) ;
 - private boolean isInteractive = console . isInteractiveEnabled ( ) ;
 + private boolean isInteractive = System . getProperty ( GrailsConsole . ENABLE_INTERACTIVE ) != null ? Boolean . getBoolean ( GrailsConsole . ENABLE_INTERACTIVE ) : true ;
 private URLClassLoader classLoader ;

 private File scriptCacheDir ;

calculate interactive system property independently of GrailsConsole


<nb> public class TileGenericPipe extends TileEntity implements IPowerReceptor , ITank
 }
 packet . addStateForSerialization ( ( byte ) NUMBER0 , coreState ) ;
 packet . addStateForSerialization ( ( byte ) NUMBER1 , renderState ) ;
 + if ( pipe instanceof IClientState ) {
 + packet . addStateForSerialization ( ( byte ) NUMBER2 , ( IClientState ) pipe ) ;
 + }
 return packet . getPacket ( ) ;
 }

 <nb> public class TileGenericPipe extends TileEntity implements IPowerReceptor , ITank
 switch ( stateId ) {
 case NUMBER0 : return coreState ;
 case NUMBER1 : return renderState ;
 + case NUMBER2 : return ( IClientState ) pipe ;
 }
 throw new RuntimeException ( STRING0 + stateId + STRING1 ) ;
 }


<nb> class HeavyIdeaTestFixtureImpl extends BaseFixture implements HeavyIdeaTestFixtu

 Runnable runnable = new Runnable ( ) {
 public void run ( ) {
 - Disposer . dispose ( myProject ) ;
 + ApplicationManager . getApplication ( ) . runWriteAction ( new Runnable ( ) {
 + public void run ( ) {
 + Disposer . dispose ( myProject ) ;
 + }
 + } ) ;
 }
 } ;
 if ( ApplicationManager . getApplication ( ) . isDispatchThread ( ) ) {