diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class InvokeMethodTest extends GroovyTestCase { invoke ( null , STRING0 , null ) ; fail ( STRING1 ) ; } - catch ( InvokerException e ) { + catch ( NullPointerException e ) { SINGLE } }
fixed failing test
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT COMMENT public class ByteBufOutputMarshaller implements MethodDescriptor . Marshaller < ByteBuf > {
Fix javadoc warning
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class NeoShellServer extends SimpleAppServer this . neo = neo ; this . bashInterpreter = new BashVariableInterpreter ( ) ; this . bashInterpr...
Added ability to start a local client in read only mode so that
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class BlogUtils { } } + @ nonnull public static Set < String > planTags ( ) { List < Map < String , Object > > blogs = WordPress . wpDB . getBlogsBy ( STRING0 , new String [ ] {...
Add NonNull annotation to planTags
<nb> public class DirectDruidClient < T > implements QueryRunner < T > } } catch ( IOException | InterruptedException | ExecutionException e ) { - log . error ( e , STRING0 , url ) ; + throw new RE ( e , STRING0 , url ) ; } catch ( CancellationException e ) { throw new QueryInterruptedException ( STRING...
still propagate log
<nb> public abstract class Representation public static final String BOOLEAN = RepresentationType . BOOLEAN . valueName ; public static final String BOOLEAN_LIST = RepresentationType . BOOLEAN . listName ; public static final String EXCEPTION = RepresentationType . EXCEPTION . valueName ; + public static final ...
adding Map representation type
<nb> public abstract class MRTask < T extends MRTask > extends DRemoteTask < T > { } @ override public void init ( ) { + _fs = new Futures ( ) ; _lo = NUMBER0 ; _hi = _keys . length ; long reqMem = ( log2 ( _hi - _lo ) + NUMBER1 ) * memOverheadPerChunk ( ) ;
Make new node shared futures in MRTask local init
<nb> public abstract class StanzaHandler { packet . getShow ( ) ; } catch ( IllegalArgumentException e ) { - Log . warn ( STRING0 + packet . toXML ( ) , e ) ; + Log . debug ( STRING0 + packet . toXML ( ) , e ) ; SINGLE SINGLE packet . setShow ( null ) ;
Don t log problems that we cannot resolve properly and originate outside of our influence to warn
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> class TagFileProcessor { private String path = null ; - private TagExtraInfo tei = null ; - private String bodycontent = null ; ...
Remove unused code identified by FindBugs
<nb> public class LocationManager { } COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix a Javadoc comment
<nb> public class LookupImpl extends LightweightHint implements Lookup , Disposable { final PsiFile file = getPsiFile ( ) ; if ( file != null && ! WriteCommandAction . ensureFilesWritable ( myProject , Arrays . asList ( file ) ) ) { + fireItemSelected ( null , completionChar ) ; return ; }
when file is read only still send some event when lookup closes
<nb> public class SubtasksTagListFragment extends TagViewFragment { } @ override + public void onTaskCreated ( Task task ) { + super . onTaskCreated ( task ) ; + helper . onCreateTask ( task ) ; + } + + @ override protected void onTaskDelete ( Task task ) { + super . onTaskDelete ( task ) ; help...
Fixed a bug with subtasks tag view not working when tasks were added
<nb> class Waiter { return activityUtils . getCurrentActivity ( ) . getFragmentManager ( ) . findFragmentById ( id ) ; else return activityUtils . getCurrentActivity ( ) . getFragmentManager ( ) . findFragmentByTag ( tag ) ; - } catch ( Exception ignored ) { } + } catch ( Throwable ignored ) { } return nu...
Exception doesn t catch NoSuchMethodError Throwable does
<nb> public class Address { @ override public String toString ( ) { if ( mPersonal != null ) { - SINGLE - return Utility . quoteString ( mPersonal ) + STRING0 + mAddress + STRING1 ; - SINGLE - SINGLE - SINGLE + return Utility . quoteString ( mPersonal ) + STRING0 + mAddress + STRING1 ; } else { re...
remove dead code that someone commented out rather than delete
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public class Spreadsheet extends LightGrid implements Listener { if ( editorControl == null || editorControl . isDisposed ( ) ) { editorControl = presentation . openV...
Restrict edit of read only attributes
<nb> public class RuntimeEnvironmentTest { } @ test - public void testProjects ( ) { + public void testProjects ( ) throws IOException { RuntimeEnvironment instance = RuntimeEnvironment . getInstance ( ) ; assertFalse ( instance . hasProjects ( ) ) ; assertNotNull ( instance . getProjects ( ) ) ; + as...
Update the project test to get better block coverage
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + public class Exec2 extends Request2 { static final int API_WEAVER = NUMBER0 ; SINGLE static public DocGen . FieldDoc [ ] DOC_FIELDS ; SINGLE <nb> public class Exec2 extends Request2 { catch ( Exception e2 ) { Log . ...
Bypass the grid search parameter mechanism
<nb> public class WebView extends AbsoluteLayout COMMENT COMMENT COMMENT - mWebViewCore . sendMessage ( EventHub . SET_SELECTION , start , end ) ; + if ( mWebViewCore != null ) { + mWebViewCore . sendMessage ( EventHub . SET_SELECTION , start , end ) ; + } } @ override
Prevent a null pointer exception
<nb> public abstract class Model extends Lockable < Model > { COMMENT COMMENT private Frame scoreImpl ( Frame adaptFrm ) { + assert adaptFrm . vecs ( ) . length == _names . length - NUMBER0 : STRING0 + adaptFrm . vecs ( ) . length + STRING1 + Arrays . toString ( _names ) ; int ridx = adaptFrm . find ( _names ...
Add assertion in scoreImpl for vecs and names to match
<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 ; import NAMESP...
fix failed build
<nb> public class VelocityTemplateContextHelper extends TemplateContextHelper { WebKeys . THEME_DISPLAY ) ; if ( themeDisplay != null ) { + SINGLE templateContext . put ( <nb> public class VelocityTemplateContextHelper extends TemplateContextHelper { } if ( theme != null ) { + SINGLE Strin...
Source formatting add empty line before and after comments
<nb> public class CommandLineLargeTest { assertTrue ( stdOut . contains ( STRING0 ) ) ; } + @ test + public void jarFile ( ) throws Exception { + String stdOut = runFlywayCommandLine ( NUMBER0 , null , STRING1 , STRING2 , STRING3 , + STRING4 , STRING5 ) ; + assertTrue ( stdOut . contains ( STRING6 ) ) ;...
Added largestest for command line with jar file
<nb> public class Exceptions @ override public boolean accept ( Throwable item ) { - return item . getMessage ( ) . equals ( message ) ; + return item . getMessage ( ) != null && item . getMessage ( ) . equals ( message ) ; } } ; } - public static Predicate < Throwable > exceptions ( - final Strin...
Added exceptions predicate for message containing a substring
<nb> public class SimpleChannelHandlerWrapper < REQ extends IMessage , REPLY extends IMe @ override protected void channelRead0 ( ChannelHandlerContext ctx , REQ msg ) throws Exception { - INetHandler iNetHandler = ctx . attr ( NetworkRegistry . NET_HANDLER ) . get ( ) ; + INetHandler iNetHandler = ctx . chan...
Fix the null networkHandler in the MessageContext
<nb> public class FileFilter { ignoreResultList . add ( STRING0 ) ; SINGLE ignoreResultList . add ( STRING1 ) ; SINGLE ignoreResultList . add ( STRING2 ) ; SINGLE - ignoreResultList . add ( STRING3 ) ; SINGLE ignoreResultList . add ( STRING4 ) ; SINGLE ignoreResultList . add ( STRING5 ) ; SINGLE ignoreRes...
Remove xslt tests from ignored tests list
<nb> public class TestNGConfigurationModel data . MAIN_CLASS_NAME = STRING0 ; data . METHOD_NAME = STRING0 ; data . SUITE_NAME = STRING0 ; - } else if ( TestType . METHOD == type || TestType . CLASS == type ) { + } else if ( TestType . METHOD == type || TestType . CLASS == type || TestType . SOURCE == type ) ...
apply chosen state
<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...
Remove ComponentVersion dependency from ImportTool
<nb> class EvaluateInConsoleFromTreeAction extends XAddToWatchesAction { return super . isEnabled ( node , e ) && getConsoleExecuteAction ( e ) != null ; } + @ override + public void update ( AnActionEvent e ) { + if ( getConsoleExecuteAction ( e ) != null ) { + e . getPresentation ( ) . setVisible ( true...
hide execute in console action if not available
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ListUpdate extends AbstractExecutableScript { break ; } } - if ( target != null ) { + if ( target != null && items != null ) { + items . remove ( target ) ; }
Fix quality flaws
<nb> public class LogisticRegression implements SoftClassifier < double [ ] > , Serializabl double f = FLOAT0 / ( FLOAT0 + Math . exp ( - dot ( x , w ) ) ) ; if ( posteriori != null ) { - posteriori [ NUMBER0 ] = f ; - posteriori [ NUMBER1 ] = FLOAT0 - f ; + posteriori [ NUMBER0 ] = FLOAT0 - f ; + posteri...
fix the bug with posteriori probablity for binary classes
<nb> public class JavaChangeSignatureDetector implements LanguageChangeSignatureDetec final @ nullable ChangeInfo changeInfo ) { PsiMethod method = PsiTreeUtil . getParentOfType ( element , PsiMethod . class , false ) ; if ( method != null && isInsideMethodSignature ( element , method ) ) { + if ( PsiTreeUtil ....
do not change signature if signature has errors
<nb> class CustomConcurrentHashMap < K , V > out . writeObject ( null ) ; SINGLE } + @ suppresswarnings ( STRING0 ) SINGLE MapMaker readMapMaker ( ObjectInputStream in ) throws IOException { int size = in . readInt ( ) ; MapMaker mapMaker = new MapMaker ( )
Suppress some deprecation warnings
<nb> import NAMESPACE ; COMMENT COMMENT public class PropertyUtil { - COMMENT COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT public static PropertyDescriptor getPropertyDescriptor ( S...
Improved formatting of JavaDoc comments to make them easier to read in source code
<nb> public final class XContentBuilder implements BytesStream , Releasable { return this ; } - public XContentBuilder map ( Map < String , Object > map ) throws IOException { + public XContentBuilder map ( Map < String , ? > map ) throws IOException { if ( map == null ) { return nullValue ( ) ; } <nb...
Improve XContentBuilder API
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ShadowContextWrapper extends ShadowContext { @ implementation public ApplicationInfo getApplicationInfo ( ) { ApplicationInfo applicationInf...
Fix NPE in ShadowContextWrapper in cases where manifest Config NONE
<nb> COMMENT COMMENT COMMENT + COMMENT COMMENT COMMENT COMMENT
Added javadoc for View activated attribute
<nb> public class TextAttributes implements Cloneable { public void setEnforceEmpty ( boolean enforceEmpty ) { myEnforceEmpty = enforceEmpty ; } + + public boolean isEnforceEmpty ( ) { + return myEnforceEmpty ; + } } <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESP...
replace reflection with public getter
<nb> public class ShadowHandlerTest { Message newMsg = handler . obtainMessage ( NUMBER0 ) ; assertThat ( newMsg ) . as ( STRING0 ) . isSameAs ( msg ) ; handler . sendMessageDelayed ( newMsg , NUMBER1 ) ; - ShadowLooper . unPauseMainLooper ( ) ; + ShadowLooper . runUiThreadTasksIncludingDelayedTasks ( ) ; S...
Fixed tests that failed as a result of this change
<nb> public class TelephonyManager { return getITelephony ( ) . getDeviceId ( ) ; } catch ( RemoteException ex ) { return null ; + } catch ( NullPointerException ex ) { + return null ; } }
Fixed a crash in TelephonyManager while calling getDeviceID
<nb> public class ClientApi { } } - - public void activeScanSessionUrls ( String regex ) { - - } }
removing unimplemented method activeScanSessionUrls from ClientApi
<nb> public @ interface ApiProperty { String access ( ) default STRING0 ; String notes ( ) default STRING0 ; String dataType ( ) default STRING0 ; + boolean required ( ) default false ; }
Adds a required field to an api property
<nb> public class AccessibilityNodeInfo implements Parcelable { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public void setViewIdResourceName ( CharSequence viewIdResName ) { enforceNotSealed ( ) ;
Fix a javaDoc error
<nb> public interface StorageAnnotationsDefaultValues { throw new UnsupportedOperationException ( STRING0 + getClass ( ) ) ; } - public boolean needsSave ( ) throws StateStorageException { - throw new UnsupportedOperationException ( STRING1 + getClass ( ) ) ; - } - public void save ( ) throws StateStora...
remove unused methods
<nb> public class Base64 { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
fix build breakage due to javadoc error
<nb> import NAMESPACE ; public class JavaFXCollapseSubtagToAttributeTest extends DaemonAnalyzerTestCase { @ override - protected void setUp ( ) throws Exception { - super . setUp ( ) ; - Assume . assumeFalse ( SystemInfo . isMac ) ; + protected void runTest ( ) throws Throwable { + Assume . assumeFalse ...
ignore JavaFX tests on Mac properly
<nb> public class EpydocUtil { } public static boolean isVariableDocString ( PyStringLiteralExpression expr ) { - if ( PyDocumentationSettings . getInstance ( expr . getProject ( ) ) . isEpydocFormat ( expr . getContainingFile ( ) ) ) { + final PyDocumentationSettings settings = PyDocumentationSettings . getI...
allow instance variable docstrings also when sphinx format is used
<nb> public class TextField extends Widget { public boolean isPasswordMode ( ) { return passwordMode ; } + + public TextFieldFilter getTextFieldFilter ( ) { + return filter ; + } class KeyRepeatTask extends Task { int keycode ;
Add public getTextFieldFilter method
<nb> package NAMESPACE ; - import static NAMESPACE ; - COMMENT COMMENT COMMENT <nb> public abstract class Tag { COMMENT COMMENT Tag ( String name ) { - checkNotNull ( name ) ; + if ( name == null ) { + name = STRING0 ; + } this . name = name ; }
Let NBT Tag String name accept a null name
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class HiveMetaStoreClient implements IMetaStoreClient { metastoreUris [ i ++ ] = tmpUri ; } + SINGLE + List uriList = Array...
Let HiveMetaStoreClient Choose MetaStore Randomly Nemon Lou via Thejas Nair
<nb> package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class AuthenticationUtilsTest { public void before ( ) throws Exception { mTachyonConf = new TachyonConf ( ) ; SINGLE - mServerTSocket = new TServerSocket ( new InetSocketAddress ( InetAddress . getLo...
Used NetworkAddressUtils to get localhost
<nb> public class SpaceReserverTest { StorageLevelAlias . HDD } ; private static final String [ ] [ ] TIER_PATH = { { STRING0 } , { STRING1 } } ; private static final long [ ] [ ] TIER_CAPACITY_BYTES = { { NUMBER0 } , { NUMBER1 } } ; - BlockStore mBlockStore ; - SpaceReserver mSpaceReserver ; - ExecutorServ...
modify the visibility of the variables
<nb> public class WindowLayersController { mDockDivider = w ; } else { final TaskStack stack = w . getStack ( ) ; + if ( stack == null ) { + return ; + } if ( stack . mStackId == StackId . PINNED_STACK_ID ) { mPinnedWindow = w ; } else if ( stack . mStackId == StackId . DOCKED_STACK_ID ) {
Prevent NPE in layer assignment not all windows have a stack
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; public class ActivityLauncher { + private static Tweak < Boolean > showMagicLinksLogin...
Adding logic to show magic links
<nb> public final class BluetoothLeAdvertiser { } boolean isConnectable = settings . isConnectable ( ) ; if ( totalBytes ( advertiseData , isConnectable ) > MAX_ADVERTISING_DATA_BYTES || - totalBytes ( scanResponse , isConnectable ) > MAX_ADVERTISING_DATA_BYTES ) { + totalBytes ( scanResponse , false ) > MAX_...
Don t compute flags length for scan response
<nb> public final class CaptureActivity extends Activity implements SurfaceHolder . Cal if ( copyToClipboard && ! resultHandler . areContentsSecure ( ) ) { ClipboardManager clipboard = ( ClipboardManager ) getSystemService ( CLIPBOARD_SERVICE ) ; - clipboard . setText ( resultHandler . getDisplayContents ( ) ) ...
Fix a few possible rare NPEs
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class GuiceApplication extends Application implements Module { COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT C...
updated Javadoc to tell users to subclass AbstractModule instead of directly implement Module
<nb> public interface Constants { COMMENT COMMENT + public static final short ACC_ANNOTATION = NUMBER0 ; + + COMMENT + COMMENT public static final short ACC_ENUM = NUMBER1 ; SINGLE <nb> public abstract class AccessFlags implements java . io . Serializable { public AccessFlags ( ) { } + COM...
Restore some previously removed code that is required for fixing
<nb> public final class SqlStageExecution SINGLE doUpdateState ( ) ; - SINGLE - if ( getState ( ) . isDone ( ) ) { - return task ; - } - return task ; }
Remove unnecessary code in SqlStageExecution
<nb> public class VerticaStatementBuilder extends PostgreSQLSqlStatementBuilder { statementStart += STRING0 ; } - if ( statementStart . startsWith ( STRING1 ) ) { + if ( statementStart . startsWith ( STRING1 ) + || statementStart . startsWith ( STRING2 ) ) { if ( line . startsWith ( STRING3 ) || line . en...
Vertica supports CREATE OR REPLACE
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - public class DRFClassificationTest extends TestUtil { + public class DRFTest extends TestUtil { @ beforeclass public static void stall ( ) { stall_till_cloudsize ( NUMBER0 ) ; }
Fix a typo causing compilation problem
<nb> public class CentralAuthenticationServiceImplWithMokitoTests { when ( tgtMock . getChainedAuthentications ( ) ) . thenReturn ( authnListMock ) ; when ( stMock . getGrantingTicket ( ) ) . thenReturn ( tgtMock ) ; - SINGLE final Service service2 = TestUtils . getService ( SVC2_ID ) ; final ServiceTicket ...
Removed unneeded comment line
<nb> public class StorageService extends NotificationBroadcasterSupport implements IE { SINGLE tokenMetadata . updateNormalTokens ( tokens , FBUtilities . getBroadcastAddress ( ) ) ; + SystemTable . removeEndpoint ( DatabaseDescriptor . getReplaceAddress ( ) ) ; } Tracing . instance ( ) ; if ( ! Gossiper ...
Remove dead node from system peers when replacing
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - @ suppresswarnings ( { STRING0 } ) + @ suppresswarnings ( { STRING0 } ) public class BSON { public static final byte EOO = NUMBER0 ;
Fixed Checkstyle issue
<nb> public class GremlinScriptEngine extends AbstractScriptEngine { return new VariableLibrary ( ) ; } - public Object eval ( final Reader reader ) { - return this . eval ( reader , this . context ) ; - } - - public Object eval ( final Reader reader , final Bindings bindings ) { - this . context . se...
making use of AbstractScriptEngine implementations of methods
<nb> public enum ErrorType { COMMENT COMMENT COMMENT + @ deprecated ALL_OPS_NEED_SAME_ASSOC ( NUMBER0 , STRING0 , ErrorSeverity . WARNING ) , COMMENT COMMENT
Add missing Deprecated annotation fixes build warning
<nb> public abstract class AbstractSession implements DBCSession , DBRBlockingObject { public void setAutoCommit ( boolean autoCommit ) throws DBCException { - throw new DBCException ( STRING0 ) ; + if ( ! autoCommit ) { + throw new DBCException ( STRING1 ) ; + } } @ override
Mongo functions system collections
<nb> public class GroovyAnnotator extends GroovyElementVisitor implements Annotator { public void visitListOrMap ( GrListOrMap listOrMap ) { for ( PsiType type : GroovyExpectedTypesProvider . getDefaultExpectedTypes ( listOrMap ) ) { if ( type instanceof PsiClassType && + ! type . equalsToText ( CommonClassName...
don t highlight all literals as converted
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public interface CheckinEnvironment { RevisionsFactory getRevisionsFactory ( ) ; <nb> pub...
Commit project dialog ui changes
<nb> public class FileBasedIndexImpl extends FileBasedIndex { } } - public void scheduleForUpdate ( VirtualFile file ) { + private void scheduleForUpdate ( VirtualFile file ) { myFilesToUpdate . add ( file ) ; } <nb> public class FileBasedIndexImpl extends FileBasedIndex { myForceUpdateSemaphore . d...
extra usage of scheduleForUpdate removed the method made private
<nb> import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class OSGiTest { public static final String NEO4J_VERSION = STRING0 ; public static final String GERONIMO_JTA_VERSION = STRING1...
ignoring failing test
<nb> import NAMESPACE ; COMMENT COMMENT public class PlayerToggleSneakEvent extends PlayerEvent implements Cancellable { + private boolean isSneaking ; private boolean cancel = false ; - public PlayerToggleSneakEvent ( final Player player ) { + public PlayerToggleSneakEvent ( final Player player , boole...
Added PlayerToggleSneakEvent isSneaking
<nb> public class CompactionStrategyManager implements INotificationConsumer if ( ! cfs . getPartitioner ( ) . splitter ( ) . isPresent ( ) ) return NUMBER0 ; - List < PartitionPosition > boundaries = StorageService . getDiskBoundaries ( cfs , locations . getWriteableLocations ( ) ) ; + Directories . DataDire...
only calculate getWriteableLocations once
<nb> public abstract class BaseConsoleExecuteActionHandler extends ConsoleExecuteActi throw new AbstractMethodError ( ) ; } - @ deprecated - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - public void finishExecution ( ) { - } - public String getEmptyExecuteAction ( ) { return ConsoleExecu...
remove finishExecution form platform
<nb> public class StringHelper { return res ; } - private static enum KeyParserState { + private enum KeyParserState { INIT , ESCAPE , SPECIAL ,
Removed unnecessary static declaration
<nb> public interface Validation { void addBeanViolation ( FieldViolation fieldViolation ) ; COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + boolean hasBeanViolation ( String name ) ; + + COMMENT COMMENT COMMENT COMMENT <nb> public class ValidationImpl implements Validation { ...
Adding consistent method for beans violations
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
changed javadocs of sprite to better describe the function of the origin
<nb> public class WebSocketProtocolHandshakeHandler implements HttpHandler { } } - - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - private static String getWebSocketLocation ( HttpServerExchange exchange , String path ) { - String protocol = STRING0 ; - if ( exchange ...
Remove unused code
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; JUnit38SortingTest . class , MaxComputerTest . class , InterceptorTest . class , - Timeout...
Added parallel tests to AllTests
<nb> public class El2Test { context . set ( STRING0 , list ) ; context . set ( STRING1 , System . class ) ; - El . eval ( context , STRING2 ) ; + El . eval ( context , STRING3 ) ; assertEquals ( STRING4 , Mirror . me ( String . class ) . invoke ( String . class , STRING5 , NUMBER0 ) ) ; assertEquals ( S...
El2Test fail in maven Linux
<nb> public abstract class ChooseItemAction extends EditorAction { return false ; } - return liveTemplateLookup . getTemplate ( ) . getShortcutChar ( ) == shortcutChar ; + return TemplateSettings . getInstance ( ) . getShortcutChar ( liveTemplateLookup . getTemplate ( ) ) == shortcutChar ; } public stat...
ChooseItemAction should handle default shortcut char
<nb> public class PredictCsv { private static void usage ( ) { System . out . println ( STRING0 ) ; - System . out . println ( STRING1 ) ; + System . out . println ( STRING2 ) ; System . out . println ( STRING0 ) ; System . out . println ( STRING3 ) ; System . out . println ( STRING0 ) ;
Fix print statement
<nb> public class Request } - COMMENT - COMMENT - COMMENT - public boolean read ( ) - throws IOException { - return ( inputBuffer . realReadBytes ( null , NUMBER0 , NUMBER0 ) > NUMBER0 ) ; - } - - SINGLE - COMMENT COMMENT COMMENT <nb> public class Request } - protected stat...
Remove unused methods identified by the UCDetector
<nb> public class GCalControlSet extends PopupControlSet { DependencyInjectionService . getInstance ( ) . inject ( this ) ; this . title = title ; calendars = Calendars . getCalendars ( ) ; + getView ( ) ; SINGLE } @ override
Fixed a bug where GCalControlSet might not be initialized correctly
<nb> public class SpringApplication { } return context ; } - catch ( Exception ex ) { + catch ( Throwable ex ) { try { for ( SpringApplicationRunListener runListener : runListeners ) { finishWithException ( runListener , context , ex ) ; <nb> public class SpringApplication { } private void finis...
Catch Throwable instead of Exception in Spring Application
<nb> public class AndroidPrebuiltAar extends AndroidLibrary implements HasAndroidReso @ override public void addToCollector ( AndroidPackageableCollector collector ) { + super . addToCollector ( collector ) ; collector . addNativeLibsDirectory ( getBuildTarget ( ) , nativeLibsDirectory ) ; } }
fix add super addToCollector into AndroidPrebuiltAar addToCollector
<nb> public class SVNPresenter extends BaseVcsPresenter binder . bind ( commands , this ) ; - GWT . < Binder > create ( Binder . class ) . bind ( commands , this ) ; - view_ . getDiffButton ( ) . addClickHandler ( new ClickHandler ( ) { @ override
eliminate extra command binding call
<nb> package NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT COMMENT COMMENT COMMENT <nb> package NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT + COMMENT COMMENT public abstract class ObjectUtils { <nb> public abstract class ObjectUtils { ...
added missing javadoc
<nb> public class OptionalWarningAccountStateHandler extends DefaultAccountStateHandl @ notnull private String warningAttributeValue ; - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT private boolean displayWarningOnMatch = true ;
fixed cs issue
<nb> public final class FileSystemMasterTest { COMMENT COMMENT COMMENT + COMMENT COMMENT private AlluxioURI createTempUfsDir ( String ufsPath ) throws IOException { String path = mTestFolder . newFolder ( ufsPath . split ( STRING0 ) ) . getPath ( ) ;
add throws javadoc
<nb> public class Nio2Endpoint extends AbstractJsseEndpoint < Nio2Channel > { super . unbind ( ) ; SINGLE shutdownExecutor ( ) ; - this . nioChannels . clear ( ) ; - this . processorCache . clear ( ) ; if ( getHandler ( ) != null ) { getHandler ( ) . recycle ( ) ; } <nb> public class NioEndpoint exten...
Remove unnecessary code
<nb> public class GtfsGraphBuilderImpl implements GraphBuilder { GtfsContext context = GtfsLibrary . createContext ( _dao , service ) ; - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - SINGLE - GTFSPatternHopFactory hf = new GTFSPatternHopFactory ( context ) ; hf . setFareServiceFactory...
remove duplicate code
<nb> public class ReferenceToClassesShortening { parent = parent . getContainingDeclaration ( ) ; } JetTypeArgumentList typeArgumentList = userType . getTypeArgumentList ( ) ; - userType . replace ( JetPsiFactory . createType ( userType . getProject ( ) , name + ( typeArgumentList == null ? STRING0 : typeArgume...
Fixed problem when JetTypeElement was replaced by JetTypeReference resulting in invalid PSI structure
<nb> public class StoreDirect extends Store { recid = indexPages [ ( int ) ( recid / PAGE_SIZE ) ] + recid % PAGE_SIZE ; return recid ; } - private long recidToOffsetChecksum ( long recid ) { - SINGLE - recid = ( recid - NUMBER0 ) * INDEX_VAL_SIZE + HEAD_END + NUMBER1 ; - - if ( recid + INDEX_VAL_SIZE >...
remove unused method
<nb> public class MUCRoomImpl implements MUCRoom { Presence presence = leaveRole . getPresence ( ) . createCopy ( ) ; presence . setType ( Presence . Type . unavailable ) ; presence . setStatus ( null ) ; + SINGLE + Element childElement = presence . getChildElement ( STRING0 , STRING1 ) ; + if ( childElemen...
Send role none when leaving the room
<nb> package NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT public final class TFS extends AbstractTFS { <nb> package NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT...
Improve documentation of TFS and TFSFT in tachyon hadoop
<nb> public final class ByteStreams { } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public static long copy ( InputStream from , + OutputSupplier < ? extends OutputStream > to ) throws IOException { + boolean threw = true ...
Add the missing asymmetric ByteStreams copy
<nb> public class FloatingSearchView extends FrameLayout { public FloatingSearchView ( Context context , AttributeSet attrs ) { super ( context , attrs ) ; - SEARCH_BAR_LEFT_SECTION_DESIRED_WIDTH = Util . dpToPx ( NUMBER0 ) ; + SEARCH_BAR_LEFT_SECTION_DESIRED_WIDTH = Util . dpToPx ( NUMBER1 ) ; init ( attrs...
changed action items avail width
<nb> abstract class CustomBar extends LinearLayout { if ( bitmap != null ) { BitmapDrawable drawable = new BitmapDrawable ( getContext ( ) . getResources ( ) , bitmap ) ; - imageView . setBackgroundDrawable ( drawable ) ; + imageView . setImageDrawable ( drawable ) ; } } }
Fix a setBackgroundDrawable in layoutlib
<nb> public class AQUtility { } public static File getCacheFile ( File dir , String url ) { + if ( url == null ) return null ; String name = getCacheFileName ( url ) ; File file = makeCacheFile ( dir , name ) ; return file ;
Add url null check for getting cached file
<nb> public class ColibriIQProvider channel . setAdaptiveLastN ( Boolean . parseBoolean ( adaptiveLastN ) ) ; + String adaptiveSimulcast + = parser . getAttributeValue ( + STRING0 , + ColibriConferenceIQ . Channel + . ADAPTIVE_SIMULCAST_ATTR_NAME ) ; + + if ( ! StringUtils . isNullOrEmpty ( adaptive...
Parses the adaptive simulcast attribute