diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class OHazelcastPlugin extends ODistributedAbstractPlugin implements Memb } public String getMasterNode ( final String iDatabaseName , final String iClusterName , final Object iKey ) { - final String masterNode = getDatabaseClusterConfiguration ( iDatabaseName , iClusterName ) . field ( STRING0 ) ; ...
Fixed problem on wrong distributed configuration
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT - COMMENT + COMMENT + COMMENT COMMENT public...
Add thread safety documentation
<nb> public class GetGlue { Utils . trackExceptionAndLog ( context , TAG , e ) ; } catch ( IOException e ) { Utils . trackExceptionAndLog ( context , TAG , e ) ; + } catch ( IllegalArgumentException e ) { + Utils . trackExceptionAndLog ( context , TAG , e ) ; } return null ; }
Catch a reported IllegalArgumentException
<nb> public class SyncWatchEventProcessor implements Runnable { Path sourceFilePath = Paths . get ( syncFile . getFilePathName ( ) ) ; if ( targetFilePath . equals ( sourceFilePath ) ) { + SyncFileService . updateFileKeySyncFile ( syncFile ) ; } else if ( Files . exists ( sourceFilePath ) ) { SyncFileServ...
sync engine File key can change each update
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class EditorFragment extends EditorFragmentAbstract implements View . OnCli break ; case STRING0 : String [ ] mediaIds = inputArgs . get ( STRING1...
Added some empty string checking when retrieving failed media ids from the ZSSEditor
<nb> public class BufferUtil public static void writeTo ( ByteBuffer buffer , OutputStream out ) throws IOException { if ( buffer . hasArray ( ) ) - out . write ( buffer . array ( ) , buffer . arrayOffset ( ) + buffer . position ( ) , buffer . remaining ( ) ) ; + { + out . write ( buffer . array ( ) , buffe...
BufferUtil writeTo does not update position consistently
<nb> import static NAMESPACE ; public class Main { public static void main ( String [ ] args ) throws Exception { - boolean sandboxed = isSandboxed ( args ) ; - Option < Integer > port = port ( args ) ; - ConsoleLogger logger = systemConsoleLogger ( ) ; - Console console = new RestConsole ( new SimpleCo...
removed unnecessary local variables
<nb> public class TodoTxtTouch extends ListActivity implements Util . showConfirmationDialog ( this , R . string . areyousure , listener ) ; } else if ( menuid == R . id . priority ) { Log . v ( TAG , STRING0 ) ; - final String [ ] prioArr = { STRING1 + TaskHelper . NONE , STRING2 , STRING3 , STRING4 } ; + fi...
Add Priority D in Prioritize context menu to match add edit task priority choice list
<nb> public final class EndpointServiceDeploymentAspect extends AbstractDeploymentAsp @ override public void stop ( Deployment dep ) { - if ( stopServices ) { - final DeploymentUnit unit = getRequiredAttachment ( dep , DeploymentUnit . class ) ; - for ( final Endpoint ep : dep . getService ( ) . getEndpoint...
Fix can not modify endpoint failure in ResourceResolverDeploymentAspect
<nb> public class CameraPreview extends SurfaceView implements SurfaceHolder . Callback @ override public void surfaceCreated ( SurfaceHolder surfaceHolder ) { mSurfaceCreated = true ; - showCameraPreview ( ) ; } @ override
Delay camera autofocus till surfaceChanged callback
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - class NoEncryption implements Encryption { + public class NoEncryption implements Encryption { @ override public boolean init ( ) { return true ; }
Make NoEncryption public
<nb> public class NativeObjectManager { } } refMap . clear ( ) ; + refQueue = new ReferenceQueue < Object > ( ) ; } SINGLE
Fix issue with clearing the map of native objects without clearing the ReferenceQueue
<nb> public class PieChartRenderer extends AbstractChartRenderer { private void drawSeparationLines ( Canvas canvas ) { final PieChartData data = dataProvider . getPieChartData ( ) ; + if ( data . getValues ( ) . size ( ) < NUMBER0 ) { + SINGLE + return ; + } final float sliceScale = NUMBER1 f / maxSum ...
Fixed pie slices separation when there is only one slice
<nb> public class LZFDecoder { throw new IOException ( STRING0 + blockNr + STRING1 + ptr + STRING2 ) ; } - int type = ( int ) data [ ptr + NUMBER0 ] ; + int type = data [ ptr + NUMBER0 ] ; int blockLen = uint16 ( data , ptr + NUMBER1 ) ; if ( type == LZFChunk . BLOCK_TYPE_NON_COMPRESSED ) { SINGLE ptr +...
Remove unnecessary cast from byte to int
<nb> public class WsRemoteEndpoint implements RemoteEndpoint { } sendMessage ( Constants . OPCODE_TEXT , textToByte , first , isLast ) ; if ( ! isLast ) { - isText = Boolean . FALSE ; + isText = Boolean . TRUE ; } }
Correctly set isText flag for text messages
<nb> public abstract class Editor extends JFrame implements RunnerListener { SINGLE } + SINGLE + private boolean saved ; private boolean didReload ; <nb> public abstract class Editor extends JFrame implements RunnerListener { SINGLE SINGLE + SINGLE + if ( saved ) { + break ; + } SINGLE...
Stopped pop up when the file is saved from within processing
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> import NAMESPACE ; @ path ( STRING0 ) @ xmlrootelement @ autowire + @ singleton public class Components { private GraphService graphService ;
use singleton annotation for component so that caching works
<nb> class EJBRemoteTransactionPropagatingInterceptor implements Interceptor { } else { SINGLE SINGLE - final Transaction newSubOrdinateTx = this . ejbRemoteTransactionsRepository . importTransaction ( xidTransactionID , Integer . MAX_VALUE ) ; + final Transaction newSubOrdinateTx = this . ejbRemoteTransactio...
Configure remote tx timeout via system property
<nb> public final class JdbcConfigService { if ( this . connection != null && this . connection . isValid ( NUMBER0 ) ) { - return ; + try + { + PreparedStatement st = this . connection . prepareStatement ( + STRING0 ) ; + if ( st . execute ( ) ) + { + return ; + } + } + catch ( Exception e ...
Test the database connection more thoroughly
<nb> public class AccessPoint implements Comparable < AccessPoint > { int index = state . ordinal ( ) ; if ( index >= formats . length || formats [ index ] . length ( ) == NUMBER0 ) { - return null ; + return STRING0 ; } return String . format ( formats [ index ] , ssid ) ; }
Fix display of null string shown in Wifi Settings for AP
<nb> public class SectionDrawerItem extends AbstractDrawerItem < SectionDrawerItem > imp return this ; } - public SectionDrawerItem setDivider ( boolean divider ) { + public SectionDrawerItem withDivider ( boolean divider ) { this . divider = divider ; return this ; }
rename setDivider to withDivider to stay conform to the rest of all method names
<nb> public class PathAwareTransferManager implements TransferManager { } private boolean removeFolder ( String folder ) throws StorageException { - for ( int i = NUMBER0 ; i < subfolderDepth ; i ++ ) { + logger . log ( Level . FINE , STRING0 + folder ) ; + if ( pathAwareFeatureExtension . listFolder ( ...
Fix invalid deletion path
<nb> public class DefaultBroadcaster implements Broadcaster { } notifyOnRemoveAtmosphereResourceListener ( r ) ; } else { - logger . trace ( STRING0 , r . uuid ( ) , getID ( ) ) ; + logger . trace ( STRING1 , r . uuid ( ) , getID ( ) ) ; } }
Fix typo in logging statement
<nb> public class NetworkManager extends Plugin { public int isReachable ( String uri , boolean isIpAddress ) { int reachable = NOT_REACHABLE ; - if ( uri . indexOf ( STRING0 ) == - NUMBER0 ) { + if ( uri . indexOf ( STRING0 ) == - NUMBER0 && uri . indexOf ( STRING1 ) == - NUMBER0 ) { uri = STRING0 + uri ; ...
Fix bug where isreachable doesn t return correct results for https
<nb> package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class TestlibTest extends CodegenTestCase { myEnvironment . addToClasspath ( junitJar ) ; CoreLocalFileSystem localFileSystem = myEnvironment . getLocalFileSystem ( ) ; - VirtualFil...
Fix testlib tests
<nb> public abstract class Struct < T extends Struct < T > > extends NativeObject implement } COMMENT - COMMENT + COMMENT COMMENT COMMENT public static class StructArrayMarshaler {
Fixed typo in javadoc
<nb> public class CompilerRunnerUtil { ArrayList < File > answer = new ArrayList < File > ( ) ; answer . add ( new File ( libs , STRING0 ) ) ; + answer . add ( new File ( libs , STRING1 ) ) ; return answer ; }
Add kotlin runtime to compiler classpath
<nb> public abstract class IndexAction extends QueueAction { protected Method method ; protected Index index ; - public IndexAction ( String indexType ) { - this ( indexType , null ) ; - } - public IndexAction ( String indexType , Method method ) { super ( ) ; this . indexType = indexType ;
fix quality flaws Unused ctor
<nb> public abstract class OStringSerializerHelper { if ( item != null && ! item . isEmpty ( ) ) { entry = OStringSerializerHelper . split ( item , OStringSerializerHelper . ENTRY_SEPARATOR ) ; - map . put ( ( String ) fieldTypeFromStream ( null , OType . STRING , entry . get ( NUMBER0 ) ) , entry . get ( NUMBE...
Fixed parsing of maps
<nb> public class EndpointWebMvcAutoConfiguration implements ApplicationContextAware , @ conditionalonexpression ( STRING0 ) public HealthMvcEndpoint healthMvcEndpoint ( HealthEndpoint delegate ) { HealthMvcEndpoint healthMvcEndpoint = new HealthMvcEndpoint ( delegate ) ; - if ( this . healthMvcEndpointProperti...
Fix HTTP status code mapping in HealthMvcEndpoint
<nb> public class APIHandler extends AbstractHandler { String lastEventIdParam = normalize ( request . getParameter ( QUERY_PARAM_LAST_EVENT_ID ) ) ; Integer lastEventId = getInt ( lastEventIdParam , - NUMBER0 ) ; - LOG . info ( STRING0 , lastEventId ) ; Collection < Event > events = statsReadService . getE...
Removed the log message that appears every second
<nb> import NAMESPACE ; import NAMESPACE ; public class AutoSaveTextTable { - public static final int MAX_ENTRIES = NUMBER0 ; + private static final int MAX_ENTRIES = NUMBER0 ; private static final String AUTOSAVETEXT_TABLE = STRING0 ; public static void reset ( SQLiteDatabase db ) {
make MAX_ENTRIES private
<nb> public class InsertProjectsAuthorizationUpdatedAtMigration extends BaseDataChang final long now = system . now ( ) ; MassUpdate massUpdate = context . prepareMassUpdate ( ) ; - massUpdate . select ( STRING0 ) . setString ( NUMBER0 , STRING1 ) . setBoolean ( NUMBER1 , true ) ; + massUpdate . select ( STRI...
Improve reentrancy of InsertProjectsAuthorizationUpdatedAtMigration
<nb> import static NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import static NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMEN...
Improve Javadoc for TransactionalTestExecutionListener
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; COMMENT COMMENT <nb> public class AstPluginDescriptorReader ...
Removed usage of incorrect LinkedHashMap class
<nb> public abstract class BaseCheckTestSupport parseInt = parseInt . substring ( NUMBER0 , parseInt . indexOf ( STRING0 ) ) ; int lineNumber = Integer . parseInt ( parseInt ) ; Integer integer = Arrays . asList ( aWarnsExpected ) . contains ( lineNumber ) ? lineNumber : NUMBER0 ; - assertEquals ( STRING1 + i ,...
Remove unnecessary explicit numeric cast
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ;
Removed unused imports
<nb> import NAMESPACE ; public class HawkBuilder { COMMENT - COMMENT + COMMENT COMMENT COMMENT - private static final String TAG = STRING0 ; + private static final String STORAGE_TAG_DO_NOT_CHANGE = STRING1 ; private Context context ; private String password ; <nb> public class HawkBuilder { ...
Change the storage tag in order to reset everything for the new version
<nb> public class HttpConfiguration { @ min ( NUMBER0 ) @ max ( NUMBER1 ) @ jsonproperty - private int acceptorThreadCount = Runtime . getRuntime ( ) . availableProcessors ( ) ; + private int acceptorThreadCount = NUMBER0 ; @ min ( - Thread . NORM_PRIORITY ) @ max ( Thread . NORM_PRIORITY )
Fix acceptorThreadCount default to Jetty s
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; public class AudioPlayer { private static final String TAG = STRING0 ; <nb> public class AudioPlayer { try { initPlayer ( ) ; } catch ( Exception e ) { - throw new RuntimeException ( e ) ; + T...
don t throw unhandled Exception if audio message is unplayable
<nb> COMMENT package NAMESPACE ; - public abstract class ExternalEventResponse extends Message { + public abstract class ExternalEventResponse extends EventResponse { SINGLE }
Fix inheritence issue
<nb> public abstract class DKV { COMMENT static public Value remove ( Key key ) { return put ( key , null ) ; } COMMENT - static public Value remove ( Key key , Futures fs ) { - System . out . println ( STRING0 + key ) ; - if ( key . _kb [ NUMBER0 ] == NUMBER1 && key . _kb [ NUMBER2 ] == NUMBER3 ) - Syste...
remove debug stmnts
<nb> import static NAMESPACE ; } COMMENT - Context applicationContext , - @ nullable Activity currentActivity , - @ nullable DefaultHardwareBackBtnHandler defaultHardwareBackBtnHandler , - @ nullable String jsBundleFile , - @ nullable String jsMainModuleName , - List < ReactPackage > packages , - bo...
Remove unused constructor of XReactInstanceManagerImpl
<nb> public class TypeMap { STRING0 , STRING1 , STRING2 , + STRING3 , + STRING4 , STRING5 , STRING6 , STRING7 , - STRING3 , STRING8 , STRING9 , STRING10 ,
Add ByteVec to the inital list
<nb> public class LanguageConsoleImpl implements Disposable , TypeSafeDataProvider { return myCurrentEditor == null ? myConsoleEditor : myCurrentEditor ; } + public Language getLanguage ( ) { + return myVirtualFile . getLanguage ( ) ; + } + public void setLanguage ( @ notnull Language language ) { myV...
add getLanguage method
<nb> class JSONParser { int i = NUMBER0 ; char current = get ( ) ; while ( current != STRING0 ) { - String elemName = STRING1 + i ++ ; + String elemName = String . valueOf ( i ++ ) ; Object elem = parse ( elemName ) ; doCallback ( elemName , elem ) ; <nb> public class BasicBSONList extends ArrayList <...
remove the allocation and use of StringBuilders
<nb> public abstract class AbstractProtocolHandler implements ProtocolHandler , } rgOname = new ObjectName ( domain + STRING0 + getName ( ) ) ; - Registry . getRegistry ( null , null ) . registerComponent ( getHandler ( ) , - rgOname , null ) ; + Registry . getRegistry ( null , null ) . registerComponent ( ...
Register the correct object after the refactoring
<nb> public class TestWithNetworkConnections { peer . addEventListener ( new AbstractPeerEventListener ( ) { @ override public void onPeerDisconnected ( Peer p , int peerCount ) { - if ( ! doneConnecting . get ( ) ) - thisThread . interrupt ( ) ; + synchronized ( doneConnecting ) { + if ( ! doneConnecting...
Fix race in TestWithNetworkConnections
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; public class Wtsapi32Test extends TestCase { - private long peer = NUMBER0 ; + private final long peer ; - private HWND hwnd ; + private final ...
allow platform project to compile on non windows jvm
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class DefaultResourceLoader implements ResourceLoader { @ override public Resource getResource ( String location ) { Assert . notNull ( location , STRING0 ) ; - if ( location . startsWith ( CLASSPATH_URL_PREFIX ) ) { + if ( loc...
Optimized DefaultResourceLoader s getResource implementation for paths not relying on URL parsing exceptions for such a common case anymore
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class OGraphCommandExecutorSQLFactory implements OCommandExecutorSQLFacto final ODatabaseDocumentTx graphDb = result . getRawGraph ...
fixed problem on commands when reusing a graph instance with an active tx
<nb> public class NotificationsProcessingService extends Service { jsonObject = jsonArray . getJSONObject ( NUMBER0 ) ; } } - mNote = new Note . Schema ( ) . build ( mNoteId , jsonObject ) ; + mNote = new Note ( mNoteId , jsonObject ) ; } catch ( JSONException e ) { AppLog . e ( AppLog . T . NOTIFS , e ...
fixed old references
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT COMMENT - + @ deprecated public class StandardClassLoader extends URLClassLoader implements StandardClassLoaderMBean { <nb> package NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT COMMENT + @ deprecated public interf...
Deprecated the StandardClassLoader since it is just a normal
<nb> public class GenericPatchApplier { if ( i < j ) { SINGLE SINGLE - assert j - i == NUMBER0 && cntStart > NUMBER1 ; + assert cntStart > NUMBER1 ; final MyAppliedData newData = new MyAppliedData ( new ArrayList < String > ( list . subList ( cntStart - NUMBER0 , endSize ) ) , value . isHaveAlreadyApplied...
apply patch fix
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class OperationParkerImpl implements OperationParker , LiveOperationsTrack threadGroup . getThreadNamePrefix ( STRING0 ) ) ) ; ...
Add probes to OperationParker
<nb> public class OpmlImportFromIntentActivity extends OpmlImportBaseActivity { getSupportActionBar ( ) . setDisplayHomeAsUpEnabled ( true ) ; Uri uri = getIntent ( ) . getData ( ) ; + if ( uri . toString ( ) . startsWith ( STRING0 ) ) { + uri = Uri . parse ( STRING1 + uri . toString ( ) ) ; + } importUri...
Fix URI containing absolute path
<nb> public class UidFilter extends Filter { } } + public Term [ ] getTerms ( ) { + return this . uids ; + } + SINGLE SINGLE SINGLE
add getTerms for uid filter
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ExtensionManager { SINGLE } + COMMENT + COMMENT + COMMENT + public synchronized void requestActions ( Episode epi...
Add methods for requesting actions for episodes
<nb> public class Solo { asserter . assertMemoryNotLow ( ) ; } - - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - - public void assertLowMemory ( ) - { - asserter . assertMemoryNotLow ( ) ; - } - COMMENT COMMENT <nb> public class Solo { COMMENT - COMMENT - ...
Removed deprecated methods
<nb> package NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT public interface ArgumentResolver { COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT ...
Add additional documentation to ArgumentResolver
<nb> public class ConnectTransportException extends ActionTransportException { } public ConnectTransportException ( DiscoveryNode node , String msg , String action , Throwable cause ) { - super ( node . name ( ) , node . address ( ) , action , cause ) ; + super ( node . name ( ) , node . address ( ) , action ...
add message to connect transport failure exception
<nb> public class AndroidAnnotationProcessor extends AbstractProcessor { Iterator < ? extends TypeElement > iterator = annotations . iterator ( ) ; if ( iterator . hasNext ( ) ) { Element element = roundEnv . getElementsAnnotatedWith ( iterator . next ( ) ) . iterator ( ) . next ( ) ; - LOGGER . error ( STRING0...
Fix silent exceptions on elements
<nb> public class CollabEditStartedEvent extends GwtEvent < CollabEditStartedEvent . Hand public final native String getPath ( ) COMMENT COMMENT COMMENT ; + + public final native boolean isMaster ( ) COMMENT + COMMENT + COMMENT ; } public interface Handler extends EventHandler
add master indicator to collab started event
<nb> public class MUCRoomImpl implements MUCRoom { throw new UserNotFoundException ( ) ; } - public MUCRole getOccupantByFullJID ( String jid ) throws UserNotFoundException { + public MUCRole getOccupantByFullJID ( JID jid ) throws UserNotFoundException { MUCRole role = occupantsByFullJID . get ( jid ) ; ...
Fixed small memory leaking in occupantsByFullJID
<nb> public final class ActivityManagerService extends ActivityManagerNative } private boolean handleAppCrashLocked ( ProcessRecord app ) { + if ( mHeadless ) { + Log . e ( TAG , STRING0 + app . processName ) ; + return false ; + } long now = SystemClock . uptimeMillis ( ) ; Long crashTime ;
Disable app crashed dialog on headless builds
<nb> public class Leg { COMMENT @ xmlattribute public String routeColor = null ; + + COMMENT + COMMENT + COMMENT + COMMENT + @ xmlattribute + public String routeId = null ; COMMENT COMMENT <nb> public class PlanGenerator { leg . routeLongName = trip . getRoute ( ) . getLongName ( ) ; leg...
Add routeId in the Leg for responses in the API
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
remove unused import
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + public class ModelMetricsBinomialV3 < I extends ModelMetricsBinomial , S extends ModelMetricsBinomialV3 < I , S > > extends ModelMetricsBase < I , S > { SINGLE SINGLE <nb> public class ModelMetricsBinomialV3 < I exten...
Remove extra row containing idx in AUC two dim table
<nb> package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - SINGLE - @ suppresslint ( STRING0 ) - public class RequestManager implemen...
Avoid ClassNotFoundException in RequestTracker
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import static NAMESPACE ; <nb> public class ClobColumnDefTest { } @ test + public void generate_sql_type_on_postgre ( ) throws Exception { + assertThat ( underTest . generateSqlType ( new Post...
fixing coverage of ClobColumnDef
<nb> public final class GrailsDomainBinder { typeName = type . getName ( ) ; } } - if ( typeName == null ) throw new MappingException ( STRING0 + typeName + STRING1 ) ; + if ( typeName == null ) { + String domainName = property . getDomainClass ( ) . getName ( ) ; + throw new MappingException ( STRING2 + ...
Add source property information to determine cause of MappingException
<nb> public class ChangeListManagerImpl extends ChangeListManagerEx implements Projec synchronized ( myDataLock ) { final List < LocalChangeList > listCopy = getChangeListsCopy ( ) ; if ( ! listCopy . isEmpty ( ) ) { - ApplicationManager . getApplication ( ) . getMessageBus ( ) . syncPublisher ( LISTS_LOADED ) ...
Use project level message bus so we don t leak on application level
<nb> public class LogReader extends LogBufferPartition { int framesCounter = NUMBER0 ; int offset = this . offset ; - final int capacity = capacity ( ) ; - final UnsafeBuffer termBuffer = termBuffer ( ) ; final Header header = this . header ; + final UnsafeBuffer termBuffer = termBuffer ( ) ; + final in...
Read capacity from term buffer in log reader for effeciency
<nb> public class ExponentialBackoffMsgRetryManager implements FailedMsgRetryManager MessageRetryRecord record = this . records . get ( offset ) ; return ! ( record != null && this . retryLimit > NUMBER0 && - this . waiting . contains ( record ) && this . retryLimit <= record . retryNum ) ; }
Fix cap retry bug
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class EjbRefProcessor extends AbstractDeploymentDescriptorBindingsProcess } else if ( ! isEmpty ( ejbName ) ) { SINGLE final Se...
Fix ejb local ref processing regression introduced with WS integration
<nb> public class ExecutionEngine COMMENT COMMENT COMMENT + COMMENT COMMENT COMMENT COMMENT
Added missing javadoc
<nb> public class SessionManager extends BasicModule { Session defaultSession = null ; try { SessionMap sessionMap = sessions . get ( session . getUsername ( ) ) ; + if ( sessionMap == null ) { + Log . warn ( STRING0 + STRING1 + session ) ; + } SINGLE sessionMap . sessionAvailable ( session ) ; defaul...
Added more logging information
<nb> public class SuperKoalio extends GdxTest { renderKoala ( deltaTime ) ; } - private Vector2 tmp = new Vector2 ( ) ; - private void updateKoala ( float deltaTime ) { if ( deltaTime == NUMBER0 ) return ; koala . stateTime += deltaTime ;
Remove unused but instantiated Vector2
<nb> public class TestEnsurePath public Void call ( ) throws Exception { startedLatch . countDown ( ) ; - Assert . assertTrue ( startedLatch . await ( NUMBER0 , TimeUnit . SECONDS ) ) ; ensurePath . ensure ( curator ) ; finishedLatch . countDown ( ) ; return null ;
Revert Esure that testSimultaneous really is simultaneous
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + package NAMESPACE ; import NAMESPACE ;
Missing copyright statement
<nb> public class DatabaseUtils { } - public static boolean doesHashExist ( ContentResolver resolver , Uri queryUri , + public static boolean doesAvatarHashExist ( ContentResolver resolver , Uri queryUri , String jid , String hash ) { StringBuilder buf = new StringBuilder ( Imps . Avatars . CONTACT ) ; ...
Fix cursor leak in avatar hash checking
<nb> public class SyncStorageEngine extends Handler { syncs = new ArrayList < SyncInfo > ( ) ; mCurrentSyncs . put ( userId , syncs ) ; } - return new ArrayList < SyncInfo > ( syncs ) ; + return syncs ; } }
Fix sync tests failure
<nb> public class SessionManager extends BasicModule { try { ComponentSession session = ( ComponentSession ) handback ; SINGLE - InternalComponentManager . getInstance ( ) . removeComponent ( session . getAddress ( ) . getDomain ( ) ) ; + String domain = session . getAddress ( ) . getDomain ( ) ; + String s...
Fixed removal of external components
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; public class RealmAsyncQueryTests extends InstrumentationTestCase { <nb> public class RealmAsyncQueryTests extends InstrumentationTestCase { private static final int ADVANCE_ONE_REA...
removed unused import
<nb> public class PApplet implements PConstants { SINGLE Toolkit . getDefaultToolkit ( ) . setDynamicLayout ( true ) ; + SINGLE + System . setProperty ( STRING0 , STRING1 ) ; + if ( args . length < NUMBER0 ) { System . err . println ( STRING2 ) ; System . err . println ( STRING3 ) ;
enable system proxies in PApplet
<nb> public interface BaseMod extends IWorldGenerator , IPickupNotifier , IDispenseHand COMMENT boolean doTickInGame ( TickType tick , boolean b , Object minecraftInstance , Object . . . data ) ; - filbethwetrmnhino COMMENT COMMENT COMMENT
Revert Test failing build
<nb> public class LogicOperatorExprToken extends OperatorExprToken { @ override public Token getLast ( ) { + if ( rightValue == null ) { + return null ; + } + Token token = rightValue . getLast ( ) ; + if ( token instanceof ExprToken ) return ( ( ExprToken ) token ) . getLast ( ) ;
Fix npe in syntax analyzer in logic operators
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ONetworkProtocolHttpKVLocal extends ONetworkProtocolHttpKV { try { db = OSharedDatabase . acquireDatabase ( dbName...
Fixed issue on retrieving db local K V
<nb> public final class Config { return ( ENCRYPTION_MASK & OPENPGP ) != NUMBER0 ; } - public static boolean supportOpenPgpOnly ( ) { - return supportOpenPgp ( ) && ! multipleEncryptionChoices ( ) ; - } - public static boolean supportOtr ( ) { return ( ENCRYPTION_MASK & OTR ) != NUMBER0 ; }
removed unused config variable
<nb> public class PluginsTest { SINGLE STRING0 , + SINGLE + STRING1 , + SINGLE STRING2 , STRING3 , STRING4 ) ;
Exclude FxCop plugin from ITs since it is interefing with C and VBdotNet plugins
<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 ; COMMENT COMMENT <nb> public...
Data transfer UI fix bad performance for long SQL queries
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class AceEditor implements DocDisplay , @ override public void run ( ) { - Debug . logToConsole ( STRING0 + row_ ) ; if ( row_ >= editor . get...
remove debug logging
<nb> public class RotationFourDemo extends Activity { } } ) ; + restoreMe ( savedInstanceState ) ; + viewButton . setEnabled ( contact != null ) ; } <nb> public class RotationFourDemo extends Activity { } } } + + @ override + protected void onSaveInstanceState ( Bundle outState ) { + sup...
Added smarts to save state since is still needed for this sample
<nb> public class LightClassReference extends LightElement implements PsiJavaCodeRefe @ notnull public JavaResolveResult advancedResolve ( boolean incompleteCode ) { final PsiElement resolved = resolve ( ) ; + if ( resolved == null ) { + return JavaResolveResult . EMPTY ; + } PsiSubstitutor substitutor = ...
Do not optimize imports that cannot be resolved in JSP
<nb> public class ImportOrderCheckTest extends BaseCheckTestSupport { @ test ( expected = IllegalStateException . class ) public void testVisitTokenSwitchReflection ( ) throws Exception { - ImportOrderOption C = PowerMockito . mock ( ImportOrderOption . class ) ; - Whitebox . setInternalState ( C , STRING0 , ...
Fix local variable name in test code
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class WebView extends AbsoluteLayout mZoomScale = NUMBER0 ; if ( mNeedToAdjustWebTextView ) { mNeedToAdjustWebTextView = false ...
Adjust the WebTextView s text size according to density
<nb> class PureFunctionIdentifier implements CompilerPass { } } } else { + SINGLE + SINGLE + SINGLE - throw new IllegalStateException ( STRING0 + lhs ) ; + SINGLE + SINGLE + SINGLE + sideEffectInfo . setTaintsUnknown ( ) ; } }
remove an throw I added and revert the
<nb> public class AccountManagerService if ( sharedAccounts == null || sharedAccounts . length == NUMBER0 ) return unfiltered ; String requiredAccountType = STRING0 ; try { - for ( String packageName : packages ) { - PackageInfo pi = mPackageManager . getPackageInfo ( packageName , NUMBER0 ) ; + SINGLE + ...
Fix account filtering for specific package name
<nb> public abstract class AbstractExpandableItemsHandler < KeyType , ComponentType exte if ( selected == null || ! myComponent . isEnabled ( ) || ! myComponent . isShowing ( ) + || ! myComponent . getVisibleRect ( ) . intersects ( getVisibleRect ( selected ) ) || ! myComponent . isFocusOwner ( ) && ! process...
hide table list item hint when item is obscure
<nb> public class ReaderIconCountView extends LinearLayout { } public void setCount ( int count ) { - switch ( mIconType ) { - case ICON_LIKE : - mTextCount . setText ( ReaderUtils . getShortLikeLabelText ( getContext ( ) , count ) ) ; - break ; - case ICON_COMMENT : - mTextCount . setText ( ReaderUti...
Remove text from like comment labels