diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class CombinedChart extends BarLineChartBase < CombinedData > implements Com COMMENT private boolean mDrawBarShadow = false ; - protected DrawOrder [ ] mDrawOrder = new DrawOrder [ ] { - DrawOrder . BAR , DrawOrder . BUBBLE , DrawOrder . LINE , DrawOrder . CANDLE , DrawOrder . SCATTER - } ; + ...
Added back missing new CombinedChartRenderer
<nb> public interface IPowerReceptor { public PowerReceiver getPowerReceiver ( ForgeDirection side ) ; COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix typo in javadocs
<nb> public class Deodexerant { } TypeIdItem classTypeItem = resolveTypeOrSupertype ( classType ) ; + if ( classTypeItem == null ) { + return null ; + } String fieldName = parts [ NUMBER0 ] ; String fieldType = parts [ NUMBER1 ] ; <nb> public class Deodexerant { superclassDescriptor = lookupSuperc...
Fix possible NPE
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; + impo...
Fix test dependencies where DeleteRequest was pulled from Zookeeper
<nb> public class MapReduceTest for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) { expectedResult += i ; } + expectedResult = ( int ) ( ( double ) expectedResult / NUMBER1 ) ; assertEquals ( expectedResult , ( int ) future . get ( ) ) ; }
Fixed expected values for unittest
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public class LoadDatasets extends Job { + public class LoadDatasets extends TestUtil { + private static class MyJob extends Job { @ override public void execImpl ( ) { new LoadDatasets ( ) . load ( ) ; } } public static void main ( String [ ] args ) throws...
Fix LoadDatasets java to adapt to new core
<nb> public class QuantileTest extends TestUtil { } } - @ test public void testWeights2 ( ) { + @ ignore @ test public void testWeights2 ( ) { SINGLE QuantileModel kmm1 ; QuantileModel kmm2 ; Frame fr1 = null ; <nb> public class QuantileTest extends TestUtil { } } - @ test public void testWeig...
Ignore JUnits for weighted quantile that are different from R s wtd quantile s behavior
<nb> import NAMESPACE ; @ ignore @ basetype abstract public class BaseObject implements IObject { - protected final ArrayMemory __dynamicProperties__ ; + protected ArrayMemory __dynamicProperties__ ; protected ClassEntity __class__ ; protected final WeakReference < Environment > __env__ ; <nb> abstrac...
Fix NPE in BaseObject getProperties
<nb> public class OperationSetAdHocMultiUserChatIcqImpl COMMENT COMMENT COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class OperationSetAdHocMultiUserChatYahooImpl COMMENT COMMENT COMMENT - COMMENT - COMMENT COMMENT COMMENT COMMENT <nb> public class OperationSetAdHocMultiUserCh...
Fixes some javadoc warnings on previously committed classes
<nb> public class BpmnParse extends Parse { boolean isExecutable = Boolean . parseBoolean ( isExecutableStr ) ; if ( ! isExecutable ) { processProcess = false ; + LOGGER . info ( STRING0 + processElement . attribute ( STRING1 ) + STRING2 ) ; } }
Added log message when ignoring a non executable process
<nb> public class JaxyRoutes implements ApplicationRoutes { COMMENT COMMENT COMMENT - private Set < URL > getPackagesToScanForRoutes ( ) { + public Set < URL > getPackagesToScanForRoutes ( ) { Set < URL > packagesToScanForRoutes = Sets . newHashSet ( ) ;
Make method to return package scanning paths public to be overwritten
<nb> import NAMESPACE ; import NAMESPACE ; public final class ObjectNode { - - private static final Logger LOG = Logger . getInstance ( STRING0 ) ; + private static final Logger LOG = Logger . getInstance ( STRING1 ) ; private ObjectTree myTree ; <nb> import NAMESPACE ; import NAMESPACE ; publ...
jsf designer Further implementation of d d
<nb> public class AbstractTreeUi { boolean notRequiredToUpdateChildren = ! forcedNow && ! wasExpanded ; if ( notRequiredToUpdateChildren && forceUpdate && ! wasExpanded ) { - notRequiredToUpdateChildren = getBuilder ( ) . isAlwaysShowPlus ( descriptor ) ; + boolean alwaysPlus = getBuilder ( ) . isAlwaysShowPl...
insert new element for node which is to always show plus
<nb> class UriPermission { uri = _uri ; } - void clearModes ( int modeFlags ) { - if ( ( modeFlags & Intent . FLAG_GRANT_READ_URI_PERMISSION ) != NUMBER0 ) { + void clearModes ( int modeFlagsToClear ) { + if ( ( modeFlagsToClear & Intent . FLAG_GRANT_READ_URI_PERMISSION ) != NUMBER0 ) { globalModeFlags ...
Fix name shadowing bug with revoking URI permissions
<nb> public abstract class AbstractAuthenticationSupportedRepository extends Abstract } else if ( credentials instanceof PasswordCredentials ) { return Cast . uncheckedCast ( credentials ) ; } else { - throw new IllegalStateException ( STRING0 ) ; + throw new IllegalStateException ( STRING1 ) ; } }
Fix typo in exception message
<nb> public class CopyToMapperIntegrationTests extends ElasticsearchIntegrationTest { client ( ) . admin ( ) . indices ( ) . prepareCreate ( STRING0 ) . addMapping ( STRING1 , createDynamicTemplateMapping ( ) ) ) ; - ensureGreen ( STRING0 ) ; int recordCount = between ( NUMBER0 , NUMBER1 ) ;
Remove waiting for green in CopyToMapperIntegrationTests
<nb> public class PrivacyManager { } SINGLE - if ( ! XActivityManagerService . isSystemReady ( ) ) + if ( uid == cAndroidUid && ! XActivityManagerService . isSystemReady ( ) ) context = null ; SINGLE
Check system ready only for Android
<nb> public class HelixBrokerStarter { private static final String TABLES_KEY = STRING0 ; private static final String PROPERTY_STORE = STRING1 ; - private final HelixManager _helixManager ; SINGLE + private final HelixManager _helixManager ; private final HelixAdmin _helixAdmin ; private final ZkClient _z...
Adding shutdown api HelixBrokerStarter
<nb> public class BackspaceHandler extends EditorActionHandler { } } else { + lookup . setAdditionalPrefix ( lookup . getAdditionalPrefix ( ) ) ; SINGLE lookup . hide ( ) ; }
backspace in lookup shouldn t undo common prefix
<nb> public class LocalTimeServerHandler extends SimpleChannelHandler { setMonth ( calendar . get ( MONTH ) + NUMBER0 ) . setDayOfMonth ( calendar . get ( DAY_OF_MONTH ) ) . setDayOfWeek ( DayOfWeek . valueOf ( calendar . get ( DAY_OF_WEEK ) ) ) . - setHour ( calendar . get ( HOUR ) ) . + setHour ( calendar ....
Fixed an incorrect hour calculation in localtime server example
<nb> public abstract class Mode { public void showExamplesFrame ( ) { if ( examplesFrame == null ) { - examplesFrame = new JFrame ( getTitle ( ) + STRING0 + Language . text ( STRING1 ) ) ; + examplesFrame = new JFrame ( getTitle ( ) + STRING0 + Language . text ( STRING2 ) ) ; Toolkit . setIcon ( examplesFra...
Fix examples window title Language key
<nb> public class XPrivacyProvider extends ContentProvider { return mc ; } else if ( sUriMatcher . match ( uri ) == TYPE_LASTUSE && selectionArgs . length == NUMBER0 ) { SINGLE - int uid = Integer . parseInt ( selectionArgs [ NUMBER0 ] ) ; + int uid = Integer . parseInt ( selectionArgs [ NUMBER1 ] ) ; Matri...
Fix privacy provider
<nb> public class XConnectivityManager extends XHook { @ override protected void before ( MethodHookParam param ) throws Throwable { - if ( isRestricted ( param ) ) - if ( param . method . getName ( ) . equals ( STRING0 ) ) - param . setResult ( new NetworkInfo [ NUMBER0 ] ) ; - else - param . setResult...
Move connectivity manager hook processing to after
<nb> public class GrailsCoreDependencies { DependencyConfigurationConfigurer rootDelegate = ( DependencyConfigurationConfigurer ) getDelegate ( ) ; rootDelegate . log ( STRING0 ) ; + + SINGLE + rootDelegate . repositories ( new Closure ( this , GrailsCoreDependencies . this ) { + public Object doCall ( ) ...
revert removal of default grailsHome repo
<nb> public class PhoneStatusBar extends BaseStatusBar implements DemoMode , } @ override - public void updateNotification ( StatusBarNotification notification ) { - super . updateNotification ( notification ) ; + public void updateNotificationInternal ( StatusBarNotification notification , Ranking ranking ...
Fix bug where ZEN d notification wasn t updated
<nb> public class Solo { View viewToReturn = getter . getView ( id , index ) ; if ( viewToReturn == null ) { + String resourceName = STRING0 ; + try { + resourceName = this . getCurrentActivity ( ) . getApplication ( ) . getResources ( ) . getResourceEntryName ( id ) ; + } catch ( Exception e ) { + Log ...
getView include resource name in the assert if we cannot find a view
<nb> public class ShowsActivity extends BaseActivity implements AbsListView . OnScrollL private static final int VER_TRAKT_SEC_CHANGES = NUMBER0 ; + private static final int VER_SUMMERTIME_FIX = NUMBER1 ; + private Bundle mSavedState ; private FetchPosterTask mArtTask ; <nb> public class ShowsActivity...
Reset all shows last update time to force them getting included in the
<nb> public class Capsule implements Runnable , InvocationHandler { clearContext ( ) ; if ( ( AGENT || capsule . isEmptyCapsule ( ) ) && args != null && ! args . isEmpty ( ) ) { processCmdLineOptions ( args , ManagementFactory . getRuntimeMXBean ( ) . getInputArguments ( ) ) ; - if ( ! args . isEmpty ( ) ) ca...
Remove redundant check
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> COMMENT package NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPA...
unignore tests optimize imports
<nb> public abstract class AbstractDistributedObject < S extends RemoteService > impleme private void lifecycleCheck ( final NodeEngine engine ) { if ( engine == null || ! engine . isActive ( ) ) { - throw throwNotActiveException ( ) ; + throwNotActiveException ( ) ; } } - protected RuntimeException t...
Removed redundant throw and unused return value
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import static NAMESPACE ; @ ignore - public class DebuggingTestCasesTest { + public class DebuggingTestCasesTest extends TestBase { IMethods mock = mock ( IMethods . class ) ; IMethods mockTwo...
Fixed PMD problem
<nb> public final class HlsMediaPlaylist { @ override public int compareTo ( Long startTimeUs ) { - return ( int ) ( this . startTimeUs - startTimeUs ) ; + return this . startTimeUs > startTimeUs ? NUMBER0 : ( this . startTimeUs < startTimeUs ? - NUMBER0 : NUMBER1 ) ; } }
Fix overflow when comparing HLS Segments for long videos
<nb> public class TwoWayView extends AdapterView < ListAdapter > implements SINGLE SINGLE SINGLE - if ( getHeight ( ) > NUMBER0 && getChildCount ( ) > NUMBER0 ) { + if ( getWidth ( ) > NUMBER0 && getHeight ( ) > NUMBER0 && getChildCount ( ) > NUMBER0 ) { layoutChildren ( ) ; }
library Check width as well as height for triggering layout
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> class WidgetHelper { } else if ( TextUtils . equals ( section , context . getString ( R . string . pref_widget_section_value_best ) ) ) { title = context . getString ( R . st...
Fix legacy widget
<nb> public class TestMetaContactList = ( MockContactGroup ) MclSlickFixture . mockPresOpSet . getServerStoredContactListRoot ( ) ; - logger . debug ( STRING0 ) ; + logger . info ( STRING0 ) ; - logger . debug ( STRING1 + expectedRoot . getGroupName ( ) + logger . info ( STRING1 + expectedRoot . getGrou...
Adds some logging to investigate failing builds
<nb> public final class HttpRemoteTask COMMENT COMMENT COMMENT - void failTask ( Throwable cause ) + private void failTask ( Throwable cause ) { TaskStatus taskStatus = getTaskStatus ( ) ; if ( ! taskStatus . getState ( ) . isDone ( ) ) {
Fix intellij warning
<nb> public class HTTPServer extends Server { final HTTPServerConfig config = new HTTPServerConfig ( args ) ; try { final HTTPServer server ; - System . out . println ( STRING0 + HTTPSServer . class . getName ( ) + STRING1 ) ; + System . out . println ( STRING2 + HTTPSServer . class . getName ( ) + STRING3 ) ...
improve message because SSL is nowadays TLS
<nb> public class LocalTransport extends AbstractLifecycleComponent < Transport > implem for ( final LocalTransport targetTransport : transports . values ( ) ) { for ( final Map . Entry < DiscoveryNode , LocalTransport > entry : targetTransport . connectedNodes . entrySet ( ) ) { if ( entry . getValue ( ) == this...
don t execute it on a thread pool
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class CardinalityAggregatorFactory implements AggregatorFactory @ override public AggregatorFactory getCombiningFactory ( ) { ...
fix cardinality combining factory
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
removed unused imports
<nb> final class DisplayPowerController implements AutomaticBrightnessController . Call if ( mPendingScreenOff && target != Display . STATE_OFF ) { setScreenState ( Display . STATE_OFF ) ; mPendingScreenOff = false ; + mPowerState . dismissColorFade ( ) ; } if ( target == Display . STATE_ON ) { <nb> fin...
Dismiss color fade when it is no longer used
<nb> public class MediaRecorderTest extends ActivityInstrumentationTestCase < MediaFram assertTrue ( STRING0 , isTestInvalidVideoSizeSuccessful ) ; } + @ suppress @ largetest public void testInvalidFrameRate ( ) throws Exception { boolean isTestInvalidFrameRateSuccessful = false ;
Suppressed the invalidFrameRate as the framework is not throwing the IOException anymore
<nb> public class AsyncWriteEngine extends EngineWrapper implements Engine { closeInProgress = true ; SINGLE if ( ! action . compareAndSet ( null , new CountDownLatch ( NUMBER0 ) ) ) throw new InternalError ( ) ; - super . delete ( newRecids . take ( ) , Serializer . EMPTY_SERIALIZER ) ; + Long last = newReci...
Fix deadlock while closing AsyncWriteEngine
<nb> public class PrivacyManager { static { List < String > listRestriction = getRestrictions ( ) ; - for ( Hook hook : Meta . get ( ) ) { + List < Hook > listHook = Meta . get ( ) ; + for ( Hook hook : listHook ) { String restrictionName = hook . getRestrictionName ( ) ; SINGLE <nb> public class Pr...
Log number of restrictions
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
fixed rebase error
<nb> public class Time { COMMENT COMMENT public boolean parse3339 ( String s ) { + if ( s == null ) { + throw new NullPointerException ( STRING0 ) ; + } if ( nativeParse3339 ( s ) ) { timezone = TIMEZONE_UTC ; return true ;
Throw NPE if s is null
<nb> public class RequestServer extends NanoHTTPD { } if ( api_name == null ) - api_name = handler_class + STRING0 + handler_method ; + api_name = handler_class . getSimpleName ( ) + STRING0 + handler_method ; if ( seenApiNames . contains ( api_name ) ) throw H2O . fail ( STRING1 + api_name + STRING2 ) ; ...
Fix a bug in creation of default api_name
<nb> import NAMESPACE ; COMMENT COMMENT public abstract class Address { + COMMENT COMMENT COMMENT COMMENT COMMENT public abstract String getAddress ( ) ; - - COMMENT - public String getContactName ( ) { - String name = getFullName ( ) ; - String [ ] split = name . split ( STRING0 , NUMBER0...
update core Address object to understand resources
<nb> public class ReactToolbarManager extends ViewGroupManager < ReactToolbar > { @ reactprop ( name = STRING0 ) public void setRtl ( ReactToolbar view , boolean rtl ) { - view . setLayoutDirection ( rtl ? LayoutDirection . LTR : LayoutDirection . RTL ) ; + view . setLayoutDirection ( rtl ? LayoutDirection . ...
Fixed reverse logic in ReactToolbarManager setRtl
<nb> public abstract class ConnectionService extends Service { COMMENT COMMENT COMMENT + COMMENT + COMMENT COMMENT public Connection onCreateUnknownConnection ( PhoneAccountHandle connectionManagerPhoneAccount , ConnectionRequest request ) {
Fix build break
<nb> public class HttpClientHelper implements Closeable { return response ; } - private CloseableHttpClient getClient ( ) { + private synchronized CloseableHttpClient getClient ( ) { if ( client == null ) { - initializeClient ( ) ; + HttpClientBuilder builder = HttpClientBuilder . create ( ) ; + build...
Revert Only synchronize client access when initializing
<nb> public final class MotionEvent implements Parcelable { if ( mHistory != null ) { float [ ] history = mHistory ; int length = history . length ; - for ( int i = NUMBER0 ; i < length ; i ++ ) { + for ( int i = NUMBER0 ; i < length ; i += NUMBER1 ) { history [ i ] *= scale ; + history [ i + NUMBER2 ] *=...
don t use modulo
<nb> public class View implements Drawable . Callback , KeyEvent . Callback , } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public AccessibilityDelegate getAccessibilityDelegate ( ) { + return mAccessibilityDelegate ; + } + + COMMENT COMMENT COMMENT ...
Don t overwrite accessibility delegates in AbsListView items
<nb> import NAMESPACE ; COMMENT COMMENT public class MapUtils { + + private MapUtils ( ) { + } public static < K , V extends Comparable < ? super V > > Map < K , V > sortByValue ( Map < K , V > map , final boolean desc ) { List < Map . Entry < K , V > > list = new LinkedList < > ( map . entrySet ( ) )...
Added private constructor
<nb> final class ImageFileEditorImpl extends UserDataHolderBase implements ImageFileE SINGLE ZoomOptions zoomOptions = editorOptions . getZoomOptions ( ) ; + SINGLE + zoomModel . setZoomFactor ( FLOAT0 ) ; + if ( zoomOptions . isSmartZooming ( ) ) { Dimension prefferedSize = zoomOptions . getPrefferedSi...
Fix zoom bug
<nb> import NAMESPACE ; public class DateTimeType implements PrimitiveType , State { - final static SimpleDateFormat DATE_FORMATTER_WITH_TZ = new SimpleDateFormat ( STRING0 ) ; - final static SimpleDateFormat DATE_FORMATTER = new SimpleDateFormat ( STRING1 ) ; + public final static SimpleDateFormat DATE_FOR...
Revert changed modifier
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class WebConfigurationModelData extends AbstractExternalEntityData { private static final long serialVersionUID = NUMBER0 ...
create artifacts after later after all module customizations were applied e g by android module customizers
<nb> public final class CollapsePropertiesTest extends CompilerTestCase { STRING0 ) ; } - public void testObjLitDeclarationWithDuplicateKeys ( ) { - disableNormalize ( ) ; - test ( STRING1 , - STRING2 ) ; - } - public void testObjLitAssignmentDepth1 ( ) { test ( STRING3 , STRING4 ) ;
Remove obsolete test
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT COMMENT + @ smalltest public class HardwareServicePermissionTest extends TestCase { private IHardwareService mHardwareService ;
Add smalltest annotation to HardwareServicePermissionTest
<nb> public class BlurTask { private BlurFactor factor ; private Bitmap capture ; private Callback callback ; - private static ExecutorService THREAD_POOL ; - - static { - THREAD_POOL = - Executors . newFixedThreadPool ( Math . max ( NUMBER0 , Runtime . getRuntime ( ) . availableProcessors ( ) ) ) ; -...
change the type of ThreadPool
<nb> public class EnglishGrammaticalRelations { public static final GrammaticalRelation RELATIVE = new GrammaticalRelation ( Language . English , STRING0 , STRING1 , RelativeGRAnnotation . class , COMPLEMENT , STRING2 , tregexCompiler , - new String [ ] { - STRING3 + new String [ ] { + SINGLE + STRING4 ...
Don t trigger rel for time expressions such as who yesterday cooked dinner as those should be nsubj
<nb> public class DefaultBuildConfigurer implements BuildConfigurer { public void configure ( GradleInternal gradle ) { if ( gradle . getStartParameter ( ) . isConfigureOnDemand ( ) ) { - LOG . lifecycle ( STRING0 ) ; + LOG . lifecycle ( STRING1 ) ; gradle . addProjectEvaluationListener ( new ImplicitTasksC...
Tweaked the message for configuration on demand mode
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT COMMENT public class WebAuthenticationDetails implements Serializable { SINGLE <nb> public class WebAuthenticationDetails implements Serializable { HttpSession session = request . getSession ( false ) ; this . sessionId = ( session != null ...
Removed WebAuthenticatioDetails doPopulateAdditionalInformation method which is caled from superclass constructor
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ObjectId implements Comparable < ObjectId > , java . io . Serializable { } cat...
using SecureRandom to introduce more randomness for first number since we only use one
<nb> public class ServerSentEvents implements Renderable { response . getHeaders ( ) . add ( HttpHeaderConstants . CONTENT_TYPE , HttpHeaderConstants . TEXT_EVENT_STREAM_CHARSET_UTF_8 ) ; response . getHeaders ( ) . add ( HttpHeaderConstants . CACHE_CONTROL , HttpHeaderConstants . NO_CACHE_FULL ) ; response . get...
Don t force close SSE connections
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import static NAMESPACE ; final class RealWebSocketCall implements WebSocketCall { + private static final List < ...
Remove connection read write timeouts for web sockets
<nb> public class PluginRequestHelperTest { } ) ; fail ( STRING0 ) ; } catch ( Exception e ) { - assertThat ( e . getMessage ( ) , is ( STRING1 ) ) ; - assertThat ( e . getCause ( ) . getMessage ( ) , is ( STRING2 ) ) ; + assertThat ( e . getMessage ( ) , is ( STRING3 ) ) ; + assertThat ( e . getCause ( )...
Missed a test
<nb> public abstract class LanguagePerFileConfigurable < T > implements SearchableConfig private final String myTreeTableTitle ; private final String myOverrideQuestion ; private final String myOverrideTitle ; - private final AbstractFileTreeTable < T > myTreeView ; + private AbstractFileTreeTable < T > myTre...
do not create JTableModel that requires DirectoryIndex during component instantiation
<nb> public class SNote implements Serializable { private String convertContentToEvernote ( ) { String evernoteContent = EvernoteUtil . NOTE_PREFIX - + getContent ( ) . replace ( STRING0 , STRING1 ) + + getContent ( ) . + replace ( STRING2 , STRING3 ) . + replace ( STRING4 , STRING5 ) . + replace ( STRI...
fix some of the escape character synchronization bug
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class FlatWelcomeFrameProvider implements WelcomeFrameProvider { } public static boolean isAvailable ( ) { - return Registry . is ( STRING0 ) || - Registry . is ( STRING1 ) - && ( PlatformUtils . isIntelliJ ( ) || PlatformUti...
make new welcome screen available in Rider and all others JetBrains IDEs
<nb> public class AsyncIOServletTest @ test public void testIsNotReadyAtEOF ( ) throws Exception { - String text = STRING0 ; + String text = STRING1 ; final byte [ ] data = text . getBytes ( StandardCharsets . ISO_8859_1 ) ; startServer ( new HttpServlet ( ) <nb> public class AsyncIOServletTest STRI...
added test for async IO isNotReadyAtEOF
<nb> public abstract class SIPCommFrame public void dispose ( ) { this . saveSizeAndLocation ( ) ; + + COMMENT + COMMENT + COMMENT + COMMENT + if ( bindings != null ) + bindings . deleteObserver ( this ) ; super . dispose ( ) ; }
Prevents the keybinding service from retaining SIPCommFrame e g ChatWindow
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> class ApiCli...
Manually encode double quotes in REST client ApiClientImpl
<nb> class IonDrawable extends Drawable { private int textureDim ; private int maxLevel ; public IonDrawable setBitmap ( BitmapInfo info , int loadedFrom ) { - this . loadedFrom = loadedFrom ; - if ( this . info == info ) return this ; - invalidateSelf ( ) ; - + cancel ( ) ; + this . loadedFrom ...
Fix recycling bug
<nb> public class JavaStackFrame extends XStackFrame { @ override public void computeChildren ( @ notnull final XCompositeNode node ) { + XStackFrame xFrame = getDescriptor ( ) . getXStackFrame ( ) ; + if ( xFrame != null ) { + xFrame . computeChildren ( node ) ; + return ; + } DebuggerContextImpl deb...
get nashorn frames this way until we integrate fully
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Give people who have never used UnmodifiableIterator before a hint
<nb> public interface ClassFileLocator extends Closeable { COMMENT COMMENT public static ClassFileLocator of ( JavaModule module ) { - return new ForModule ( module ) ; + return module . isNamed ( ) + ? new ForModule ( module ) + : ForClassLoader . of ( module . getClassLoader ( ) ) ; } @ override
Fixed test error
<nb> public class BeaconServiceTest { int activeThreadCountBeforeScan = executor . getActiveCount ( ) ; byte [ ] scanRecord = new byte [ NUMBER0 ] ; - android . bluetooth . BluetoothDevice device = getTestBluetoothDevice ( ) ; callback . onLeScan ( null , - NUMBER1 , scanRecord ) ; int activeThreadCountAf...
remove unneeded bluetoothDevice from test
<nb> public class Meta { String self = Meta . class . getPackage ( ) . getName ( ) ; for ( Hook hook : get ( ) ) { String name = hook . getRestrictionName ( ) + STRING0 + hook . getName ( ) ; - name = name . replace ( STRING1 , STRING0 ) . replace ( STRING2 , STRING0 ) ; + name = name . replace ( STRING1 , ST...
Replace in annotation names
<nb> class NewModelControllerImpl implements NewModelController { NewOperationContextImpl context = new NewOperationContextImpl ( this , controllerType , EnumSet . of ( NewOperationContextImpl . ContextFlag . ROLLBACK_ON_FAIL ) , handler , modelReference . get ( ) , control , bootingFlag . getAndSet ( false ) ) ; M...
Fix problem with response op handling
<nb> public class HelpID { private static final String RENAME_FIELD = STRING0 ; private static final String RENAME_VARIABLE = STRING1 ; private static final String RENAME_PARAMETER = STRING2 ; - private static final String RENAME_DIRECTORY = STRING3 ; + private static final String RENAME_DIRECTORY = STRING4 ;...
Rename directory help mapping corrected
<nb> public class TokenXMLPairMultiNamespaceSplitTest extends TokenXMLPairNamespaceSp assertMockEndpointsSatisfied ( ) ; } + public void testTokenXMLPair2 ( ) throws Exception { + SINGLE + } + + @ override protected String createBody ( ) { SINGLE
Add tokenizeXML to java dsl on value builder
<nb> public class PGraphicsOpenGL extends PGraphics { shape = kind ; inGeo . clear ( ) ; - SINGLE - setgetPixels = false ; - curveVertexCount = NUMBER0 ; breakShape = false ; defaultEdges = true ; <nb> public class PGraphicsOpenGL extends PGraphics { if ( ( flushMode == FLUSH_CONTINUOUSLY ) || (...
Moved pixels invalidation to endShape
<nb> public class NotificationManagerService extends SystemService { mNotificationList . remove ( index ) ; - cancelNotificationLocked ( r , sendDelete , reason ) ; cancelGroupChildrenLocked ( r , callingUid , callingPid , listenerName , REASON_GROUP_SUMMARY_CANCELED ) ; + cancelNotificationLocked ( r , s...
cancel group children before summaries
<nb> public class DeepWaterTest extends TestUtil { public static void scoreTestSet ( String path , int classes , ImageTrain m ) throws IOException { SINGLE - BufferedReader br = new BufferedReader ( new FileReader ( new File ( path + STRING0 ) ) ) ; SINGLE + BufferedReader br = new BufferedReader ( new FileRe...
Fix test list instructions
<nb> public class DeepLinkProcessor extends AbstractProcessor { . addParameter ( String . class , STRING0 ) . addStatement ( STRING1 , ANDROID_INTENT ) . addStatement ( STRING2 , DeepLinkHandler . class ) - . addStatement ( STRING3 , DeepLinkHandler . class , STRING4 ) + . addStatement ( STRING3 , + DeepLin...
Fixed checkstyle violation
<nb> package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class CommonStatsFlags implements Writeable , Cloneable { groups = in . readStringArray ( ) ; fieldDataFields = in . readStringArray ( ) ; completionDataFields = in . readStringArray ...
remove bw comp layer that s not needed in CommonStatsFlags
<nb> public class Stage extends InputAdapter implements Disposable { for ( int i = NUMBER0 , n = touchFocuses . size ; i < n ; i ++ ) { TouchFocus focus = focuses [ i ] ; if ( focus . pointer != pointer || focus . button != button ) continue ; + event . setTarget ( focus . actor ) ; event . setCurrentTarget (...
Fixed touchUp target
<nb> public class UIHelper { } } else if ( message . getEncryption ( ) == Message . ENCRYPTION_PGP ) { return new Pair < > ( context . getString ( R . string . encrypted_message_received ) , true ) ; - } else if ( message . getType ( ) == Message . TYPE_FILE ) { + } else if ( message . getType ( ) == Message ...
fixed text preview for images
<nb> public class CountBits { } return total ; } + + SINGLE + public int countBitsEvenFaster ( int x ) { + SINGLE + x = x - ( ( x > > NUMBER0 ) & NUMBER1 ) ; + SINGLE + x = ( x & NUMBER2 ) + ( ( x > > NUMBER3 ) & NUMBER2 ) ; + SINGLE + x = x + ( x > > NUMBER4 ) ; + SINGLE + x &= NUMBER5 ; ...
add one new method
<nb> public class IngestService implements Closeable { @ override public void close ( ) throws IOException { + pipelineStore . getProcessorRegistry ( ) . close ( ) ; pipelineStore . close ( ) ; } <nb> public class NodeService extends AbstractComponent implements Closeable { @ override public void ...
Ingest does not close its factories
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NA...
Removed unused imports
<nb> public class ListsPagerAdapter extends MultiPagerAdapter { @ override public int getItemPosition ( Object object ) { - if ( object instanceof ListsFragment ) { - return POSITION_UNCHANGED ; - } else { return POSITION_NONE ; - } } public String getListId ( int position ) {
Fix view pager not updating correctly after removing list
<nb> public class IntRange extends AbstractList implements Range { Integer integer = ( Integer ) value ; int i = integer . intValue ( ) ; return i >= from && i <= to ; - } + } else if ( value instanceof IntRange ) { + IntRange range = ( IntRange ) value ; + return from <= range . from && range . to <= to ...
modifies contains to test if the bounds of a IntRange are inside a IntRange
<nb> public class ClusterStatsTests extends ElasticsearchIntegrationTest { assertThat ( response . nodesStats . getProcess ( ) . count , Matchers . greaterThan ( NUMBER0 ) ) ; SINGLE assertThat ( response . nodesStats . getProcess ( ) . getAvgOpenFileDescriptors ( ) , Matchers . greaterThanOrEqualTo ( NUMBER0 L )...
replace greaterThan with greaterOrEqualThan
<nb> public class LruPhotoCache { @ override protected void entryRemoved ( boolean evicted , String key , Bitmap oldValue , Bitmap newValue ) { super . entryRemoved ( evicted , key , oldValue , newValue ) ; SINGLE - Log . d ( STRING0 + evicted + STRING1 + oldValue + STRING2 + newValue ) ; if ( evicted && phot...
Remove log line
<nb> public class HttpServletRequestWrapper implements HttpServletRequest { } } - if ( ! should ) { - LOG . warn ( STRING0 + req . getContentLength ( ) + STRING1 + String . valueOf ( req . getHeader ( ZuulHeaders . TRANSFER_ENCODING ) ) ) ; - } - return should ; }
Removed unnecessary warn log statement
<nb> public abstract class InternalAbstractGraphDatabase { throw new NotFoundException ( format ( STRING0 , id ) ) ; } - threadToTransactionBridge . assertInUnterminatedTransaction ( ) ; try ( Statement statement = threadToTransactionBridge . instance ( ) ) { if ( ! statement . readOperations ( ) . nodeEx...
Remove asserts as the same asserts are made in instance anyway
<nb> public class TransactionConstraintsIT @ after public void afterwards ( ) throws Throwable { - cluster . repairAll ( ) ; + if ( cluster != null ) + { + cluster . repairAll ( ) ; + } } private static final String PROPERTY_KEY = STRING0 ;
Add a null check to test cleanup
<nb> public class OStorageRemoteServiceThread extends OSoftThread { try { storage . beginResponse ( network ) ; } catch ( IOException ioe ) { + SINGLE network . endResponse ( ) ; sendShutdown ( ) ; return ; } + final byte request = network . readByte ( ) ; switch ( request ) { <nb> public clas...
Added a bit of documentation