diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class DefaultServlet extends HttpServlet implements HttpHandler { } } finally { - if ( out != null ) { - IoUtils . safeClose ( out ) ; - } - if ( writer != null ) { - IoUtils . safeClose ( writer ) ; - } IoUtils . safeClose ( in ) ; } }
Don t close the response in the default servlet
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ; <nb> public class JtaExceptionListener extends AbstractEntityTest ...
fixing the jta exception listener test different exception thrown
<nb> public class TerminalPopupMenu extends ToolbarPopupMenu addSeparator ( ) ; addItem ( commands_ . renameTerminal ( ) . createMenuItem ( false ) ) ; addItem ( commands_ . clearTerminalScrollbackBuffer ( ) . createMenuItem ( false ) ) ; + addSeparator ( ) ; addItem ( commands_ . closeTerminal ( ) . createMe...
Add a separator to the terminal dropdown menu and add a TODO comment about using css to truncate terminal names
<nb> public class PrepareCatalogMojo extends AbstractMojo { public static final int BUFFER_SIZE = NUMBER0 * NUMBER1 ; - private static final String [ ] EXCLUDE_DOC_FILES = { STRING0 , STRING1 , STRING2 , STRING3 } ; + private static final String [ ] EXCLUDE_DOC_FILES = { STRING0 , STRING1 , STRING2 , STRING4 ...
Added camel jetty to the excluded components docs list
<nb> public class GsonParser < T extends JsonElement > implements AsyncParser < T > { protected void transform ( ByteBufferList result ) throws Exception { JsonParser parser = new JsonParser ( ) ; T parsed = ( T ) parser . parse ( new JsonReader ( new InputStreamReader ( new ByteBufferListInputStream ( result ) )...
Fix exception on GsonParsing if invalid json is returned
<nb> public abstract class StatsAbstractInsightsFragment extends StatsAbstractFragmen } if ( mDatamodels == null ) { - SINGLE - showPlaceholderUI ( ) ; return ; } <nb> public abstract class StatsAbstractInsightsFragment extends StatsAbstractFragmen return ; } - SINGLE + SINGLE mErrorLabel ...
Remove unused code
<nb> public abstract class AbstractFeatureTest { new Option [ ] { karafDistributionConfiguration ( ) . frameworkUrl ( maven ( ) . groupId ( STRING0 ) . artifactId ( STRING1 ) . type ( STRING2 ) . versionAsInProject ( ) ) - SINGLE - . karafVersion ( STRING3 ) . name ( STRING4 ) + SINGLE + . karafVersion ( ...
fixed a typo and alligned the karaf version
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ; <...
Remove unused imports
<nb> public interface FritzboxBindingProvider extends BindingProvider { COMMENT static final public String TYPE_ACTIVE = STRING0 ; - COMMENT + COMMENT static final public String TYPE_WLAN = STRING1 ; - COMMENT + COMMENT static final public String TYPE_DECT = STRING2 ; - COMMENT + COMMENT sta...
just changed some comments
<nb> class ActivityStarter { SINGLE SINGLE SINGLE - final ActivityRecord top = intentActivity . task . performClearTaskLocked ( + final ActivityRecord top = intentActivity . task . performClearTaskForReuseLocked ( mStartActivity , mLaunchFlags ) ; if ( top != null ) { if ( top . frontOfTask ) { <nb> f...
Don t remove task needed for reuse when clearing during activity start
<nb> import NAMESPACE ; COMMENT public final class InetSocketTransportAddress implements TransportAddress { - public static final InetSocketTransportAddress PROTO = new InetSocketTransportAddress ( new InetSocketAddress ( STRING0 , NUMBER0 ) ) ; + public static final InetSocketTransportAddress PROTO = new Ine...
Add back private default ctor
<nb> public class ChangeSignatureGestureDetector extends PsiTreeChangeAdapter impleme final PsiElement child = event . getChild ( ) ; if ( child instanceof PsiFile ) { final PsiFile psiFile = ( PsiFile ) child ; - final Document document = myPsiDocumentManager . getDocument ( psiFile ) ; - if ( document != nu...
do not remove listener if it wasn t added
<nb> class VarCheck extends AbstractPostOrderCallback implements Scope scope = t . getScope ( ) ; Var var = scope . getVar ( varName ) ; if ( var == null ) { - if ( NodeUtil . isFunctionExpression ( parent ) || NodeUtil . isClassExpression ( parent ) ) { + if ( NodeUtil . isFunctionExpression ( parent ) + |...
Fix VarCheck for class expression extending unknown class
<nb> class ConstCheck extends AbstractPostOrderCallback implements CompilerPass { static final DiagnosticType CONST_REASSIGNED_VALUE_ERROR = - DiagnosticType . error ( + DiagnosticType . warning ( STRING0 , STRING1 + STRING2 ) ; <nb> public final class ConstCheckTest extends CompilerTestCase { publi...
Make const var checks a warning by default and promote them to errors when
<nb> public class AccountSetupBasics extends K9Activity } - mAccount = Preferences . getPreferences ( this ) . newAccount ( ) ; + if ( mAccount == null ) + mAccount = Preferences . getPreferences ( this ) . newAccount ( ) ; mAccount . setName ( getOwnerName ( ) ) ; mAccount . setEmail ( email ) ; mAcc...
Fix error duplicating false accounts when adding an account
<nb> public class ClusterBlock implements Serializable , Streamable , ToXContent { } public ClusterBlockLevel [ ] levels ( ) { - return this . levels ( ) ; + return this . levels ; } public boolean contains ( ClusterBlockLevel level ) {
Remove infinite loop typo
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT COMMENT public class CordovaActivity extends Activity implements CordovaInterface { public static String TAG = STRING0 ;
We have docs this doesn t need to be in the comments
<nb> public class OpenProjectNormalFragment extends RecyclerFragment < OpenProjectModel private static final int SIMULATE_FRESH_NO_DATA = NUMBER0 ; private static final int SIMULATE_FRESH_FAILURE = NUMBER1 ; - private static final int REQUEST_DURATION = NUMBER2 ; + private static final int REQUEST_DURATION = ...
adjust refresh time
<nb> public abstract class TitanBlueprintsTransaction implements TitanTransaction { @ override public < T extends Element > Set < String > getIndexedKeys ( Class < T > elementClass ) { - Preconditions . checkArgument ( elementClass . equals ( Vertex . class ) , STRING0 ) ; + Preconditions . checkArgument ( el...
Fixed NPE getKeyIndexes
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class Restarter { public static boolean isSupported ( ) { if ( getRestartCode ( ) != NUMBER0 ) return true ; - if ( SystemInfo . isWindows ) return true ; + if ( SystemInfo . isWindows ) return new File ( PathManager . getBinPa...
restart capability check on Windows
<nb> public class ErrorManager { SINGLE + @ suppresswarnings ( STRING0 ) public void emit ( ErrorType etype , ANTLRMessage msg ) { switch ( etype . severity ) { case WARNING_ONE_OFF :
Add SuppressWarnings fallthrough to method with intentional fallthrough
<nb> class PatternRuleHandler extends BitextXMLRuleHandler { srcExample . getExample ( ) , trgExample . getExample ( ) ) ) ) ; } else { + List < String > l = trgExample . getCorrections ( ) ; + String str [ ] = l . toArray ( new String [ l . size ( ) ] ) ; incorrectExamples . add ( new IncorrectBitextExam...
remove impossible cast
<nb> public class WatchForDisconnection implements DaemonCommandAction { private final ListenerBroadcast < DaemonExpirationListener > listenerBroadcast ; - public static final String EXPIRATION_REASON = STRING0 ; + public static final String EXPIRATION_REASON = STRING1 ; public WatchForDisconnection ( Lis...
Improve expiration reason when daemon client disconnected
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT @ immutable public final class MongoCredential {
Fixed since javadoc tag
<nb> public abstract class WebSocketChannel implements ConnectedChannel { StreamSinkFrameChannel ch = senders . peek ( ) ; if ( ch != null ) { ChannelListeners . invokeChannelListener ( ch , ( ChannelListener < ? super StreamSinkFrameChannel > ) ch . getWriteSetter ( ) . get ( ) ) ; + } else { + channel . sus...
suspend writes if there is no writer
<nb> public class AndroidApplication extends Activity implements Application { View view = getWindow ( ) . getDecorView ( ) ; try { Method m = View . class . getMethod ( STRING0 , int . class ) ; - m . invoke ( view , NUMBER0 ) ; - m . invoke ( view , NUMBER1 ) ; + int code = View . SYSTEM_UI_FLAG_FULLSCREE...
Added Actual Immersive Mode
<nb> public class LayoutModelPersistenceProvider implements WorkspacePersistenceProvi public Element writeXML ( Document document , Workspace workspace ) { LayoutModelImpl model = workspace . getLookup ( ) . lookup ( LayoutModelImpl . class ) ; - return model . writeXML ( document ) ; + if ( model != null ) {...
Fix persistence in layout and viz
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + COMMENT COMMENT COMMENT <nb> public class DefaultKeySelector extend...
Add the ability to pass a KeyStoreParameters Object to the DefaultKeyAccessor
<nb> public class DefaultTaskGraphExecuterTest { will ( returnValue ( outputs ) ) ; allowing ( outputs ) . getFiles ( ) ; will ( returnValue ( root . files ( ) ) ) ; + atMost ( NUMBER0 ) . of ( state ) . setStartTime ( with ( any ( long . class ) ) ) ; + atMost ( NUMBER0 ) . of ( state ) . setEndTime ( with (...
Fix DefaultGraphExecutorTest to allow set Start End Time
<nb> public class JavaDebuggerEditorsProvider extends XDebuggerEditorsProviderBase im @ override public void saveTo ( @ notnull XBreakpoint < ? > breakpoint ) { TextWithImports text = myComboBox . getText ( ) ; - final String condition = StringUtil . nullize ( text . toExternalForm ( ) , true ) ; + final Stri...
do not save empty conditions
<nb> final class DeploymentUnitPhaseService < T > implements Service < T > { final DeploymentUnit deploymentUnitContext = deploymentUnitInjector . getValue ( ) ; final DeployerChains chains = deployerChainsInjector . getValue ( ) ; final List < DeploymentUnitProcessor > list = chains . getChain ( phase ) ; - fi...
Correctly setup the ListIterator in DUPService stop
<nb> public class MapProxyImpl < K , V > extends MapProxySupport implements IMap < K , V > , I COMMENT COMMENT COMMENT - SINGLE + SINGLE SINGLE + SINGLE public void clearMapOnly ( ) { SINGLE clearInternal ( ) ; <nb> public class MapProxyImpl < K , V > extends MapProxySupport implements IMap < K , ...
Resolved merge problems checkstyle issue
<nb> public class InstalledPluginsManagerMain extends PluginManagerMain { installPluginFromFileSystem . addActionListener ( new ActionListener ( ) { @ override public void actionPerformed ( ActionEvent e ) { - final FileChooserDescriptor descriptor = new FileChooserDescriptor ( true , false , true , true , fals...
do not show other files than accepted JAR ZIP in browser
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ;
Added license header
<nb> public class HttpConnection implements Downloadable { public void cancel ( ) { mHttpConnectionManager . finishConnection ( this ) ; message . setDownloadable ( null ) ; - message . setBody ( mUrl . toString ( ) ) ; - mXmppConnectionService . updateMessage ( message ) ; + mXmppConnectionService . update...
make image download message to type image only after completion
<nb> public class FloatLabeledEditText extends FrameLayout { } ) ; mHintTextView . setText ( mEditText . getHint ( ) ) ; + + if ( ! TextUtils . isEmpty ( mEditText . getText ( ) ) ) { + mHintTextView . setVisibility ( VISIBLE ) ; + } } private void onFocusChanged ( boolean gotFocus ) { <nb> public...
Fix initial state
<nb> public class StringUtils { COMMENT COMMENT COMMENT - private static Random randGen = new Random ( ) ; + private static final Random randGen = new Random ( ) ; COMMENT COMMENT <nb> public class StringUtils { COMMENT COMMENT COMMENT - private static char [ ] numbersAndLetters = ( STRING0 + ...
Make randGen and numbersAndLetters final
<nb> public class Number3D { return new Number3D ( NUMBER0 , NUMBER1 , NUMBER0 ) ; } - public Number3D lerp ( Number3D from , Number3D to , float amount ) + public static Number3D lerp ( Number3D from , Number3D to , float amount ) { Number3D out = new Number3D ( ) ; out . x = from . x + ( to . x - from...
Make Number3D lerp a static method
<nb> public class VcsLogGraphTable extends JBTable implements DataProvider , CopyProvi } } ; - public VcsLogGraphTable ( @ notnull VcsLogUiImpl ui , @ notnull final VcsLogData logData , @ notnull VisiblePack initialDataPack ) { + public VcsLogGraphTable ( @ notnull VcsLogUiImpl ui , @ notnull VcsLogData logDa...
remove final modifier
<nb> public class StatementResource URI uri = uriBuilderFrom ( taskInfo . getSelf ( ) ) . appendPath ( STRING0 ) . appendPath ( bufferId ) . build ( ) ; locations . add ( uri ) ; } - if ( outputStage . getState ( ) != StageState . PLANNED && outputStage . getState ( ) != StageState . SCHEDULED ) { + if ( ( ou...
Fix closing ExchangeClient before query is scheduled
<nb> public class MUCPersistenceManager { STRING0 ; private static final String LOAD_HISTORY = STRING1 + - STRING2 ; + STRING3 ; private static final String LOAD_ALL_ROOMS = STRING4 + STRING5 + <nb> public class MUCPersistenceManager { STRING6 ; private static final String LOAD_ALL_HISTORY = STR...
Fixed database query
<nb> public class ClassPath { COMMENT COMMENT COMMENT - COMMENT COMMENT COMMENT public static void InitializeClassPath ( String [ ] classPathDirs , String [ ] bootClassPath ,
Removed deleted argument from InitializeClassPath javadoc
<nb> public class RussianWordRepeatRule extends AdvancedWordRepeatRule { COMMENT COMMENT COMMENT - private static final Pattern EXC_POS = Pattern . compile ( STRING0 ) ; + private static final Pattern EXC_POS = Pattern . compile ( STRING1 ) ; COMMENT COMMENT
ru add num to exception
<nb> public class DaemonClient implements BuildActionExecuter < BuildActionParameters > final DaemonClientConnection connection = connector . connect ( compatibilitySpec ) ; final CancelCallback cancelCallback = new CancelCallback ( connection . getUid ( ) , buildId ) ; if ( cancellationToken . addCallback ( canc...
Only throw BuildCancelledException from cancelling
<nb> public final class TachyonBlockStore implements Closeable { workerAddr . getHostName ( ) ) && mContext . hasLocalWorker ( ) ) { return new LocalBlockInStream ( blockId , blockInfo . getLength ( ) , workerAddr ) ; } else { - return new RemoteBlockInStream ( blockId , blockInfo . getLength ( ) , workerAddr )...
Make location requirement instead of preference
<nb> public class PushConditionInCallAction extends PsiElementBaseIntentionAction { if ( element instanceof PsiCompiledElement ) return false ; if ( ! element . getManager ( ) . isInProject ( element ) ) return false ; - if ( ! ( element instanceof PsiJavaToken && ( ( PsiJavaToken ) element ) . getTokenType ( )...
Make Push condition inside call intention available on entire conditional expression
<nb> public class JavaBuild { return null ; } SINGLE - - COMMENT + SINGLE if ( sizeInfo != null ) { String sizeStatement = sizeInfo . getStatement ( ) ; <nb> public class JavaBuild { bigCode . delete ( index , index + sizeStatement . length ( ) ) ; } } - COMMENT PreprocessorResult result...
Remove size from setup when copying to settings
<nb> public abstract class HttpRequestParser { final void handleHeaderValue ( ByteBuffer buffer , ParseState state , HttpServerExchange builder ) { StringBuilder stringBuilder = state . stringBuilder ; HttpString headerName = state . nextHeader ; + HashMap < HttpString , String > headerValuesCache = state . hea...
Limit the size of the header string cache
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> public class PythonFormattingModelBuilder implements FormattingModelBuilderEx , C return FormattingModelProvider . createFormattingModelForPsiF...
Provides fine grained control on fallback indent options to be used during formatting
<nb> public class MaterialEditTextPreference extends DialogPreference { TextView message = ( TextView ) layout . findViewById ( android . R . id . message ) ; if ( getDialogMessage ( ) != null && getDialogMessage ( ) . toString ( ) . length ( ) > NUMBER0 ) { message . setVisibility ( View . VISIBLE ) ; - messag...
EditTextPreference input will place cursor at the end initially
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; ...
remove thick border around progress
<nb> public class SoundTest extends GdxTest implements InputProcessor { } @ override public void create ( ) { - sound = Gdx . audio . newSound ( Gdx . files . getFileHandle ( STRING0 , FileType . Internal ) ) ; + SINGLE + sound = Gdx . audio . newSound ( Gdx . files . getFileHandle ( STRING1 , FileType . In...
added Dave s wav file that has a mighty problem in OpenAL
<nb> public class TextContainerDeserializerHelper { String operation = jp . getText ( ) . trim ( ) ; builder . withOperation ( operation ) ; JsonToken token = jp . nextToken ( ) ; + if ( isForTemplate ( operation ) && token == JsonToken . START_OBJECT ) { + return template ( jp , builder ) ; + } + if ( ...
handled template first in text container deserializer
<nb> public final class Mapper { COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - public String getDefaultHostName ( ) { - return defaultHostName ; - } - - - COMMENT COMMENT COMMENT COMMENT <nb> public final class Mapper { protected static class Wrapper extends MapElement { - ...
Remove unused code
<nb> package NAMESPACE ; - import static NAMESPACE ; - import static NAMESPACE ; - import static NAMESPACE ; - import static NAMESPACE ; - import static NAMESPACE ; - import static NAMESPACE ; - import static NAMESPACE ; - import static NAMESPACE ; - import static NAMESPACE ; - import static N...
Fix broken build
<nb> public class ProgressTipPanel { final HTMLEditorKit editorKit = new HTMLEditorKit ( ) ; myBrowser . setEditorKit ( editorKit ) ; myBrowser . setContentType ( UIUtil . HTML_MIME ) ; - myBrowser . setBackground ( UIUtil . getTextFieldBackground ( ) ) ; - + myBrowser . setBackground ( Color . white ) ; ...
Fix inconsistency between progress tip panel and tip panel
<nb> public class AntiCsrfParam extends AbstractParam { protected void parse ( ) { try { this . tokens = getConfig ( ) . getList ( TOKENS ) ; - System . out . println ( STRING0 + tokens . size ( ) ) ; } catch ( Exception e ) { - System . out . println ( STRING1 + e ) ; this . tokens = new ArrayList < Stri...
Removed diagnostic printlns
<nb> public class Util { STRING0 , STRING1 , STRING2 , - STRING3 + STRING3 , + STRING4 } ; public static float clamp ( float v0 , float v , float v1 ) {
Added kk browser
<nb> public abstract class GrTypeDefinitionImpl extends GroovyPsiElementImpl implemen PsiElement parent = getParent ( ) ; if ( parent instanceof GroovyFileImpl ) { GroovyFileImpl file = ( GroovyFileImpl ) parent ; - if ( file . getTopStatements ( ) . length == NUMBER0 ) file . delete ( ) ; else file . getNode (...
safe delete class fix
<nb> public class Constants { SINGLE SINGLE - public static final String VERSION = STRING0 ; + public static final String VERSION = STRING1 ; SINGLE SINGLE - public static final String VERSION_DATE = STRING2 ; + public static final String VERSION_DATE = STRING3 ; SINGLE SINGLE
Change build identifiers
<nb> public class NotNullVerifyingInstrumenter extends ClassAdapter { } public boolean isModification ( ) { - return myIsModification ; + SINGLE + return ! mySuperName . equals ( ENUM_CLASS_NAME ) && myIsModification ; } public void visit ( final int version , <nb> public class NotNullVerifyingInstr...
don t touch enums with ASM at all
<nb> public class Util { return regex ; } - public static void main ( String [ ] args ) throws Exception { - - System . out . println ( wildcardToJavaRegex ( STRING0 ) ) ; - } - public static boolean listContains ( ModelNode operationResult , String item ) { if ( ! operationResult . hasDefined ( RES...
removed public static void main that got in by mistake
<nb> public class ListRowPresenter extends RowPresenter { private static final String TAG = STRING0 ; private static final boolean DEBUG = false ; - COMMENT - COMMENT - COMMENT - COMMENT - @ deprecated - public static final int ZOOM_FACTOR_NONE = FocusHighlight . ZOOM_FACTOR_NONE ; - - COMMENT -...
Remove deprecated constants in leanback
<nb> public interface BukkitScheduler { public void cancelAllTasks ( ) ; COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT - COMMENT + COMMENT COMMENT public boolean isCurrentlyRunning ( int taskId ) ; + COMMENT + COMMENT ...
add isQueued to allow plugins to know a task is still in the queue
<nb> public class MaterialDialog extends DialogBase implements View . OnClickListener { if ( builder . dismissListener != null ) { setOnDismissListener ( builder . dismissListener ) ; } + if ( builder . keyListener != null ) { + setOnKeyListener ( builder . keyListener ) ; + } updateFramePadding ( ) ; ...
Add support for setting key listener in builder
<nb> public class StatementGenerator extends ErrorReportingASTVisitor { STRING0 ) ; } continue ; - } else if ( value != null ) { + } else if ( value instanceof Character ) { + char c = ( Character ) value ; + if ( c == STRING1 ) { + format += STRING2 ; + } + format += c ; + continue ; + } else i...
Fixed concatenation of a double quote character to a string
<nb> public class FragmentPlanner if ( current . isPartitioned ( ) ) { SINGLE - return newPlanFragment ( new ExchangeNode ( current . getId ( ) , current . getRoot ( ) . getOutputSymbols ( ) ) , false ) ; + current = newPlanFragment ( new ExchangeNode ( current . getId ( ) , current . getRoot ( ) . getOutputS...
Fix issue where Output node was being omitted in partitioned plans
<nb> public class TraktTools { long startTime = System . currentTimeMillis ( ) ; int resultCode = processWatchedShowsTrakt ( context , remoteShows , localShows , isInitialSync ) ; - Timber . d ( STRING0 , + Timber . d ( STRING1 , System . currentTimeMillis ( ) - startTime ) ; if ( resultCode < NUMBER0 ) {...
Measure collected episode sync for comparison
<nb> public class DiffUtil { editor . getSettings ( ) . setUseTabCharacter ( codeStyleFacade . useTabCharacter ( fileType ) ) ; } editor . getColorsScheme ( ) . setAttributes ( EditorColors . FOLDED_TEXT_ATTRIBUTES , null ) ; - editor . getColorsScheme ( ) . setColor ( EditorColors . CARET_ROW_COLOR , null ) ; ...
employ setCaretRowShown instead of explicit CARET_ROW_COLOR hack
<nb> public @ interface Param { boolean named ( ) default false ; COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT boolean positional ( ) default true ;
Replace js provider methods with named parameters
<nb> public final class GlobalEventExecutor extends AbstractEventExecutor { if ( inEventLoop ) { addTask ( task ) ; } else { - startThread ( ) ; addTask ( task ) ; + startThread ( ) ; } }
Fix a potential race condition where the worker thread of GlobalEventExecutor terminates with a pending task
<nb> public class WsRemoteEndpointImplServer extends WsRemoteEndpointImplBase { if ( close ) { close ( ) ; } - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE clearHandler ( null ) ; break ; } <nb> public class WsRemoteEndpointImplServer extends WsRemoteEndpointImplBase { private void clearHand...
Move comment to go with code that was moved earlier
<nb> public class PetClinicApplication extends SpringBootServletInitializer { return application . sources ( PetClinicApplication . class ) ; } + public static void main ( String [ ] args ) throws Exception { + SpringApplication . run ( PetClinicApplication . class , args ) ; + } + }
Add main class required by the spring boot maven plugin
<nb> public class RequestServer extends NanoHTTPD { SINGLE private static String loadTemplate ( String name ) { - water . H2O . registerResourceRoot ( new File ( STRING0 ) ) ; - water . H2O . registerResourceRoot ( new File ( STRING1 ) ) ; + water . H2O . registerResourceRoot ( new File ( STRING2 ) ) ; + ...
remove path hack
<nb> public class OrientdbEdgeTest { if ( ! admin . existsDatabase ( ) ) { System . err . println ( STRING0 + url ) ; - admin . createDatabase ( STRING1 , STRING2 ) ; + admin . createDatabase ( STRING1 , STRING3 ) ; } try {
Revert temporary fix for distributed tests using memory for avoid disk conflict
<nb> public abstract class DynamicListProperty < T > { COMMENT COMMENT protected abstract T from ( String value ) ; + + COMMENT + COMMENT + COMMENT + public String getName ( ) { + return delegate . getName ( ) ; + } } <nb> public class DynamicStringCollectionTest { } assertEquals ( extMap , ...
Add getName to DynamicListProperty to be consistent with
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMES...
Notify lists activity if lists sync has completed
<nb> public class IOUtils { } } + if ( textFileOrUrl . endsWith ( STRING0 ) ) { + SINGLE + in = new GZIPInputStream ( in , NUMBER0 ) ; + } + SINGLE in = new BufferedInputStream ( in ) ; - SINGLE - if ( textFileOrUrl . endsWith ( STRING0 ) ) - in = new GZIPInputStream ( in ) ; - return in...
Reverse the order of buffer and gunzip gunzip already has a buffer and this is much faster for large objects
<nb> public class GceUnicastHostsProvider extends AbstractComponent implements Unicas } lastRefresh = System . currentTimeMillis ( ) ; } - logger . info ( STRING0 ) ; + logger . debug ( STRING0 ) ; cachedDiscoNodes = Lists . newArrayList ( ) ; String ipAddress = null ; <nb> public class GceUnicastHost...
Moving log level to debug
<nb> import NAMESPACE ; COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
fixed the wording in javadoc for TrailingCommentCheck
<nb> public class TouchEffectDrawable extends StatePaintDrawable implements Animatabl } @ override + public void draw ( Canvas canvas ) { + SINGLE + if ( isRunning ( ) ) + super . draw ( canvas ) ; + } + + @ override public void draw ( Canvas canvas , Paint paint ) { final Rect r = getBounds ( )...
improve the TouchEddectDrawable fluency on scroll view
<nb> public class PluginManager { while ( eventType != XmlResourceParser . END_DOCUMENT ) { if ( eventType == XmlResourceParser . START_TAG ) { String strNode = xml . getName ( ) ; - SINGLE - if ( strNode . equals ( STRING0 ) ) { - service = xml . getAttributeValue ( null , STRING1 ) ; - pluginClass = xml...
Killing the deprecation notice in Android waiting for plugman fixes before removing the empty tags
<nb> public class NodeInvokerWrapper implements InvokerWrapper { private final OperationService operationService ; - public NodeInvokerWrapper ( OperationService operationService ) { + NodeInvokerWrapper ( OperationService operationService ) { this . operationService = operationService ; } <nb> public...
Increased code coverage of NodeInvokerWrapper
<nb> public class DefaultTaskExecutionPlan implements TaskExecutionPlan { private void enforceFinalizerTasks ( TaskInfo taskInfo ) { for ( TaskInfo finalizerNode : taskInfo . getFinalizers ( ) ) { if ( finalizerNode . isRequired ( ) || finalizerNode . isMustNotRun ( ) ) { - enforceWithDependencies ( finalizerNo...
Avoid recursing over the same items in enforceWithDependencies
<nb> public class BlockQuirkExtent extends ExtentDelegate { } @ override - public boolean setBlock ( Vector location , BaseBlock block ) throws WorldEditException { - final int existing = world . getBlockType ( location ) ; + public boolean setBlock ( Vector position , BaseBlock block ) throws WorldEditExce...
Fixed BlockQuirkExtent calling getBlockType
<nb> class ConstructorCall implements Expression { StringBuilder builder = new StringBuilder ( STRING0 + constructor . getDeclaringClass ( ) . getSimpleName ( ) + STRING1 ) ; for ( Iterator < Field > iterator = constructorArguments . iterator ( ) ; iterator . hasNext ( ) ; ) { Field argument = iterator . next ( )...
Don t call getters on non public fields
<nb> public class SuppressWithNearbyCommentFilter COMMENT COMMENT COMMENT - COMMENT COMMENT @ override public int compareTo ( Tag other ) { <nb> public class SuppressionCommentFilter COMMENT COMMENT COMMENT - COMMENT COMMENT @ override public int compareTo ( Tag object ) { <nb> class Fil...
Remove unnecessary Javadoc tags
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Fixed Javadoc of OioDatagramChannelFactory
<nb> public final class ThreadLocalRandom extends Random { static { if ( initialSeedUniquifier == NUMBER0 ) { SINGLE - SINGLE + SINGLE seedGeneratorThread = new Thread ( STRING0 ) { @ override public void run ( ) { <nb> public final class ThreadLocalRandom extends Random { seedGeneratorThread . inte...
Fix typo in warning message
<nb> public class ExpandoMetaClass extends MetaClassImpl implements GroovyObject { MethodKey key = new DefaultCachedMethodKey ( theClass , methodName , metaMethod . getParameterTypes ( ) , false ) ; addMetaMethod ( metaMethod ) ; + cacheStaticMethod ( key , metaMethod ) ; if ( isGetter ( methodName , metaMe...
fixed bug where original cached static methodMissing was invoked instead of an overriden one when setting methodMissing twice
<nb> class CursorImpl < R extends Record > implements Cursor < R > { private boolean isClosed ; private transient CursorResultSet rs ; - private transient int rsIndex ; private transient Iterator < R > iterator ; @ suppresswarnings ( STRING0 ) <nb> class CursorImpl < R extends Record > implements Cursor...
Removed unused rsIndex property
<nb> limitations under the License . COMMENT - package NAMESPACE ; + package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; public class RestLiCallback < T > impl...
Move RestLiCallback so internal class is not exposed to public
<nb> public class SizeEstimatorTest extends HazelcastTestSupport { throw new IllegalArgumentException ( STRING0 ) ; } config . getMapConfig ( mapName ) . setBackupCount ( backupCount ) ; - SINGLE nodes = instanceFactory . newInstances ( config , nodeCount ) ; return nodes [ NUMBER0 ] . getMap ( mapName ) ; ...
Removed superfluous comment in SizeEstimatorTest
<nb> public class MocoServer { ServerBootstrap bootstrap = new ServerBootstrap ( ) ; bootstrap . group ( bossGroup , workerGroup ) . channel ( NioServerSocketChannel . class ) - . childHandler ( pipelineFactory ) - . option ( ChannelOption . TCP_NODELAY , true ) - . childOption ( ChannelOption . SO_KEEPALIV...
removed unused options for moco server
<nb> public class Resources { COMMENT COMMENT COMMENT - public static Class classForName ( String className ) throws ClassNotFoundException { + public static Class < ? > classForName ( String className ) throws ClassNotFoundException { return classLoaderWrapper . classForName ( className ) ; }
fixed compiler warnings
<nb> final class HawkUtils { SINGLE } - static void validateBuild ( ) { - if ( ! Hawk . isBuilt ( ) ) { - throw new IllegalStateException ( STRING0 + - STRING1 ) ; - } - } - public static void checkNull ( String message , Object value ) { if ( value == null ) { throw new NullPointerException (...
Remove validate method from Utils
<nb> public class BasketTree extends NetworkTree implements ZLAndroidTree { public NetworkLibraryItem getHoldedItem ( ) { return null ; } + + @ override + public String getUniqueKey ( ) { + return null ; + } }
fixed compilation issue
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ; <nb> public class DaemonContextBuilder implements Factory < DaemonContext > { public DaemonContextBuilder ( ) { javaHome = canonicalise ( jvm . getJavaHome ( ) ) ; - userHomeDir ...
Use correct default gradle user home
<nb> public class MathFunctions extends FunctionsContainer { @ runtime.immutable public static String base_convert ( String number , int fromBase , int toBase ) { - try { - return Long . toString ( Long . valueOf ( number , fromBase ) , toBase ) ; - } catch ( NumberFormatException e ) { - return new BigIn...
Optimise PHP function base_convert
<nb> public class WebAuthenticationDetails implements SessionIdentifierAware , Seriali SINGLE COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class WebAuthenticationDetails implements SessionIdentifierAware , Seriali doPopulateAdditiona...
Corrected out of date comment constructor doesn t create a session