diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public abstract class CompatibilityVisitor extends PyAnnotator { message . append ( languageLevel . toString ( ) ) ; return ++ len ; } + + @ override + public void visitPyNonlocalStatement ( PyNonlocalStatement node ) { + registerProblem ( node , STRING0 , null , false ) ; + } }
add nonlocal reference to the inspection
<nb> package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT public interface Persisted { - ObjectId getObjectId ( ) ; - String getId ( ) ; Map < String , Object > getFields ( ) ;
Removing unused reference to internal method
<nb> public class RecoverySource extends AbstractComponent { } catch ( Exception e ) { try { channel . sendResponse ( e ) ; - } catch ( IOException e1 ) { + } catch ( Exception e1 ) { SINGLE } }
ignore a more genric exception
<nb> public final class BridgeWindowSession implements IWindowSession { } @ override + public void cancelDrag ( IBinder dragToken ) { + SINGLE + } + + @ override public void dragRecipientEntered ( IWindow window ) throws RemoteException { SINGLE }
Fix broken build
<nb> public class PyUtil { List < T > result = new SmartList < T > ( ) ; for ( PsiElement child : element . getChildren ( ) ) { if ( instanceOf ( child , aClass ) ) { + SINGLE result . add ( ( T ) child ) ; } else {
Suppress unchecked cast warning
<nb> public abstract class FinderRecursivePanel < T > extends JBSplitter implements Data append ( STRING0 ) ; } - doCustomizeCellRenderer ( this , list , t , index , isSelected , cellHasFocus ) ; + try { + doCustomizeCellRenderer ( this , list , t , index , isSelected , cellHasFocus ) ; + } + catch ( In...
ignore INRE from doCustomizeCellRenderer
<nb> public class ComplexNodePattern < M , K > extends NodePattern < M > { } public Object matchWithResult ( String str ) { + if ( str == null ) return null ; Matcher m = pattern . matcher ( str ) ; if ( m . matches ( ) ) { return m . toMatchResult ( ) ;
Make matchWithResult more robust wrt to null strings
<nb> public class TachyonWorker implements Runnable { String resolvedWorkerHost = NetworkUtils . getLocalHostName ( ) ; LOG . info ( STRING0 + resolvedWorkerHost ) ; - TachyonWorker worker = - TachyonWorker . createWorker ( getMasterLocation ( args ) , resolvedWorkerHost + STRING1 + wConf . PORT , - wConf ....
terminate worker when failed during initialization
<nb> public abstract class Language { return element ; } } - throw new IllegalArgumentException ( STRING0 + shortLanguageCode + STRING1 ) ; + throw new IllegalArgumentException ( STRING0 + shortLanguageCode + STRING2 ) ; } if ( shortLanguageCode . length ( ) != STRING3 . length ( ) && shortLanguageCode . ...
improve exception text
<nb> public class LoginActivity extends AccountAuthenticatorActivity { } mLoginButton . setEnabled ( false ) ; mRegisterButton . setEnabled ( false ) ; - login ( mUsernameEditText . getText ( ) . toString ( ) , - mPasswordEditText . getText ( ) . toString ( ) , + login ( mUsernameEditText . getText ( ) . to...
Trim input username and password
<nb> import NAMESPACE ; import NAMESPACE ; public class SafeKeyGenerator { - private final LruCache < Key , String > loadIdToSafeHash = new LruCache < Key , String > ( NUMBER0 ) ; + private final LruCache < Key , String > loadIdToSafeHash = new LruCache < Key , String > ( NUMBER1 ) ; public String getSafe...
Fix safe key caching
<nb> public abstract class AbstractErrors implements Errors , Serializable { COMMENT COMMENT protected boolean isMatchingFieldError ( String field , FieldError fieldError ) { - return ( field . equals ( fieldError . getField ( ) ) || - ( field . endsWith ( STRING0 ) && fieldError . getField ( ) . startsWith (...
Add minor optimization to AbstractErrors
<nb> import NAMESPACE import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> class ProviderStartParameterConverter { } List < InternalLaunchable > launchables = parameters . getLaunchables ( null ) ; - if ( launchables != null ) { + if ( launchabl...
Fix bug in setting Launchables
<nb> public final class ActivityManagerService extends ActivityManagerNative COMMENT broadcastIntentLocked ( null , null , intent , null , finisher , NUMBER0 , null , null , null , true , false , MY_PID , Process . SYSTEM_UID , - Process . SYSTEM_UID ) ; + NUMBER0 COMMENT ) ; if ( finisher != null ) { mWa...
Mixed up uid and user id
<nb> public class JavaVersionRule implements MethodRule { public Statement apply ( Statement base , FrameworkMethod method , Object target ) { Enforce enforce = method . getAnnotation ( Enforce . class ) ; if ( enforce != null ) { - if ( ClassFileVersion . ofJavaVersion ( enforce . value ( ) ) . compareTo ( cur...
Turned arround version comparison for preventing test of a certain level being executed
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; public class PythonInPlaceBinary extends PythonBinary implements HasRuntimeDeps { + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + ...
Fix PythonInPlaceBinary rule key calculation
<nb> public class Filegroup implements RuleConfiguredTargetFactory { if ( attr . isEmpty ( ) ) { return PathFragment . EMPTY_FRAGMENT ; } else { - return ruleContext . getLabel ( ) . getPackageFragment ( ) . getRelative ( attr ) ; + return ruleContext . getLabel ( ) . getPackageIdentifier ( ) . getPathFragmen...
Fix filegroup paths to work with external repositories
<nb> public class UIRootConfigurationAccessor extends RootConfigurationAccessor { library = context . getLibrary ( libraryName , libraryLevel ) ; } } else { + final Library model = context . getLibraryModel ( library ) ; + if ( model != null ) { + library = model ; + } library = context . getLibrary ( l...
do not show renamed library as error in Dependencies tab
<nb> public class FileUtils { private static boolean accessDenied ( IFile file ) { if ( android . os . Build . VERSION . SDK_INT >= NUMBER0 ) { - return file instanceof File && ! ( ( File ) file ) . canExecute ( ) ; + return file instanceof File && ( ! ( ( File ) file ) . canExecute ( ) || ! ( ( File ) file )...
Fix the access denied statement in FileChooser
<nb> public class Drawer { SINGLE createContent ( ) ; + SINGLE + mActivity = null ; + return new Result ( this ) ; } <nb> public class Drawer { SINGLE createContent ( ) ; + SINGLE + mActivity = null ; + return new Result ( this ) ; }
forget the reference to the activity after creating everything
<nb> public class RecoveriesCollection { COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT public void failRecovery ( long id , RecoveryFailedException e , boolean sendShardFailure ) { <nb> public class RecoveriesCollection { @ nullable public StatusRef findRecove...
RecoveriesCollection findRecoveryByShard should call recoveryStatus tryIncRef before accessing fields
<nb> public class AddOnLoader extends URLClassLoader { if ( ! this . aoc . removeAddOn ( ao ) ) { result = false ; } + try { + this . addOnLoaders . get ( ao . getId ( ) ) . close ( ) ; + } catch ( Exception e ) { + logger . error ( STRING0 + ao . getId ( ) , e ) ; + } this . addOnLoaders . remove ( a...
Close the URLClassLoader when removing an add on
<nb> public final class OnSubscribeFromIterable < T > implements OnSubscribe < T > { } if ( ! it . hasNext ( ) ) { - o . onCompleted ( ) ; + if ( ! o . isUnsubscribed ( ) ) { + o . onCompleted ( ) ; + } return ; } if ( REQUESTED_UPDATER . addAndGet ( this , - r ) == NUMBER0 ) { <nb> public class O...
Remove extraneous request n and onCompleted calls when unsubscribed
<nb> public class OperationSetPersistentPresenceIrcImpl if ( statusMessage != null && statusMessage . isEmpty ( ) ) { SINGLE - statusMessage = - IrcActivator . getResources ( ) . getI18NString ( - STRING0 ) ; + statusMessage = null ; } final IrcStack provider = this . parentProvider . getIrcStack ( ) ...
empty message implies no message
<nb> public class TestToolSyntaxErrors extends BaseTest { } ; super . testErrors ( pair , true ) ; } + + @ test public void testEmptyTokensBlock ( ) { + String [ ] pair = new String [ ] { + STRING0 + + STRING1 + + STRING2 , + + STRING3 + } ; + super . testErrors ( pair , true ) ; + } }
Add additional unit test for empty tokens block in grammar
<nb> public class XHtmlHighlightingLexer extends HtmlHighlightingLexer { } protected boolean isHtmlTagState ( int state ) { - return state == NUMBER0 ; + return state == NUMBER0 || state == __XmlLexer . TAG || state == __XmlLexer . END_TAG ; } }
fixed tag state identification problem
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import static NAMESPACE ; - @ singleton public class PlanOptimizersFactory { private final Metadata metadata ;
remove singleton annotation
<nb> public class HsqlDatabase extends AbstractDatabase { @ override public String getAutoIncrementClause ( ) { - return STRING0 ; + return STRING1 ; } @ override
dont need second identity keyword in hsql
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public final class BuckTracing { COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public void begin ( final String eventName ) { + begin ( eventName , Collections . < String , String > em...
Add convenience methods to BuckTracing
<nb> public class SlidingUpPanelLayout extends ViewGroup { screenY >= viewLocation [ NUMBER0 ] && screenY < viewLocation [ NUMBER0 ] + view . getHeight ( ) ; } - private int getScrollableViewScrollPosition ( ) { + protected int getScrollableViewScrollPosition ( ) { if ( mScrollableView == null ) return NUMB...
Set getScrollableViewScrollPosition to protected
<nb> public class SpringBootCompilerAutoConfiguration extends CompilerAutoConfigurati STRING0 , STRING1 , STRING2 , + STRING3 , + STRING4 , STRING5 , STRING6 ) ; imports . addStarImports ( STRING7 ,
Add ConfigurationProperties to autoconfigs
<nb> public abstract class RoboFragment extends Fragment { @ override public void onViewCreated ( View view , Bundle savedInstanceState ) { super . onViewCreated ( view , savedInstanceState ) ; - RoboGuice . getInjector ( getActivity ( ) ) . injectViewMembers ( view ) ; + RoboGuice . getInjector ( getActivity...
add fragment view injection support
<nb> public abstract class AbstractReadableInstantFieldProperty implements Serializab COMMENT COMMENT COMMENT - public final String getAsText ( ) { + public String getAsText ( ) { return getAsText ( null ) ; } <nb> public abstract class AbstractReadableInstantFieldProperty implements Serializab COMM...
Remove final method qualifier to match AbstractPartialFieldProperty
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT + @ notthreadsafe public class CompilerDaemonManager { private static final Logger LOGGER = Logging . getLogger ( CompilerDaemonM...
handle subsequent stop requests
<nb> public class ProjectPopupMenu extends ToolbarPopupMenu addItem ( commands_ . newProject ( ) . createMenuItem ( false ) ) ; addSeparator ( ) ; addItem ( commands_ . openProject ( ) . createMenuItem ( false ) ) ; - addItem ( commands_ . openProjectInNewWindow ( ) . createMenuItem ( false ) ) ; addItem ( co...
remove open project in new window from web popup menu
<nb> public class CubeMapMaterial extends AAdvancedMaterial { STRING0 + STRING1 + STRING2 + - STRING3 + + STRING4 + STRING5 + STRING6 + STRING7 +
Don t normalize eye vector
<nb> public class RequestParams { return result . toString ( ) ; } - - HttpEntity getEntity ( ) { + + COMMENT + COMMENT + COMMENT + public HttpEntity getEntity ( ) { HttpEntity entity = null ; if ( ! fileParams . isEmpty ( ) ) {
Changed RequestParams getEntity from package private to public to allow standalone use of RequestParams
<nb> public class DebuggerSession implements AbstractDebuggerSession { else { getProcess ( ) . getManagerThread ( ) . schedule ( new SuspendContextCommandImpl ( context . getSuspendContext ( ) ) { @ override + public Priority getPriority ( ) { + return Priority . HIGH ; + } + + @ override public void ...
set state with high priority
<nb> public class ProjectFilesystem { SINGLE MoreFiles . copyRecursively ( sourcePath , targetPath ) ; } else { + SINGLE + SINGLE + sourcePath = targetPath . getParent ( ) . resolve ( sourcePath ) . normalize ( ) ; Files . createLink ( targetPath , sourcePath ) ; } } else {
Calculate the real path of a link s destination when on Windows
<nb> public class CoyoteOutputStream public void print ( String s ) throws IOException { - ob . write ( s ) ; + super . print ( s ) ; }
Fix output stream to not use the converter in the buffer but do a simple hard coded conversion
<nb> public class BooleanType extends DataType { COMMENT COMMENT public String getFalseBooleanValue ( ) { - return STRING0 ; + return STRING1 ; } COMMENT COMMENT COMMENT public String getTrueBooleanValue ( ) { - return STRING2 ; + return STRING3 ; } public static class NumericBooleanType...
don t quote boolean values by default
<nb> public class DemoActivity extends SActivity { super . onCreate ( savedInstanceState ) ; setContentView ( R . layout . content ) ; if ( isABSSupport ( ) ) { - SINGLE - SINGLE + getSupportActionBar ( ) . setDisplayShowTitleEnabled ( false ) ; + getSupportActionBar ( ) . setDisplayShowHomeEnabled ( fals...
Hide home on demo activity
<nb> public class HandleSynchronized implements JavacAnnotationHandler < Synchronized > JCNewArray newObjectArray = maker . NewArray ( chainDots ( maker , methodNode , STRING0 , STRING1 , STRING2 ) , List . < JCExpression > of ( maker . Literal ( TypeTags . INT , NUMBER0 ) ) , null ) ; JCVariableDecl fieldDecl = ...
Make lock fields private
<nb> public final class BufferUtils { viewedBufferMethod = loadMethod ( STRING0 , STRING1 ) ; SINGLE - freeMethod = loadMethod ( STRING2 , STRING3 ) ; + freeMethod = loadMethod ( STRING4 , STRING3 ) ; SINGLE SINGLE
Fixed BufferUtils on android when used on non bytebuffers
<nb> public class RestApiService extends AbstractIdleService { ResourceConfig rc = new ResourceConfig ( ) . property ( NettyContainer . PROPERTY_BASE_URI , listenUri ) . property ( ServerProperties . BV_SEND_ERROR_IN_RESPONSE , true ) + . property ( ServerProperties . WADL_FEATURE_DISABLE , true ) . registerC...
disable WADL generation for jersey
<nb> public abstract class CollectionType extends AbstractType implements Association } protected String renderLoggableString ( Object value , SessionFactoryImplementor factory ) throws HibernateException { + if ( ! Hibernate . isInitialized ( value ) ) { + return STRING0 ; + } + final List < String > l...
Change CollectionType renderLoggableString to return uninitialized when collection is uninitialized
<nb> public class CamelContextFactoryBean extends IdentifiedType implements RouteCont @ xmlelement ( name = STRING0 , required = false ) } ) private List beans ; @ xmlelement ( name = STRING1 , required = false ) - private List < RouteBuilderRef > builderRefs = new ArrayList < RouteBuilderRef > ( ) ; ; + priv...
removed reduntant line
<nb> public final class StorageDirView { SINGLE SINGLE - private final Set < Long > mBlocksToMoveIn = new HashSet < Long > ( ) ; - private final Set < Long > mBlocksToMoveOut = new HashSet < Long > ( ) ; + private final Set < Long > mBlocksToMoveIn = new HashSet < > ( ) ; + private final Set < Long > mBlo...
SMALLFIX Removed explicit type arguments in StorageDirView
<nb> import NAMESPACE ; import NAMESPACE ; public class DistributionLocator { - private static final String RELEASE_REPOSITORY = STRING0 ; - private static final String SNAPSHOT_REPOSITORY = STRING1 ; + private static final String RELEASE_REPOSITORY = STRING2 ; + private static final String SNAPSHOT_REPOS...
Revert updated distribution download urls
<nb> public class Version { } + public static boolean isDeveloperVersion ( Context ctx ) { + return STRING0 . equalsIgnoreCase ( getAppName ( ctx ) ) ; + + } + public static String getVersionForTracker ( Context ctx ) { String v = Version . getAppName ( ctx ) ; if ( Version . isProductionVersion (...
Add developer version flag
<nb> public class MainMenuActivity extends BaseDownloadActivity implements OsmAndLoca @ override public void onScrollChanged ( ) { int scrollY = mainScroll . getScrollY ( ) ; - if ( previousScroll == scrollY ) { + if ( previousScroll == scrollY || mainScroll . getChildAt ( NUMBER0 ) == null ) { return ; }
Fixed NPE in mainMenuActivity
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> public class JettyRun extends AbstractJettyRunTask { COMMENT COMMENT COMMENT - @ inputfile - @ opt...
Fixed broken int test
<nb> public enum Answers implements Answer < Object > { } COMMENT - COMMENT + COMMENT COMMENT COMMENT @ deprecated
Add a javadoc note to indicate that this method will be removed in a
<nb> public final class UrlImageViewHelper { } mPendingDownloads . remove ( url ) ; mLiveCache . put ( url , usableResult ) ; + if ( callback != null && imageView == null ) + callback . onLoaded ( null , loader . result , url , false ) ; for ( final ImageView iv : downloads ) { SINGLE final String pendi...
Only fire the callback for the ImageView for which the callback was provided
<nb> public class View implements Drawable . Callback , KeyEvent . Callback , } else { SINGLE int layerPaintAlpha = mLayerPaint != null ? mLayerPaint . getAlpha ( ) : NUMBER0 ; - mLayerPaint . setAlpha ( ( int ) ( alpha * layerPaintAlpha ) ) ; + if ( mLayerPaint == null && alpha < NUMBER1 ) { + mLayerPaint ...
Fix NPE while using mLayerPaint
<nb> public class Constants { SINGLE public static final String ANDROID_BEAM_NDEF_MIME_TYPE = STRING0 ; + + COMMENT + COMMENT + COMMENT public static final int EPISODE_UNKNOWN_RELEASE = - NUMBER0 ; public static enum EpisodeSorting { <nb> public class SeriesGuideContract { String NEXTAIRDATE = S...
Add more javadoc for episode release time and next episode
<nb> public class WriteConcern { return _fsync ; } + COMMENT + COMMENT + COMMENT + COMMENT + public boolean continueOnErrorForInsert ( ) { + return _continueOnErrorInsert ; + } + + COMMENT COMMENT COMMENT <nb> public class WriteConcern { @ override public String toString ( ) { - ...
restore continueOnErrorForInsert to restore buildability of code
<nb> public class TestRequest extends TestCase { @ suppresswarnings ( STRING0 ) TableTripPattern pattern = ( ( PatternStopVertex ) graph . getVertex ( STRING1 ) ) . getTripPattern ( ) ; applyUpdateToTripPattern ( pattern , STRING2 , STRING3 , NUMBER0 , NUMBER1 , NUMBER1 , Update . Status . PREDICTION , NUMBER2 ) ...
Removed some comments in unit test
<nb> public class JBTable extends JTable implements ComponentWithEmptyText , Component setFillsViewportHeight ( true ) ; addMouseListener ( new MyMouseListener ( ) ) ; - getColumnModel ( ) . addColumnModelListener ( new TableColumnModelListener ( ) { - @ override - public void columnMarginChanged ( ChangeEv...
remove useless code
<nb> public class NegraPennTreeReaderFactory implements TreeReaderFactory , Serializab public NegraPennTreeReaderFactory ( ) { - this ( NUMBER0 , false , false , new NegraPennLanguagePack ( ) ) ; + this ( NUMBER0 , false , true , new NegraPennLanguagePack ( ) ) ; } public NegraPennTreeReaderFactory ( Tr...
Change default constructor
<nb> public class ShadowActivity extends ShadowContextWrapper { } @ implementation + public void onBackPressed ( ) { + finish ( ) ; + } + + @ implementation public void finish ( ) { finishWasCalled = true ; } <nb> public class ActivityTest { assertThat ( ShadowDialog . getLatestDialog ( ) , Co...
Implemented onBackPressed on ShadowActivity
<nb> public final class CacheManager { public void setEncoding ( String encoding ) { this . encoding = encoding ; } + + COMMENT + COMMENT + COMMENT + public void setContentLength ( long contentLength ) { + this . contentLength = contentLength ; + } } COMMENT
Add setContentLength method to CacheResult
<nb> public class TrackableSession { COMMENT COMMENT public void track ( TrackableResource < ? extends Trackable > trackableResource ) { - logger . info ( STRING0 , trackableResource . trackingID ( ) ) ; + logger . debug ( STRING0 , trackableResource . trackingID ( ) ) ; factoryCache . put ( trackableResour...
Reduce the log
<nb> public abstract class BaseBeanLoader implements BeanLoader { private BeanUtilBean beanUtilBean = BeanUtil . getDefaultBeanUtilBean ( ) ; + protected boolean ignoreNulls ; + public BeanUtilBean getBeanUtilBean ( ) { return beanUtilBean ; } <nb> public abstract class BaseBeanLoader implements BeanL...
added common attribute ignoreNulls
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class DaggerProvidesNull extends BugChecker implements ReturnTreeMatcher SINGLE @ override public Description matchReturn ( ReturnTree returnTree ...
Properly handle return statements without expressions e g return
<nb> public class LibsRecyclerViewAdapter extends RecyclerView . Adapter < RecyclerView . V this . header = false ; } - public class HeaderViewHolder extends RecyclerView . ViewHolder { + public static class HeaderViewHolder extends RecyclerView . ViewHolder { ImageView aboutIcon ; TextView aboutAppName ;...
Revert Don t use static ViewHolder
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> class ForkingGradleExecuter extends AbstractGradleExecuter { + STRING0 ) ; } + NativeServicesTestFixture . initialize ( ) ; ExecHandleBuilder builder...
Adding NativeServices intialization for ForkingGradleExecutor
<nb> public class CommonTokenStream extends BufferedTokenStream { } protected int skipOffTokenChannelsReverse ( int i ) { - while ( i >= NUMBER0 && ( ( Token ) tokens . get ( i ) ) . getChannel ( ) != channel ) { + while ( i >= NUMBER0 && tokens . get ( i ) . getChannel ( ) != channel ) { i -- ; } retur...
Remove unnecessary cast
<nb> public class DynamicTimerTest { s . stop ( ) ; SINGLE assertEquals ( c . getValue ( ) . longValue ( ) , s . getDuration ( TimeUnit . MILLISECONDS ) ) ; - c . record ( NUMBER0 ) ; + c . record ( NUMBER0 , TimeUnit . MILLISECONDS ) ; long expected = ( NUMBER0 + s . getDuration ( TimeUnit . MILLISECONDS...
Call timer record with a timeunit
<nb> class XMLLightweightParser { boolean isHighSurrogate = false ; for ( int i = NUMBER0 ; i < readByte ; i ++ ) { ch = buf [ i ] ; + if ( ch < NUMBER1 && ch != NUMBER2 && ch != NUMBER3 && ch != NUMBER4 ) { + SINGLE + throw new Exception ( STRING0 ) ; + } if ( isHighSurrogate ) { if ( Character . isL...
Throw exception when parsing invalid XML
<nb> public abstract class HierarchicalGraphImpl extends AbstractGraphImpl implements checkNode ( node ) ; AbstractEdge absEdge = checkEdge ( edge ) ; if ( absEdge . getSource ( view . getViewId ( ) ) == node ) { - return absEdge . getTarget ( ) ; + return absEdge . getTarget ( view . getViewId ( ) ) ; } el...
Fix a bug in the getOpposite method in DHNS
<nb> public class OConsoleDatabaseAppTest { String dbUrl = STRING0 ; StringBuilder builder = new StringBuilder ( ) ; builder . append ( STRING1 + dbUrl + STRING2 ) ; + builder . append ( STRING3 ) ; builder . append ( STRING4 ) ; builder . append ( STRING5 ) ; builder . append ( STRING6 ) ; <nb> public ...
Created minimal test for PROFILE STORAGE ON OFF command
<nb> public class TwitterRestClient { } public static void post ( String url , RequestParams params , AsyncHttpResponseHandler responseHandler ) { - client . get ( getAbsoluteUrl ( url ) , params , responseHandler ) ; + client . post ( getAbsoluteUrl ( url ) , params , responseHandler ) ; } private stat...
Fix type in TwitterRestClient
<nb> public class WebSettings { if ( ! BROWSER_PACKAGE_NAME . equals ( mContext . getPackageName ( ) ) ) { return ; } - SINGLE - if ( mPluginsPath == null || mPluginsPath . length ( ) == NUMBER0 ) { - SINGLE - SINGLE - return ; - } + SINGLE mCheckedGearsPermissions = true ; SINGLE <nb> publi...
Fix the build
<nb> public class RenderSurfaceView extends GLSurfaceView { COMMENT @ override protected void onMeasure ( final int pWidthMeasureSpec , final int pHeightMeasureSpec ) { + if ( this . isInEditMode ( ) ) { + super . onMeasure ( pWidthMeasureSpec , pHeightMeasureSpec ) ; + return ; + } this . mEngineRender...
Added detection for edit mode in RenderSurfaceView
<nb> public class CellChange implements Change { public void apply ( Project project ) { project . rows . get ( row ) . setCell ( cellIndex , newCell ) ; + + project . columnModel . getColumnByCellIndex ( cellIndex ) . clearPrecomputes ( ) ; } public void revert ( Project project ) { project . rows . ...
Cell changes should also flush column precomputes
<nb> import NAMESPACE ; import NAMESPACE ; public class PactBoolean implements NormalizableKey , CopyableValue < PactBoolean > { + private static final long serialVersionUID = NUMBER0 ; + + public static final PactBoolean TRUE = new PactBoolean ( true ) ; + + public static final PactBoolean FALSE = ne...
Added constants for true and false to PactBoolean
<nb> public class DefaultUrlMappingsHolder implements UrlMappingsHolder { class UrlMappingKey { String controller ; String action ; - Collection paramNames = Collections . EMPTY_SET ; + Set paramNames = Collections . EMPTY_SET ; - public UrlMappingKey ( String controller , String action , Collection par...
Updated argument types for UrlMappingKey from Collection to Set
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; public class ActiveRuleQuery {
Added License Header
<nb> public class DependencyParserITest extends TestCase { } SINGLE - private static final double EnglishUdLas = FLOAT0 ; + private static final double EnglishUdLas = FLOAT1 ; COMMENT COMMENT
Fixed accuarcy value in DependencyParserITest
<nb> public class GetOnRootDocIT extends AbstractRestFunctionalTestBase } COMMENT - COMMENT + COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT COMMENT @ documented @ test - @ graph ( STRING0 ) public void streaming ( ) thro...
Remove outdated warning about REST API streaming
<nb> import NAMESPACE ; import NAMESPACE ; public class DocumentLoader { - public static boolean DEBUG_PERF = true ; + public static boolean DEBUG_PERF = false ; private Map < String , Long > perfResponsibleParties = new HashMap < String , Long > ( ) ; private static final FileFilter ENDS_WITH_XML = new...
Turn off perf debugging
<nb> public class Task implements ExecutionObserver { COMMENT public void initialExecutionResourcesExhausted ( ) { - if ( this . environment . getExecutingThread ( ) != Thread . currentThread ( ) ) { - throw new ConcurrentModificationException ( - STRING0 ) ; - } + SINGLE + SINGLE + SINGLE + SINGL...
Removed check that executionResourcesExhausted call must be from environment thread to enable chained tasks
<nb> package NAMESPACE ; @ java.lang.suppresswarnings ( { STRING0 , STRING1 , STRING2 } ) public enum T_959SpecialCharacters implements org . jooq . EnumType { - _ ( STRING3 ) , + a ( STRING3 ) , - __ ( STRING4 ) , + b ( STRING4 ) , - _ ( STRING3 ) , + c ( STRING3 ) , - _ ( STRING3 ) , + d (...
Fixed compilation error
<nb> public class JmeCrossHatchFilter extends AbstractFilterNode { set . put ( makeProperty ( obj , ColorRGBA . class , STRING0 , STRING1 , STRING2 ) ) ; set . put ( makeProperty ( obj , float . class , STRING3 , STRING4 , STRING5 ) ) ; set . put ( makeProperty ( obj , float . class , STRING6 , STRING7 , STRING8 ...
remove unsettable crosshatch parameters
<nb> public abstract class DurationType implements Serializable { private static final class MillisType extends DurationType { static final long serialVersionUID = - NUMBER0 ; + public MillisType ( ) { + } + public boolean isPrecise ( ) { return true ; }
Eliminate production of useless anonymous inner class by javac
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ShowBaseRevisionAction extends AbstractVcsAction { presentation . setEnabled ( AbstractShowDiffAction . isEnabled ( vcsContext , null ) ) ; } + @ override + protecte...
Optimized ShowBaseRevisionAction update
<nb> static public int hasheq ( Object o ) { if ( o instanceof Number ) return Numbers . hasheq ( ( Number ) o ) ; else if ( o instanceof IHashEq ) - return ( ( IHashEq ) o ) . hasheq ( ) ; + return dohasheq ( o ) ; return o . hashCode ( ) ; } + public static int dohasheq ( Object o ) { + return ( (...
align the structure of hasheq dohasheq with equiv pcequiv to avoid deoptimization of hash by hotspot
<nb> public class ConversationActivity extends XmppActivity break ; case ATTACHMENT_CHOICE_RECORD_VOICE : intent . setAction ( MediaStore . Audio . Media . RECORD_SOUND_ACTION ) ; + fallbackPackageId = STRING0 ; break ; case ATTACHMENT_CHOICE_LOCATION : intent . setAction ( STRING1 ) ;
added fall back package id for voice recorder plugin
<nb> public class MessageContainerView extends LinearLayout implements OnClickListene @ override public void onFinishInflate ( ) { + super . onFinishInflate ( ) ; + mSidebar = findViewById ( R . id . message_sidebar ) ; mMessageContentView = ( MessageWebView ) findViewById ( R . id . message_content ) ;...
Add missing super calls
<nb> public class SearchScope { } public void setupAddressSearchCriteria ( AddressesByNameSearch . Criteria criteria ) { - SINGLE + SINGLE } public boolean processPoiSearchObject ( PoiSearchObject poiSearchObject ) { <nb> public class SearchObjectsHelper { public static SearchPositionObject getAddre...
Core sample added todos
<nb> package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + COMMENT COMMENT COMMENT <nb> public class DownloadDataset extends Request2 { @ override final public NanoHTTPD . Res...
Add check for NPE
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class LocalEjbReceiver extends EJBReceiver < Void > implements Service < Local context . putPrivateData ( Component . class , ejbCo...
Fix LocalEJBReceiver to pick the SessionID from the right place
<nb> public final class StrictDuplicateCodeCheck extends AbstractFileSetCheck final int [ ] iCheckSums = mLineBlockChecksums [ aI ] ; final int [ ] jCheckSums = mLineBlockChecksums [ aJ ] ; - final int iBlockCount = iCheckSums . length ; - final int jBlockCount = jCheckSums . length ; - final long checkSu...
remove dead code
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ;
Modify the definition mistake of license header
<nb> public final class WebUtils { final Credential cFromFlow = ( Credential ) context . getFlowScope ( ) . get ( STRING0 ) ; final Credential res = cFromRequest != null ? cFromRequest : cFromFlow ; - if ( StringUtils . isBlank ( res . getId ( ) ) ) { + if ( res != null && StringUtils . isBlank ( res . getId ...
fixed unit test added null check
<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 ;
Remove unused imports
<nb> public class MysqlPersistenceService implements QueryablePersistenceService , Man COMMENT COMMENT private void disconnectFromDatabase ( ) { - if ( isConnected ( ) ) { + if ( connection != null ) { try { connection . close ( ) ; logger . debug ( STRING0 + url ) ;
Prevent recursive loop when reconnecting
<nb> public class Clock2 extends Applet implements Runnable { try { setBackground ( new Color ( Integer . parseInt ( getParameter ( STRING0 ) , NUMBER0 ) ) ) ; - } catch ( Exception E ) { } + } catch ( Exception e ) { + SINGLE + } try { handColor = new Color ( Integer . parseInt ( getParameter ( STRIN...
Silence a findbugs warning
<nb> extends BaseTest < A , AP , B , S , B2S , BS , L , X , DATE , BOOL , D , T , U , I , IPK , T658 , . from ( TBook ( ) ) . where ( val ( NUMBER0 ) . in ( TBook_ID ( ) , TBook_AUTHOR_ID ( ) ) ) . orderBy ( TBook_ID ( ) ) . fetch ( TBook_ID ( ) ) ) ; + } + + @ test + public void testQuantifiedPredicates ...
Refactored tests for quantified predicates out into their own test case