diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class MocoProxyTest extends AbstractMocoHttpTest { } } ) ; } + + @ test + public void should_work_with_template ( ) throws Exception { + server . get ( by ( uri ( STRING0 ) ) ) . response ( STRING1 ) ; + server . request ( by ( uri ( STRING2 ) ) ) . response ( proxy ( template ( STRING3 , ST...
added template url for proxy
<nb> public class MuzeiProvider extends ContentProvider { if ( values == null ) { throw new IllegalArgumentException ( STRING0 ) ; } - if ( ! values . containsKey ( MuzeiContract . Artwork . COLUMN_NAME_SOURCE_COMPONENT_NAME ) ) - throw new IllegalArgumentException ( STRING1 + values ) ; + if ( ! values . c...
Ensure every inserted artwork has a valid component name
<nb> public class TextIconGenerator { switch ( style ) { case STYLE_DEFAULT : case STYLE_WHITE : - return R . drawable . bubble_white ; + return R . style . Bubble_TextAppearance_Dark ; case STYLE_RED : case STYLE_BLUE : case STYLE_GREEN :
Fix dark text appearance by using the correct resource identifier
<nb> package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MoviesActivity extends BaseTopActivity { setupViews ( savedInstanceState ) ; setupSyncProgressBar ( R . id . progressBarTabs ) ; + + if ( Build . VERSIO...
Allow movie adapters to repopulate during the next layout pass before starting the transition animation
<nb> public class JetCompiler implements TranslatingCompiler { } params . getVMParametersList ( ) . addParametersString ( STRING0 ) ; - SINGLE + SINGLE Sdk sdk = params . getJdk ( ) ; <nb> public class JetCompiler implements TranslatingCompiler { compileContext . addMessage ( INFORMATION , text , ST...
handling abnormal termination of the compiler
<nb> public class SceneLoader implements AssetLoader { for ( FBXElement e : element . children ) { if ( e . id . equals ( STRING0 ) ) data . type = ( String ) e . properties . get ( NUMBER0 ) ; - else if ( e . id . equals ( STRING1 ) ) + else if ( e . id . equals ( STRING2 ) ) data . filename = ( String ) e...
Fix loading FBX with absolute image path
<nb> public class DataLoaderImpl implements DataLoader { Set < Hash > visible = new HashSet < Hash > ( ) ; for ( Ref ref : allRefs ) { - visible . add ( ref . getCommitHash ( ) ) ; + if ( ref . getType ( ) != Ref . RefType . HEAD ) { + visible . add ( ref . getCommitHash ( ) ) ; + } } System . out ....
Ignore HEAD when displaying interactive rebase
<nb> public class FeaturesConfig public static final List < String > AVAILABLE_OPTIONS = ImmutableList . of ( DISABLED , COLUMNAR , COLUMNAR_DICTIONARY ) ; } - public static final String FILE_BASED_RESOURCE_GROUP_MANAGER = STRING0 ; private boolean experimentalSyntaxEnabled ; private boolean distributedInde...
Remove unused variable
<nb> public abstract class RoutingResource { } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class RoutingRequest implements Cloneable , Serializable { private Locale locale ...
Add Comments to RoutingResource RoutinRequest
<nb> public final class IOUtils { COMMENT COMMENT COMMENT - COMMENT COMMENT COMMENT COMMENT
remove obsolete param in a javadoc document
<nb> public class EditAccountActivity extends XmppActivity implements OnAccountUpdate } catch ( final InvalidJidException ignored ) { return ; } + mAccountJid . setError ( null ) ; + mPasswordConfirm . setError ( null ) ; mAccount . setPassword ( password ) ; mAccount . setOption ( Account . OPTION_REGIST...
reset error status in edit account when reconnecting
<nb> public class TestAnalyzer assertFails ( MISSING_ATTRIBUTE , STRING0 ) ; } - @ test ( expectedExceptions = SemanticException . class , expectedExceptionsMessageRegExp = STRING1 ) + @ test ( expectedExceptions = SemanticException . class , expectedExceptionsMessageRegExp = STRING2 ) public void testInval...
Fix broken analyzer unit test
<nb> public final class PermissionCheckerTest { } public static class FakeUserGroupsMapping implements GroupMappingService { - private HashMap < String , String > mUserGroups = new HashMap < String , String > ( ) ; + private HashMap < String , String > mUserGroups = new HashMap < > ( ) ; public FakeUserGr...
SMALLFIX Removed explicit type argument in PermissionCheckerTest
<nb> public abstract class AbstractProcessor extends AbstractProcessorLight implement COMMENT COMMENT + COMMENT + COMMENT + COMMENT COMMENT protected void execute ( Runnable runnable ) { SocketWrapperBase < ? > socketWrapper = this . socketWrapper ;
Fix Javadoc warning
<nb> import NAMESPACE ; COMMENT public class NoDataMemberInClusterException extends HazelcastException { - public NoDataMemberInClusterException ( ) { - super ( ) ; - } public NoDataMemberInClusterException ( String message ) { super ( message ) ; <nb> import NAMESPACE ; public class ReplicatedMap...
Remove unused constructors in lite member related exceptions
<nb> final class ShardIterator close ( ) ; throw metadataError ( e ) ; } + catch ( Throwable t ) { + close ( ) ; + throw t ; + } } @ override
Fix potential connection leak in Raptor ShardIterator
<nb> public class RestRequestDispatcher { } public Optional < ResponseHandler > getResponseHandler ( final HttpRequest httpRequest ) { + if ( allMatcher . match ( httpRequest ) || this . singleMatcher . match ( httpRequest ) ) { + return doGetResponseHandler ( httpRequest ) ; + } + + return absent ( ) ;...
matched uri first for rest
<nb> public class IccProvider extends ContentProvider { } } - if ( TextUtils . isEmpty ( tag ) ) { + if ( TextUtils . isEmpty ( number ) ) { return NUMBER0 ; }
Abort FDN delete when number is empty instead of name
<nb> import NAMESPACE ; COMMENT COMMENT public abstract class CheckoutProviderEx implements CheckoutProvider { + COMMENT + COMMENT + COMMENT public abstract String getVcsId ( ) ; + COMMENT + COMMENT + COMMENT public abstract void doCheckout ( @ notnull final Project project , @ nullable Listener...
add minimal Javadoc to CheckoutProviderEx
<nb> public class ConstantBeanHolder implements BeanHolder { } public ConstantBeanHolder ( Object bean , CamelContext context ) { - this ( bean , new BeanInfo ( context , bean . getClass ( ) ) ) ; + ObjectHelper . notNull ( bean , STRING0 ) ; + + this . bean = bean ; + this . beanInfo = new BeanInfo ( c...
Fixed potential NPE
<nb> public interface AgentBuilder { } } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT @ equalsandhashcode class ForAdvice implements Transformer { <nb> public interface AgentBuilder { COMMENT COMMENT COMMENT + COMMENT COMMENT public ForAdvice withExceptio...
Added missing javadoc
<nb> public class FormTest extends SmackTestCase { chat . sendMessage ( msg ) ; SINGLE - Message msg2 = chat2 . nextMessage ( ) ; + Message msg2 = chat2 . nextMessage ( NUMBER0 ) ; SINGLE Form formToRespond = Form . getFormFrom ( msg2 ) ; assertNotNull ( formToRespond ) ; <nb> public class FormTest ex...
Added a timeout for retrieving messages
<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 ; <nb> public class ReaderCom...
Fix a String format locale issue
<nb> class FileDownloadMessenger implements IFileDownloadMessenger { message . getSnapshot ( ) . getStatus ( ) , parcelQueue . size ( ) ) , task != null ) ; - task . getListener ( ) . callback ( message ) ; + final FileDownloadListener listener = task . getListener ( ) ; + if ( listener == null ) { + File...
FileDownloader might occur NPE when the download listener was removed but its download task is still running in FileDownloader
<nb> public class NativeSampleIT { public void buildDeployAndRun ( ) throws Exception { File basedir = resources . getBasedir ( STRING0 ) ; MavenExecutionResult result = mavenRuntime - . forProject ( basedir ) + . forProject ( basedir ) . withCliOption ( STRING1 ) . execute ( STRING2 , STRING3 ) ; - + ...
Enabled extra debug output
<nb> public class GLM2 extends Job . ModelJobWithoutClassificationField { if ( ! highAccuracy ( ) ) { LogInfo ( STRING0 ) ; setHighAccuracy ( ) ; - if ( _lastResult != null ) + if ( _lastResult != null && Arrays . equals ( _lastResult . _activeCols , _activeCols ) ) new GLMIterationTask ( GLM2 . this . self...
fixed possible npe when switching to high accuracy and retrying
<nb> public class OStorageLocal extends OStorageEmbedded { if ( pos == - NUMBER0 ) { SINGLE SINGLE - clusters [ i ] . close ( ) ; + if ( clusters [ i ] != null ) + clusters [ i ] . close ( ) ; clusters [ i ] = Orient . instance ( ) . getClusterFactory ( ) . createCluster ( OClusterLocal . TYPE ) ; clust...
Fixed problem with abstract classes
<nb> public class OSMWithTags { tag = tag . toLowerCase ( ) ; String value = getTag ( tag ) ; return ( STRING0 . equals ( value ) || STRING1 . equals ( value ) || - STRING2 . equals ( value ) || STRING3 . equals ( value ) ) || - value . endsWith ( STRING4 ) ; + STRING2 . equals ( value ) || STRING3 . equals...
remove check for tag access
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; <nb> public final class JavaWriterTest { + STRING0 ) ; } + @ test public void outOfOrderM...
Add test for emitting modifier order in compliance with JLS
<nb> public class ProguardMojo extends AbstractAndroidMojo StringBuilder sb = new StringBuilder ( STRING0 ) ; sb . append ( path ) ; sb . append ( STRING1 ) ; - sb . append ( STRING2 ) ; for ( Iterator < String > it = excludedFilter . iterator ( ) ; it . hasNext ( ) ; ) { sb . append ( STRING3 ) . append ...
fixed parameter quoting problem
<nb> import NAMESPACE ; SubjectObserver < T > bo = new SubjectObserver < T > ( child ) ; addUnsubscriber ( child , bo ) ; onStart . call ( bo ) ; - if ( add ( bo ) && child . isUnsubscribed ( ) ) { - remove ( bo ) ; + if ( ! child . isUnsubscribed ( ) ) { + if ( add ( bo ) && child . isUnsubscribed ( ) ) ...
Don t add the subscriber to the manager if it unsubscribed during the onStart call
<nb> 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 package NAM...
Add missing license header
<nb> public class ConcurrentMapManager extends BaseManager { request . reset ( ) ; setLocal ( operation , name , null , predicate , - NUMBER0 , - NUMBER0 ) ; } - - @ override - public void onDisconnect ( final Address dead ) { - } } public Address getKeyOwner ( Data key ) { <nb> public class MapSt...
Query redo fix
<nb> import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ; - import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> public class InternalApisTest { assertThat ( matcher . match ( requestByUri ( STRING0 ) ) , is ( false ) ) ; } - pri...
removed unused import in rest id matchers
<nb> public final class ClientMapProxy < K , V > extends ClientProxy implements IMap < K , V final Data keyData = toData ( key ) ; final MapExecuteOnKeyRequest request = new MapExecuteOnKeyRequest ( name , entryProcessor , keyData ) ; - Future < V > f = getContext ( ) . getExecutionService ( ) . submit ( new Ca...
throw exception instead of returning null value
<nb> public class MustacheWriter extends Writer { private static ExecutorService es = Executors . newCachedThreadPool ( ) ; private Writer writer ; - protected MustacheWriter ( Writer writer ) { + public MustacheWriter ( Writer writer ) { this . writer = writer ; }
fix a minor bug
<nb> class Camera2 extends CameraViewImpl { mPictureSizes . clear ( ) ; SINGLE if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . M ) { - for ( android . util . Size size : map . getHighResolutionOutputSizes ( ImageFormat . JPEG ) ) { - mPictureSizes . add ( new Size ( size . getWidth ( ) , size . getH...
StreamConfigurationMap getHighResolutionOutputSizes may returns null and cause NPE
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class InitCommand extends AbstractInitCommand implements InitOperationLis multichunkerTO . setType ( ZipMultiChunker . TYPE ) ; ...
Adapted multichunker and init command
<nb> public class JglfwApplication implements Application { void initialize ( JglfwApplicationConfiguration config ) { forceExit = config . forceExit ; - runOnEDT = config . forceExit ; + runOnEDT = config . runOnEDT ; final Thread glThread = Thread . currentThread ( ) ;
Fixed non EDT threading
<nb> public class SelectBase extends AbstractBaseTest { } @ test - @ excludein ( SQLITE ) + @ excludein ( { DERBY , SQLITE } ) public void In_Long_List ( ) { List < Integer > ids = Lists . newArrayList ( ) ; for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) { <nb> public class SelectBase extends AbstractBa...
Exclude tests in Derby
<nb> public class TableTripPattern implements TripPattern , Serializable { return trips . indexOf ( trip ) ; } - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - private void writeObject ( ObjectOutputStream outputStream ) throws ClassNotFoundExcept...
remove obsolete code
<nb> public abstract class ORecordSchemaAwareAbstract < T > extends ORecordAbstract < T > i } public String getClassName ( ) { + if ( _clazz != null ) + return _clazz . getName ( ) ; + + SINGLE checkForLoading ( ) ; checkForFields ( ) ; return _clazz != null ? _clazz . getName ( ) : null ;
improved performance thanks to the reported by Danny
<nb> public class CodePrinterTest extends TestCase { return new CodePrinter . Builder ( parse ( js ) ) . setCompilerOptions ( options ) . build ( ) ; } - private interface CompilerOptionBuilder { - void setOptions ( CompilerOptions options ) ; + private abstract class CompilerOptionBuilder { + abstract vo...
nevermind with an abstract class we can omit the public modifier
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class GitTest extends AbstractVcsTestCase { @ beforemethod protected void setUp ( final Method testMethod ) throws Exc...
add the platform prefix
<nb> public class Email extends Application { COMMENT COMMENT public static final String [ ] UNACCEPTABLE_ATTACHMENT_VIEW_TYPES = new String [ ] { - STRING0 , } ; COMMENT <nb> public class Email extends Application { COMMENT COMMENT public static final String [ ] UNACCEPTABLE_ATTACHMENT_DOWNLOAD_T...
Removed image gif from exclusion list so that the images can be viewed and save to SD card
<nb> public class ChangesViewManager implements ChangesViewI , JDOMExternalizable , Pro scheduleRefresh ( ) ; ChangeListManagerImpl changeListManager = ChangeListManagerImpl . getInstanceImpl ( myProject ) ; VcsException updateException = changeListManager . getUpdateException ( ) ; + setBusy ( false ) ; if (...
when there was a problem during changelist update still turn off the progress icon when it s finished
<nb> public class JavaLibraryDescription implements Description < JavaLibraryDescriptio throw new HumanReadableException ( STRING0 ) ; } } else { - builder . setJavacPath ( resolver . deprecatedGetPath ( sourcePath ) ) ; + builder . setJavacPath ( resolver . getAbsolutePath ( sourcePath ) ) ; } } } else...
Remove final deprecatedGetPath call from jvm package
<nb> public class DefaultBroadcaster implements Broadcaster { bc . broadcasterID ( name ) ; } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public Broadcaster rename ( String id ) { + this . name = id ; + return this ; + } + @ override public Strin...
Remove legacy and cosly call to setId add a protected method for framework usage
<nb> import NAMESPACE ; @ autoconfigureafter ( { EndpointAutoConfiguration . class } ) @ conditionalonexpression ( STRING0 ) @ enableconfigurationproperties ( EndpointMBeanExportProperties . class ) - class EndpointMBeanExportAutoConfiguration { + public class EndpointMBeanExportAutoConfiguration { @ auto...
Make EndpointMBeanExportAutoConfiguration public
<nb> public class ActFmSyncV2Provider extends SyncV2Provider { } finally { callback . incrementProgress ( NUMBER0 ) ; if ( finisher . decrementAndGet ( ) == NUMBER1 ) { - actFmPreferenceService . recordSuccessfulSync ( ) ; - callback . finished ( ) ; + finishSync ( callback ) ; } } }
Fixed a bug where sometimes sync would be perpetually ongoing blocking sync on save
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class LambdaPlugin extends AbstractCompilerPlugin { callSite = altMetafactory ( caller , invokedName , invokedType , samMethodType , implMethod , in...
Removed LambdaClassGenerator from old plugin
<nb> public class NotificationService { builder . setStyle ( messagingStyle ) ; } else { builder . setStyle ( new NotificationCompat . BigTextStyle ( ) . bigText ( getMergedBodies ( messages ) ) ) ; - builder . setContentText ( UIHelper . getMessagePreview ( mXmppConnectionService , messages . get ( NUMBER0 ) )...
Use the last message in the content text instead of the first
<nb> public class Element { } if ( stringRegExp ) { - if ( token . getToken ( ) != null ) { + if ( testToken != null ) { if ( m == null ) { m = p . matcher ( testToken ) ; } else {
make dereferencing safer
<nb> public class RequestQueue { COMMENT COMMENT COMMENT - public Request < ? > add ( Request < ? > request ) { + public < T > Request < T > add ( Request < T > request ) { SINGLE request . setRequestQueue ( this ) ; synchronized ( mCurrentRequests ) {
Fix generic type parameter for RequestQueue add Request
<nb> import static NAMESPACE ; COMMENT COMMENT COMMENT - public final class Call { + public class Call { private final OkHttpClient client ; SINGLE <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public final class OkHttpClient implements Cloneable { + public class OkHttpClient implements ...
Make OkHttpClient and Call non final again for Quasar integration
<nb> public class WifiMonitor { COMMENT private void handleSupplicantStateChange ( String dataString ) { String SSID = null ; - int index = dataString . indexOf ( STRING0 ) ; - if ( index != - NUMBER0 ) SSID = dataString . substring ( index ) ; + int index = dataString . lastIndexOf ( STRING0 ) ; + if ( i...
Fix SSID parse
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; @ named public class MyItemReader extends AbstractItemReader { - private final StringTokenizer tokens ; + private StringTokenizer tokens ; static int COUNT =...
Overriding appropriate method
<nb> public class SftpOperations implements RemoteFileOperations < ChannelSftp . LsEntry > COMMENT COMMENT COMMENT - public static interface ExtendedUserInfo extends UserInfo , UIKeyboardInteractive { + public interface ExtendedUserInfo extends UserInfo , UIKeyboardInteractive { } public void setEndpoin...
Fixed the CS errors
<nb> import NAMESPACE ; COMMENT COMMENT @ xmlaccessortype ( XmlAccessType . FIELD ) - public class ExpressionNode extends ProcessorDefinition < ProcessorDefinition > { + public class ExpressionNode extends ProcessorDefinition < ExpressionNode > { @ xmlelementref private ExpressionDefinition expression ; ...
Fixed wrong generics which causes pain in camel scala
<nb> public class UiThreadHandler extends AbstractRunnableHandler { super . validate ( element , valid ) ; coreValidatorHelper . usesEnqueueIfHasId ( element , valid ) ; + + UiThread annotation = element . getAnnotation ( UiThread . class ) ; + long delay = annotation . delay ( ) ; + UiThread . Propagatio...
add compiler warning when propagation REUSE is used with a non zero delay
<nb> public class StringUtils { public static String [ ] splitSQL ( String multiLineSQL , String endDelimiter ) { if ( endDelimiter == null ) { endDelimiter = STRING0 ; + } else { + if ( endDelimiter . equalsIgnoreCase ( STRING1 ) ) { + endDelimiter = STRING2 ; + } } String [ ] initialSplit = multiLin...
smarter go handling
<nb> public class Matrix { public static final int MPERSP_2 = NUMBER0 ; SINGLE COMMENT - public static Matrix IDENTITY_MATRIX = new Matrix ( ) { + public final static Matrix IDENTITY_MATRIX = new Matrix ( ) { void oops ( ) { throw new IllegalStateException ( STRING0 ) ; }
Make IDENTITY_MATRIX final
<nb> class MySQLExportWizard extends AbstractToolWizard < MySQLCatalog > implements IExp public void setOutputFile ( File outputFile ) { - DialogUtils . setCurDialogFolder ( outputFile . getParentFile ( ) . getAbsolutePath ( ) ) ; + if ( outputFile != null && outputFile . getParentFile ( ) != null ) { + Dia...
Create target folder if not exist
<nb> public abstract class AbstractJPATest { } @ test + @ nobatoojpa public void Enum_Eq ( ) { assertEquals ( NUMBER0 , query ( ) . from ( company ) . where ( company . ratingOrdinal . eq ( Rating . A ) ) . count ( ) ) ; assertEquals ( NUMBER0 , query ( ) . from ( company ) . where ( company . ratingStrin...
Add Batoo exclusion
<nb> public final class TsExtractor implements HlsExtractor { } tsPacketBuffer . setPosition ( NUMBER0 ) ; + tsPacketBuffer . setLimit ( TS_PACKET_SIZE ) ; int syncByte = tsPacketBuffer . readUnsignedByte ( ) ; if ( syncByte != TS_SYNC_BYTE ) { return ;
Fix TsExtractor bug
<nb> public class WXSDKInstance implements IWXActivityStateListener { mWXPerformance . networkTime = System . currentTimeMillis ( ) - startRequestTime ; WXLogUtils . renderPerformanceLog ( STRING0 , mWXPerformance . networkTime ) ; - if ( TextUtils . equals ( STRING1 , response . statusCode ) ) { + if ( respo...
android update WXSDKInstance java np
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Removed unnecessary import
<nb> public class MetaDataIndexTemplateService extends AbstractComponent { if ( ! request . name . toLowerCase ( ) . equals ( request . name ) ) { throw new InvalidIndexTemplateException ( request . name , STRING0 ) ; } - if ( ! request . name . toLowerCase ( ) . equals ( request . name ) ) { - throw new Inva...
remove two similar checks on tempalte name
<nb> public class ProducteevSyncProvider extends SyncProvider < ProducteevTaskContainer int icon = R . drawable . ic_producteev_notification ; long when = System . currentTimeMillis ( ) ; Notification notification = new Notification ( icon , null , when ) ; - CharSequence contentTitle = context . getString ( R ...
Still more shorten the notification title
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT public final class OperationControl implements IdentifiedDataSerializable { + private long [ ] runningOperations ; private long [ ]...
Fixed FindBugs issues in OperationControl
<nb> public class FormAuthModule extends BaseAuthModule SINGLE FormCredential form_cred = ( FormCredential ) session . getAttribute ( __J_AUTHENTICATED ) ; if ( form_cred != null ) - { - SINGLE - - boolean success = tryLogin ( messageInfo , clientSubject , response , session , form_cred . _jUserName , new...
Prevent reinvocation of LoginModule login with jaspi for already authed user
<nb> public int compareTo ( Object o ) { return NUMBER0 ; if ( this . ns == null && s . ns != null ) return - NUMBER1 ; - if ( this . ns != null && s . ns == null ) - return NUMBER1 ; - int nsc = this . name . compareTo ( s . name ) ; - if ( nsc != NUMBER0 ) - return nsc ; + if ( this . ns != null ) ...
fixed Symbol compareTo
<nb> public final class Debug COMMENT COMMENT COMMENT - public String getMemoryStat ( String statName ) { + public String getMemoryStat ( String statName ) { switch ( statName ) { case STRING0 : return Integer . toString ( getSummaryJavaHeap ( ) ) ; <nb> href = STRING1 > Traceview : A Graphical Lo ...
Debug getMemoryInfo doesn t include EGL mtrack
<nb> public class DefaultXmlExtension extends XmlExtension { } } } - CodeStyleManager . getInstance ( project ) . reformat ( rootTag ) ; + XmlUtil . reformatTagStart ( rootTag ) ; if ( namespace . length ( ) == NUMBER0 ) { final XmlAttribute xmlAttribute = rootTag . getAttribute ( qname ) ;
create namespace declaration reformats whole spring xml file
<nb> public class BlockChain { BlockStore blockStore ) throws BlockStoreException { this . blockStore = blockStore ; chainHead = blockStore . getChainHead ( ) ; - log . info ( STRING0 , chainHead . getHeader ( ) ) ; + log . info ( STRING1 , chainHead . getHeight ( ) , chainHead . getHeader ( ) ) ; this . pa...
Log chain height in BlockChain c tor
<nb> System . err . println ( STRING0 + name + STRING1 + state ) ; System . err . println ( STRING2 + name + STRING3 + _itemFilter ) ; - state = _itemFilter . includeProperty ( name ) ; + state = state . includeProperty ( name ) ; System . err . println ( STRING4 + name + STRING5 + _itemFilter + STRING6 +...
Fix a problem with filtering
<nb> COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class UtilsTest { String expected = STRING0 ; for ( String path : paths ) { ...
Fix a unit test where expected and results are swapped
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class Wallet extends BaseTaggableObject implements Serializable , BlockCha extensions = new HashMap < String , WalletExtension > ( ...
Do tags lazily as was supposed to happen
<nb> public class MessageList } } - boolean result ; int position = mListView . getSelectedItemPosition ( ) ; try { <nb> public class MessageList } finally { - result = super . onKeyDown ( keyCode , event ) ; + return super . onKeyDown ( keyCode , event ) ; } - return result ; } @ ...
Remove a temporary variable
<nb> public class ModuleManager { } public SimpleUri getDefaultWorldGenerator ( Module module ) { - return new SimpleUri ( module . getMetadata ( ) . getExtension ( ModuleManager . DEFAULT_WORLD_GENERATOR_EXT , String . class ) ) ; + String ext = module . getMetadata ( ) . getExtension ( ModuleManager . DEFAU...
Fix NPE in getDefaultWorldGenerator
<nb> public abstract class JBPopupFactory { @ notnull public abstract ListPopup createListPopup ( @ notnull ListPopupStep step ) ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + @ notnull + public abstract ListPopup createListPopup ( @ notnull Lis...
add an overload for JBPopupFactory createListPopupStep allowing to change the displayed row count
<nb> import NAMESPACE ; COMMENT public interface EdgeSupervisor extends Supervisor { + public Float getEdgeScale ( ) ; + + public void setEdgeScale ( Float scale ) ; + COMMENT COMMENT COMMENT
Add edge thickness to PreviewAPI
<nb> package NAMESPACE ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public class SubstringSearch { public boolean hasSubstring ( char [ ] str , char [ ] subString ) {
Adding documentation for KMP
<nb> public abstract class AbstractAjaxCallback < T , K > implements Runnable { private static int NET_TIMEOUT = NUMBER0 ; private static String AGENT = null ; private static int NETWORK_POOL = NUMBER1 ; + private static boolean GZIP = true ; private Class < T > type ; private Reference < Object > whandle...
Add gzip config
<nb> final class JsonSchemaHelper { sb . append ( STRING0 ) ; sb . append ( Strings . doubleQuote ( kind ) ) ; + SINGLE + if ( ! Strings . isNullOrEmpty ( label ) ) { + sb . append ( STRING1 ) ; + sb . append ( Strings . doubleQuote ( label ) ) ; + } + if ( required != null ) { sb . append ( STRIN...
apt plugin supports labels per component and endpoint options
<nb> final class ContentProviderProxy implements IContentProvider mRemote . transact ( IContentProvider . CALL_TRANSACTION , data , reply , NUMBER0 ) ; DatabaseUtils . readExceptionFromParcel ( reply ) ; - return reply . readBundle ( ) ; + Bundle bundle = reply . readBundle ( ) ; + + data . recycle ( ) ; ...
Fix Parcel leak in ContentProvider call
<nb> public class Animation { COMMENT COMMENT public boolean isAnimationFinished ( float stateTime ) { + if ( playMode != NORMAL && playMode != REVERSED ) return false ; int frameNumber = ( int ) ( stateTime / frameDuration ) ; return keyFrames . length - NUMBER0 < frameNumber ; }
Modified isAnimationFinished when looping
<nb> public class ApplicationImpl extends PlatformComponentManagerImpl implements App Runnable task = new Runnable ( ) { @ override public void run ( ) { - try ( AccessToken ignored = TransactionGuard . getInstance ( ) . startSynchronousTransaction ( TransactionGuard . NO_MERGE ) ) { - ApplicationImpl . super...
revert transaction use
<nb> public class LocalMUCUser implements MUCUser { catch ( CannotBeInvitedException e ) { sendErrorPacket ( packet , PacketError . Condition . not_acceptable ) ; } + catch ( IllegalArgumentException e ) { + sendErrorPacket ( packet , PacketError . Condition . jid_malformed ) ; + } } } }
Send a malformed JID error if we encounter an exception validating the JID during invitations
<nb> public class SQLEditorPropertyTester extends PropertyTester boolean isConnected = editor . getDataSourceContainer ( ) != null && editor . getDataSourceContainer ( ) . isConnected ( ) ; switch ( property ) { case PROP_CAN_EXECUTE : - return isConnected && isFocused && ( ! STRING0 . equals ( expectedValue ) ...
Execute statement script command enablement fix
<nb> public class JvmComponentPlugin implements Plugin < Project > { for ( final LocalJava candidate : localJavaInstalls ) { final File javaHome = canonicalFile ( candidate . getPath ( ) ) ; final JavaInstallationProbe . ProbeResult probeResult = probe . checkJdk ( javaHome ) ; - Class < ? extends LocalJavaInst...
Refine toolchains rule in JvmComponentPlugin
<nb> public class ItemFragment extends LazyLoadFragment implements Scrollable , Naviga } mAdapter . setCacheMode ( mCacheMode ) ; mAdapter . initDisplayOptions ( getActivity ( ) ) ; - mRecyclerView . scrollToPosition ( NUMBER0 ) ; mRecyclerView . setAdapter ( mAdapter ) ; } <nb> public class ListFragmen...
Revert resetting scroll position on refresh
<nb> public abstract class DTask < T extends DTask > extends H2OCountedCompleter < T > { public DTask ( H2OCountedCompleter completer ) { super ( completer ) ; } + public DTask ( H2OCountedCompleter completer , boolean bumpPriority ) { super ( completer , bumpPriority ) ; } + public DTask ( boolean bumpPriori...
always bump priority from MRTask constructor
<nb> public abstract class ViewGroup extends View implements ViewParent , ViewManager final int matchAxisFilter = ( ( lp . width == MATCH_PARENT ? FLAG_LAYOUT_AXIS_HORIZONTAL : NUMBER0 ) | ( lp . height == MATCH_PARENT ? FLAG_LAYOUT_AXIS_VERTICAL : NUMBER0 ) ) & axisFilter ; - if ( matchAxisFilter != NUMBER0 ) ...
Fix requestLayout optimizations
<nb> public class Quaternion implements Serializable { if ( d == FLOAT0 ) return idt ( ) ; d = FLOAT1 / d ; float l_ang = radians ; + while ( l_ang < NUMBER0 ) l_ang += MathUtils . PI2 ; + while ( l_ang > MathUtils . PI2 ) l_ang -= MathUtils . PI2 ; float l_sin = ( float ) Math . sin ( l_ang / NUMBER1 ) ; ...
Make sure the angle is in the correct range required because the angle is divided
<nb> public class EnglishGrammaticalRelations { STRING0 + haveRegex + STRING1 , SINGLE SINGLE - STRING2 , + STRING3 , STRING4 , SINGLE STRING5 , SINGLE SINGLE <nb> public class EnglishGrammaticalRelations { SINGLE STRING6 , SINGLE - STRING7 , + STRING8 , STRING9 , SINGLE } ) ; public s...
Fix up some conflicts between ccomp and parataxis
<nb> public class PhoneWindowManager implements WindowManagerPolicy { SINGLE SINGLE - if ( mStatusBar . isVisibleLw ( ) && ! statusBarTransient && ! statusBarTransparent ) { + if ( mStatusBar . isVisibleLw ( ) && ! statusBarTransient ) { SINGLE SINGLE SINGLE
Fix glitch launching new windows from transparent launcher
<nb> public class Log4j2Factory extends LoggerFactorySupport { } } + SINGLE + SINGLE private org . apache . logging . log4j . Level getLevel ( Level level ) { if ( Level . SEVERE == level ) { return org . apache . logging . log4j . Level . ERROR ; <nb> public class Log4j2Factory extends LoggerFactoryS...
Avoid checkstyle issue
<nb> public class PhoneNumberFormattingTextWatcher implements TextWatcher { COMMENT public PhoneNumberFormattingTextWatcher ( String countryCode ) { if ( countryCode == null ) throw new IllegalArgumentException ( ) ; - SINGLE - SINGLE - countryCode = countryCode . toUpperCase ( Locale . ENGLISH ) ; mForma...
Remove explicit toUpperCase after CountryDetector is fixed to return
<nb> public class NaturalLogicRelationTest { @ test public void someInsertionRelations ( ) { - assertEquals ( NaturalLogicRelation . INDEPENDENCE , NaturalLogicRelation . forDependencyInsertion ( STRING0 ) ) ; + SINGLE assertEquals ( NaturalLogicRelation . FORWARD_ENTAILMENT , NaturalLogicRelation . forDepe...
Fix the tests