diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class WindowsFileSystem extends JavaIoFileSystem {
return false ;
}
} catch ( IOException e ) {
- e . printStackTrace ( ) ;
return false ;
}
} | Remove stray e printStackTrace |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public class LongSparseArray < E > implements Cloneable {
private static final Object DELETED = new Object ( ) ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb... | Fix javadoc typo in SparseArray |
<nb> public class RefasterJsScannerTest {
public void test_caseStatement ( ) throws Exception {
String externs = STRING0
+ STRING1
- + STRING2 ;
+ + STRING3 ;
String originalCode = STRING0
+ STRING4
+ STRING5 | Fix typo in JS code in a test |
<nb> public abstract class AbstractChannel extends DefaultAttributeMap implements Cha
int localReadAmount = doRead ( buf ) ;
if ( localReadAmount > NUMBER0 ) {
readAmount += localReadAmount ;
- expandReadBuffer ( buf , hasByteBuffer ) ;
} else if ( localReadAmount == NUMBER0 ) {
if ( ! expandReadBuffer ( bu... | Do not call expandReadBuffer too often |
<nb> public abstract class AbstractStoreTest < K , V > extends TestCase {
}
protected void assertEquals ( String message , Versioned < V > v1 , Versioned < V > v2 ) {
- assertEquals ( v1 , v2 ) ;
+ assertEquals ( message , v1 , v2 ) ;
}
protected void assertEquals ( Versioned < V > v1 , Versioned < V > ... | Fix minor bug in assertEquals String Versioned Versioned where message was not being passed through |
<nb> public class FileUtil {
return false ;
}
- if ( equals ( file1 , file1 ) ) {
+ if ( equals ( file1 , file2 ) ) {
return true ;
} | fixed FileUtil equals |
<nb> public class ElasticsearchConfiguration {
@ uripath @ metadata ( required = STRING0 )
private String clusterName ;
- @ uriparam ( enums = STRING1 ) @ metadata ( required = STRING0 )
+ @ uriparam ( enums = STRING2 ) @ metadata ( required = STRING0 )
private String operation ;
@ uriparam
private Stri... | Add Multiget Operation support |
<nb> public interface AgentBuilder {
} catch ( UnmodifiableClassException exception ) {
throw new IllegalStateException ( STRING0 + collector , exception ) ;
} catch ( ClassNotFoundException exception ) {
- throw new IllegalStateException ( STRING1 + collector , exception ) ;
+ throw new IllegalStateException... | Cleaned javadoc statement |
<nb> import static NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix float docs |
<nb> public class PersistentFSTest extends PlatformTestCase {
public void testAccessingFileByID ( ) throws Exception {
File dir = createTempDirectory ( ) ;
File file = new File ( dir , STRING0 ) ;
- file . createNewFile ( ) ;
+ assertTrue ( file . createNewFile ( ) ) ;
VirtualFile vFile = LocalFileSystem ... | Make inspections happy |
<nb> public class MapViewTrackingUtilities implements OsmAndLocationListener , IMapLoc
public boolean isShowViewAngle ( ) {
-
return showViewAngle ;
}
<nb> public class PointLocationLayer extends OsmandMapLayer {
private RectF getHeadingRect ( int locationX , int locationY ) {
- int rad = ( int ... | Make cone bigger |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class AzureDiscovery extends ZenDiscovery {
@ inject
public AzureDiscovery ( Settings settings , ClusterName clusterName , ThreadPool threadPool , ... | Fix non working update dynamic settings |
<nb> public class AppleBundle extends AbstractBuildRule {
}
@ override
- @ nullable
public ImmutableList < Step > getBuildSteps (
BuildContext context ,
BuildableContext buildableContext ) {
- return null ;
+ return ImmutableList . of ( ) ;
}
} | Fix AppleBundle getBuildSteps so it returns a non null value |
<nb> package NAMESPACE ;
COMMENT
public interface DraggableListener {
- public void onMaximized ( ) ;
+ void onMaximized ( ) ;
- public void onMinimized ( ) ;
+ void onMinimized ( ) ;
- public void onClosedToLeft ( ) ;
+ void onClosedToLeft ( ) ;
- public void onClosedToRight ( ) ;
+ void on... | Remove public modifier from DraggableListener interface |
<nb> public class TimeoutBackupStore
return store . shardExists ( uuid ) ;
}
catch ( UncheckedTimeoutException e ) {
- throw new PrestoException ( RAPTOR_BACKUP_TIMEOUT , STRING0 ) ;
+ throw new PrestoException ( RAPTOR_BACKUP_TIMEOUT , STRING1 ) ;
}
} | Fix shardExists message in TimeoutBackupStore |
<nb> public class SecretKeyCredentialHandler extends DigestCredentialHandlerBase {
@ override
- public String mutate ( String inputCredentials , byte [ ] salt , int iterations ) {
+ protected String mutate ( String inputCredentials , byte [ ] salt , int iterations ) {
KeySpec spec = new PBEKeySpec ( inputCr... | Align visibility of overridden method with super class |
<nb> public class MetaClass {
COMMENT
COMMENT
private static String [ ] decodeArray ( String encoded ) {
+ if ( encoded . length ( ) == NUMBER0 ) return new String [ ] { } ;
char [ ] chars = encoded . trim ( ) . toCharArray ( ) ;
SINGLE
<nb> public class MetaClassTest {
assertArrayEquals ( new Integer... | Updated KBPTrainerSlowITest to modern infrastructure |
<nb> public class WindowManagerDebugConfig {
static final boolean DEBUG_RESIZE = false ;
static final boolean DEBUG = false ;
static final boolean DEBUG_ADD_REMOVE = false ;
- static final boolean DEBUG_FOCUS = false ;
+ static final boolean DEBUG_FOCUS = true ;
static final boolean DEBUG_FOCUS_LIGHT = DEBU... | Temporary enable logging for monkey testing |
<nb> public class ArrayWritableObjectInspector extends SettableStructObjectInspector
final StructFieldImpl field = new StructFieldImpl ( name , getObjectInspector ( fieldInfo ) , i ) ;
fields . add ( field ) ;
- fieldsByName . put ( name , field ) ;
+ fieldsByName . put ( name . toLowerCase ( ) , field ) ;
... | Select parquet struct field with upper case throws NPE Jimmy reviewed by Xuefu |
<nb> public class TripsModelInfo implements Serializable {
private static final long serialVersionUID = - NUMBER0 ;
- public TripsModelInfo ( String headsign , Integer number , String calendarId , AgencyAndId agencyId ) {
+ public TripsModelInfo ( String headsign , Integer number , String calendarId , AgencyA... | Rename agencyId to tripId it is really a trip ID |
<nb> public class GlobalStatusSelectorBox
{
this . mainFrame = mainFrame ;
+ this . setPreferredSize ( new Dimension ( NUMBER0 , NUMBER1 ) ) ;
+
String tooltip = STRING0
+ STRING1
+ STRING2 ; | Fix the size of the Global status selector box |
<nb> public class DefaultArtifactRepositoryContainer extends DefaultNamedDomainObject
return returnedResolvers ;
}
- protected < T extends ArtifactRepository > T addRepository ( T repository , Action < ? super T > action , String defaultName ) {
- action . execute ( repository ) ;
- return addRepository ( r... | Remove unused method |
<nb> public class Compiler extends AbstractCompiler {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
COMMENT
- private ExecutorService compilerExecutor =
+ private static final ExecutorService compilerExecutor =
Executors . newCachedThreadPool ( new ThreadFactory ( ) {
@ override public Thread newThrea... | Avoid retaining tons of memory on the finalizer due to retained backrefs |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
+
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class RemotingSubsystemElement extends AbstractSubsystemElement < Rem
}
COMMENT
+ @ override
protected void getClearingUpda... | fix imports x |
<nb> public class UdcExtensionImpl extends KernelExtension < UdcTimerTask >
}
catch ( Exception e )
{
- System . err . println ( STRING0 + e ) ;
+ SINGLE
+ SINGLE
}
return sysProps ;
} | Remove error output on non loadable udc properties |
<nb> public final class Indexer {
throw new IndexerException ( STRING0 ) ;
}
- if ( ! env . validateExuberantCtags ( ) ) {
+ if ( zapCache . isEmpty ( ) && ! env . validateExuberantCtags ( ) ) {
throw new IndexerException ( STRING1 ) ;
}
if ( zapCache == null ) { | do not check ctags when clearing history cache |
<nb> public class AuthenticatorActivity extends AccountAuthenticatorActivity
mWaitingForOpId = Long . MAX_VALUE ;
if ( result . isSuccess ( ) ) {
boolean success = false ;
- String username = ( String ) result . getData ( ) . get ( NUMBER0 ) ;
+ String username ;
+ if ( result . getData ( ) . get ( NUMBER0 ... | Fix crash when adding a saml account |
<nb> public abstract class AbstractHistogram extends AbstractHistogramBase implements
int subBucketHalfCountMagnitude ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
int unitMagnitude ;
int subBucketHalfCount ;
<nb> public abstract class AbstractHistogram extends AbstractHistogramBase implements
int subBucket... | Fix html entity add doc snippet so that javadoc doesn t complain about an empty param |
<nb> public class StringUtil
return formatFileSize ( new Long ( size ) . intValue ( ) ) ;
}
+ SINGLE
+ public static String formatElapsedTime ( int seconds )
+ {
+ if ( seconds < NUMBER0 )
+ return seconds + STRING0 + ( seconds == NUMBER1 ? STRING1 : STRING2 ) ;
+ else if ( seconds < NUMBER2 )
+ ret... | add friendly elapesed time formatting method |
<nb> public class InnerClassVisitor extends ClassCodeVisitorSupport implements Opcode
} ;
MethodNode method = classNode . addSyntheticMethod (
STRING0 + objectDistance ,
- ACC_PUBLIC + ACC_BRIDGE + ACC_SYNTHETIC ,
+ ACC_PUBLIC + ACC_SYNTHETIC ,
ClassHelper . OBJECT_TYPE ,
parameters ,
ClassNode . EMPTY_... | remove bridge flag to ensure spring proxy generators don t get confused |
<nb> public interface ClassFileLocator {
COMMENT
public static Resolution read ( Class < ? > type ) {
try {
- return ClassFileLocator . ForClassLoader . of ( type . getClassLoader ( ) ) . locate ( type . getName ( ) ) ;
+ return locate ( type . getClassLoader ( ) , type . getName ( ) ) ;
} catch ( IOExcepti... | Removed obsolete allocation |
<nb> import NAMESPACE
import NAMESPACE ;
import NAMESPACE ;
+ import static NAMESPACE ;
+ import static NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
<nb> public class IdeErrorMessages {
public static final DiagnosticRenderer < Diagnostic > RENDERER = new DispatchingDiagnosticRenderer ( MAP , DefaultError... | Added first HTML error message for TYPE_MISMATCH diagnostic |
<nb> public class BpmnParse extends Parse {
ActivityImpl destinationActivity = scope . findActivity ( destinationRef ) ;
if ( sourceActivity == null ) {
- addError ( STRING0 + id + STRING1 , sequenceFlowElement ) ;
+ addError ( STRING2 + sourceRef + STRING3 + id + STRING1 , sequenceFlowElement ) ;
}
if ( ... | improved error message |
<nb> public abstract class AbstractDatabase implements Database {
if ( ranChangeSet . getLastCheckSum ( ) == null ) {
ChangeSet changeSet = databaseChangeLog . getChangeSet ( ranChangeSet ) ;
if ( changeSet != null && new ContextChangeSetFilter ( contexts ) . accepts ( changeSet ) && new DbmsChangeSetFilter ( thi... | improve output message |
<nb> public class DemoActivity extends AppCompatActivity {
@ override
public boolean onTabSelected ( int position , boolean wasSelected ) {
- currentFragment = adapter . getCurrentFragment ( ) ;
+ if ( currentFragment == null ) {
+ currentFragment = adapter . getCurrentFragment ( ) ;
+ }
+
if ( wasSel... | Fixed anim for demo |
<nb> public class WPActivityUtils {
}
public static String getNonNullString ( TextView textView ) {
- if ( textView != null && textView . getText ( ) . length ( ) != NUMBER0 ) {
- return textView . getText ( ) . toString ( ) ;
- }
-
- return STRING0 ;
+ return ( textView != null ) ? textView . getText... | Simplifying utility method |
<nb> public class TachyonConf {
try {
siteProps . load ( siteInputStream ) ;
} catch ( IOException e ) {
- LOG . info ( STRING0 , e ) ;
+ LOG . warn ( STRING0 , e ) ;
}
} | Move up level of log to WARN when site conf properties file is not found |
<nb> public class BlockDataCyler implements BlockTool {
} else if ( type == BlockID . WOODEN_STAIRS || type == BlockID . COBBLESTONE_STAIRS ) {
data = ( data + NUMBER0 ) % NUMBER1 ;
} else if ( type == BlockID . SIGN_POST ) {
- data = ( data + NUMBER0 ) % NUMBER2 ;
+ data = ( data + NUMBER0 ) % NUMBER2 ;
+ ... | Add cycling for wall signs and steps |
<nb> public class BuildNumber implements Comparable < BuildNumber > {
private final int myBaselineVersion ;
private final int myBuildNumber ;
private static final String BUILD_NUMBER = STRING0 ;
- private static final int TOP_BASELINE_VERSION = NUMBER0 ;
+ private static final int TOP_BASELINE_VERSION = NUMBE... | missed update of build number |
<nb> public class ExtensionActiveScan extends ExtensionAdaptor implements
this . setOrder ( NUMBER0 ) ;
policyManager = new PolicyManager ( this ) ;
ascanController = new ActiveScanController ( this ) ;
- attackModeScanner = new AttackModeScanner ( this ) ;
}
<nb> public class ExtensionActiveScan extend... | Delay init of attack mode scanner to prevent NPE |
<nb> public class View implements Drawable . Callback , KeyEvent . Callback ,
COMMENT
COMMENT
public boolean performClick ( ) {
- sendAccessibilityEvent ( AccessibilityEvent . TYPE_VIEW_CLICKED ) ;
-
- ListenerInfo li = mListenerInfo ;
+ final boolean result ;
+ final ListenerInfo li = mListenerInfo ;
... | Send accessibility click event after calling click listener |
<nb> public class Common
return tmpSet ;
}
- static FileChannel createTmpFileChannel ( ) throws IOException
+ public static FileChannel createTmpFileChannel ( ) throws IOException
{
final File file = File . createTempFile ( STRING0 , STRING1 ) ;
file . deleteOnExit ( ) ; | Make static method public |
<nb> public class SparkReduceSinkMapJoinProc implements NodeProcessor {
MapJoinDesc mjDesc = mapJoinOp . getConf ( ) ;
HiveConf conf = context . conf ;
+ SINGLE
+ SINGLE
+ mjDesc . resetOrder ( ) ;
+
float hashtableMemoryUsage ;
if ( hasGroupBy ( mapJoinOp , context ) ) {
hashtableMemoryUsage = conf... | Investigate test failure on skewjoin q Spark Branch Chao Sun via Szehon |
<nb> public class Log4jFileAppender extends FileAppender {
private int mMaxFileSize = NUMBER0 ;
private int mCurrentFileBackupIndex = - NUMBER0 ;
private int mDeletionPercentage = NUMBER1 ;
- private long mMaxFileBytes = mMaxFileSize * NUMBER2 * NUMBER2 ;
private String mCurrentFileName = STRING0 ;
private ... | Fixed log max file size |
<nb> public abstract class AsyncProvidersBasicTest extends AbstractBasicTest {
final long elapsedTime = System . currentTimeMillis ( ) - t1 ;
System . out . println ( STRING0 + ( elapsedTime ) ) ;
Assert . assertNotNull ( ex . getCause ( ) ) ;
- Assert . assertTrue ( elapsedTime >= NUMBER0 && elapsedTime <= NUM... | Increase the timeout value to avoid test failure on loaded Hudson instance |
<nb> public class UniformSample implements Sample {
@ override
public Snapshot getSnapshot ( ) {
- final int s = ( int ) size ( ) ;
+ final int s = size ( ) ;
final List < Long > copy = new ArrayList < Long > ( s ) ;
for ( int i = NUMBER0 ; i < s ; i ++ ) {
copy . add ( values . get ( i ) ) ; | Remove unused cast |
<nb> public class CreateIndexGenerator implements SqlGenerator < CreateIndexStatement >
SINGLE
SINGLE
List < String > associatedWith = StringUtils . splitAndTrim ( statement . getAssociatedWith ( ) , STRING0 ) ;
- if ( associatedWith . contains ( Index . MARK_PRIMARY_KEY ) || associatedWith . contains ( Index .... | fixed NPE when you use Oracle and the associatedWith is undefined |
<nb> public abstract class AbstractTicketValidator implements TicketValidator , Initia
private ServiceProperties serviceProperties ;
private String casValidate ;
private String trustStore ;
+ private String trustPassword ;
SINGLE
<nb> public abstract class AbstractTicketValidator implements TicketValida... | Add a trustPassword to AbstractTicketValidator for use with password protected keystores as in the sample application |
<nb> public class MetricsSettings
@ description ( STRING0 )
public static Setting < Boolean > csvEnabled = setting ( STRING1 , Settings . BOOLEAN , Settings . FALSE ) ;
@ description ( STRING2 +
- STRING3 +
- STRING4 )
+ STRING5 )
public static Setting < File > csvPath = setting ( STRING6 , Settings . PAT... | Fix the description of the metrics path |
<nb> public class CxxLinkableEnhancer {
SINGLE
private CxxLinkableEnhancer ( ) { }
+ COMMENT
+ COMMENT
+ COMMENT
public static CxxLink createCxxLinkableBuildRule (
CxxBuckConfig cxxBuckConfig ,
CxxPlatform cxxPlatform ,
<nb> public class CxxLinkableEnhancer {
COMMENT
COMMENT
COMMENT
+ COMMEN... | Add param comments to CxxLinkableEnhancer |
<nb> public class ManagedModelProjection < M > extends TypeCompatibilityModelProjectionS
closed = true ;
}
- SINGLE
class State implements ModelElementState {
@ override
public String getDisplayName ( ) {
<nb> public class ManagedModelProjection < M > extends TypeCompatibilityModelProjectionS
}
pr... | Shuffled TODOs around |
<nb> class DefaultRenderContext extends AbstractContext < RenderContext > implements Ren
public String toString ( ) {
StringBuilder sb = new StringBuilder ( ) ;
- sb . append ( STRING0 ) ;
+ sb . append ( STRING0 ) ;
sb . append ( render ( ) ) ;
- sb . append ( STRING1 ) ;
- sb . append ( STRING2 ) ;
... | Fixed DefaultRenderContext toString |
<nb> public final class Moco {
return proxy ( checkNotNullOrEmpty ( url , STRING0 ) , Failover . DEFAULT_FAILOVER ) ;
}
- public static ResponseHandler proxy ( final Resource url ) {
+ public static ResponseHandler proxy ( final ContentResource url ) {
return proxy ( checkNotNull ( url , STRING0 ) , Failove... | changed proxy with resource to proxy with content resource |
<nb> public class ServerSentEventTestCase {
connection . send ( sb . toString ( ) , new ServerSentEventConnection . EventCallback ( ) {
@ override
public void done ( ServerSentEventConnection connection , String data , String event , String id ) {
- IoUtils . safeClose ( connection ) ;
+ connection . shutdown... | Fix another SSE test issue |
<nb> public class PasswordSafePromptDialog extends DialogWrapper {
switch ( passwordSafe . getSettings ( ) . getProviderType ( ) ) {
case MASTER_PASSWORD :
myRememberPasswordCheckBox . setEnabled ( true ) ;
- myRememberPasswordCheckBox . setSelected ( false ) ;
+ myRememberPasswordCheckBox . setSelected ( tru... | password Preselect remember password in password prompt dialog |
<nb> public class DcorefChineseBenchmarkSlowITest extends TestCase {
setAll ( lowResults , highResults , expectedResults , BCUBED_F1 , FLOAT0 ) ;
setAll ( lowResults , highResults , expectedResults , CEAFM_TP , NUMBER0 ) ;
- setAll ( lowResults , highResults , expectedResults , CEAFM_F1 , FLOAT1 ) ;
+ setLowH... | Fixing one target at a time |
<nb> public class Editor {
( ( Spannable ) mTextView . getText ( ) ) . removeSpan ( mSuggestionRangeSpan ) ;
mTextView . setCursorVisible ( mCursorWasVisibleBeforeSuggestions ) ;
- if ( hasInsertionController ( ) ) {
+ if ( hasInsertionController ( ) && ! extractedTextModeWillBeStarted ( ) ) {
getInsertionC... | Supress SuggestionPopup for original field |
<nb> public class GelfCodec implements Codec {
private final GelfChunkAggregator aggregator ;
private final ObjectMapper objectMapper ;
- private final ConfigurationRequest requestedConfiguration ;
@ inject
- public GelfCodec ( @ assisted Configuration configuration , GelfChunkAggregator aggregator , Conf... | remove unused field and injected object |
<nb> class CopyClassDialog extends DialogWrapper {
} else {
final Module module = ModuleUtil . findModuleForFile ( myDefaultTargetDirectory . getVirtualFile ( ) , myProject ) ;
if ( module != null ) {
- myTargetDirectory = PackageUtil . findOrCreateDirectoryForPackage ( module , packageName , myDefaultTargetDir... | do not create copied test in source root when corresponding package doesn t exist yet in the test root |
<nb> public class WindowManagerService extends IWindowManager . Stub
}
if ( DEBUG_APP_TRANSITIONS ) Slog . v ( TAG ,
STRING0 + transit ) ;
- } else if ( ( oldWallpaper != null ) && ( oldWallpaper != mWallpaperTarget ) ) {
+ } else if ( oldWallpaper != null ) {
SINGLE
SINGLE
transit = WindowManagerPolicy... | Revert change to correct animations |
<nb> public class EffectCommand extends VanillaCommand {
final PotionEffect applyEffect = new PotionEffect ( effect , duration , amplification ) ;
player . addPotionEffect ( applyEffect , true ) ;
- broadcastCommandMessage ( sender , String . format ( STRING0 , effect . getName ( ) , effect . getId ( ) , amplif... | Actually display correct effect duration in seconds |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
-
import static NAMESPACE ;
COMMENT
COMMENT
+ COMMENT
COMMENT
public class OAuthRegis... | Fixed cs issue |
<nb> public class CompositeByteBuf extends AbstractByteBuf {
+ capacity ( ) ) ;
}
- List < ByteBuf > components = decompose ( index , NUMBER0 ) ;
- switch ( components . size ( ) ) {
- case NUMBER1 :
- return Unpooled . EMPTY_BUFFER ;
- case NUMBER0 :
- return components . get ( NUMBER1 ) ;
- defaul... | Simplify the process of getting the component |
<nb> public class AnimatorInflater {
( toType <= TypedValue . TYPE_LAST_COLOR_INT ) ) ) {
SINGLE
getFloats = false ;
- anim . setEvaluator ( new ArgbEvaluator ( ) ) ;
+ evaluator = new ArgbEvaluator ( ) ;
}
if ( getFloats ) { | Set evaluator after setting values so that it can take effect |
<nb> public abstract class TvInputService extends Service {
public abstract boolean onTune ( Uri channelUri ) ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public abstract class TvInputService extends Service {
public abstract void onTune ( Ur... | Specify the default implementation of onTune Uri Bundle |
<nb> public class Diff {
return builder . getFirstChange ( ) ;
}
- Enumerator < T > enumerator = new Enumerator < T > ( objects1 . length + objects2 . length , ContainerUtil . < T > canonicalStrategy ( ) ) ;
+ Enumerator < T > enumerator = new Enumerator < T > ( trimmedLength1 + trimmedLength2 , ContainerUtil... | do not allocate memory for trimmed elements |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class VirtualMachineProxyImpl implements JdiTimer , VirtualMachineProxy {
return myVirtualMachine . eventRequestManager ( ) ;
} ... | fixed compatibility with kotlin |
<nb> public class HighlightMethodUtil {
if ( returnType == null || superReturnType == null || method == superMethod ) continue ;
PsiClass superClass = superMethod . getContainingClass ( ) ;
if ( superClass == null ) continue ;
- SINGLE
- if ( ! Comparing . strEqual ( method . getName ( ) , superMethod . getNa... | hierarchical super signatures do not contain any EJB super methods |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Removed workaround for build source locking |
<nb> public enum VisitorConfig {
private final boolean visitFieldProperties , visitMethodProperties , visitConstructors ;
+ public static VisitorConfig get ( boolean fields , boolean methods ) {
+ return get ( fields , methods , VisitorConfig . ALL ) ;
+ }
+
public static VisitorConfig get ( boolean fie... | Fix backwards compat |
<nb> package NAMESPACE ;
import static NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ProjectBuildFileParser implements AutoCloseable {
STRING0 +
STRING1 +
STRING2 +
- Escaper . escapeAsBashString ( pathlibDir ) + ST... | Fix parsing on Windows |
<nb> public class TaskListFragment extends ListFragment implements OnScrollListener ,
taskAdapter . changeCursor ( currentCursor ) ;
SINGLE
- filter . title = getString ( R . string . TLA_custom ) ;
if ( getActivity ( ) instanceof TaskListActivity )
- ( ( TaskListActivity ) getActivity ( ) ) . setListsTitle... | Don t set the title of the actual filter instance when switching to custom context |
<nb> public class RenderBlockFluid implements ISimpleBlockRenderingHandler
tessellator . setBrightness ( block . getMixedBrightnessForBlock ( world , x , y - NUMBER0 , z ) ) ;
if ( ! rises )
{
- tessellator . setColorOpaque_F ( LIGHT_Y_NEG , LIGHT_Y_NEG , LIGHT_Y_NEG ) ;
+ tessellator . setColorOpaque_F ( LIG... | Fix render colour on bottom of fluids |
<nb> public class GFileUtils {
}
}
+ public static void cleanDirectory ( File directory ) {
+ try {
+ FileUtils . cleanDirectory ( directory ) ;
+ } catch ( IOException e ) {
+ throw new UncheckedIOException ( e ) ;
+ }
+ }
+
public static boolean deleteQuietly ( File file ) {
return FileUtils... | Add convenience method for cleaning a directory and unchecking any exceptions |
<nb>
COMMENT
package 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 ;
- im... | avoided NPE in case tx error |
<nb> public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
public static char [ ] getChars ( String self ) {
- int size = self . length ( ) ;
- char [ ] answer = new char [ size ] ;
- for ( int i = NUMBER0 ; ... | Some DGM niceness for Character remove some unecessary functionality |
<nb> public class BooleanMaxAggregation
SINGLE
boolean newValue = cursor . getBoolean ( field ) ;
- if ( newValue == true ) {
+ if ( newValue ) {
SINGLE_BOOLEAN . setBoolean ( valueSlice , valueOffset , NUMBER0 , true ) ;
}
}
<nb> public class BooleanMaxAggregation
while ( cursor . advanceNextPositi... | simplified boolean if statements |
<nb> public class TextView extends View implements ViewTreeObserver . OnPreDrawListener
COMMENT
COMMENT
public void onCommitCompletion ( CompletionInfo text ) {
+ SINGLE
}
COMMENT
<nb> public class TextView extends View implements ViewTreeObserver . OnPreDrawListener
COMMENT
COMMENT
public void on... | Removed empty block warnings in TextView |
<nb> public final class NinePatch_Delegate {
COMMENT
byte [ ] c , int paint_instance_or_null , int destDensity , int srcDensity ) {
draw ( canvas_instance ,
- ( int ) loc . left , ( int ) loc . top , ( int ) loc . width ( ) , ( int ) loc . height ( ) ,
+ ( int ) loc . left , ( int ) loc . top , ( int ) loc . ... | Fix a bug in Nine Patch library |
<nb> public class GestureOverlayView extends FrameLayout {
private final Rect mInvalidRect = new Rect ( ) ;
private final Path mPath = new Path ( ) ;
- private boolean mGestureVisible ;
+ private boolean mGestureVisible = true ;
private float mX ;
private float mY ; | Make gestures visible again |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Removed inane javadoc comment |
<nb> import static NAMESPACE ;
import static NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class AbstractSocketServerBootstrapTest {
public void testFailedBindAttempt ( ) throws Exception {
ServerBootstrap bootstrap ... | Fixed a test failure where OioSocketServerBootstrapTest blocks indefinitely |
<nb> public class DefaultRenderableSorter implements RenderableSorter , Comparator < Ren
SINGLE
SINGLE
SINGLE
- o1 . modelTransform . getTranslation ( tmpV1 ) ;
- o2 . modelTransform . getTranslation ( tmpV2 ) ;
+ o1 . worldTransform . getTranslation ( tmpV1 ) ;
+ o2 . worldTransform . getTranslation ( tm... | Forgot to commit this |
<nb> public class DevicePolicyManagerService extends IDevicePolicyManager . Stub {
DevicePolicyData policy = getUserData ( profileId ) ;
ActiveAdmin admin = policy . mAdminMap . get ( ownerComponent ) ;
+ if ( admin == null ) {
+ return Collections . emptyList ( ) ;
+ }
+
if ( admin . crossProfileWidget... | Fix NPE in device policy manager service |
<nb> public class ResolverUtil < T > {
matches . add ( ( Class < T > ) type ) ;
}
} catch ( Throwable t ) {
- log . error ( STRING0 + fqn + STRING1 + STRING2
- + t . getClass ( ) . getName ( ) + STRING3 + t . getMessage ( ) , t ) ;
+ log . warn ( STRING0 + fqn + STRING1 + STRING2 +
+ t . getClass ( ) . ge... | do not change log level |
<nb> public abstract class OrmLiteSqliteOpenHelper extends SQLiteOpenHelper {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public abstract class OrmLiteSqliteOpenHelper extends SQLiteOpenHelper {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
CO... | Fixed some javadocs issues |
<nb> public final class ActivityStackSupervisor implements DisplayListener {
throw new IllegalStateException ( STRING0 ) ;
}
mActivityDisplays . put ( displayId , activityDisplay ) ;
+ calculateDefaultMinimalSizeOfResizeableTasks ( activityDisplay ) ;
}
createStackOnDisplay ( HOME_STACK_ID , Display . DEF... | Also calculate minimal task size when window manager is set |
<nb> public class Tethering extends BaseNetworkObserver {
}
private class StateReceiver extends BroadcastReceiver {
+ @ override
public void onReceive ( Context content , Intent intent ) {
String action = intent . getAction ( ) ;
+ if ( action == null ) { return ; }
if ( action . equals ( UsbManager . A... | Fix Tethering NPE |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ContentRevisionCache {
if ( path . getVirtualFile ( ) != null ) {
charset = path . getVirtualFile ( ) . getCharset ( ) ;
}
- return charse... | take BOM info account when transforming revision contents from bytes |
<nb> public class DbRuleManager {
}
} catch ( SQLException sqle ) {
Log . error ( sqle ) ;
+ SINGLE
+ return NUMBER0 ;
}
finally {
DbConnectionManager . closeConnection ( pstmt , con ) ; | Fixed issue with Mysql |
<nb> public class JIoEndpoint extends AbstractEndpoint {
}
SINGLE
- Thread timeoutThread = new Thread ( new AsyncTimeout ( ) , getName ( ) + STRING0 ) ;
+ Thread timeoutThread = new Thread ( new AsyncTimeout ( ) , getName ( ) + STRING0 ) ;
+ timeoutThread . setDaemon ( true ) ;
timeoutThread . start ( ) ;... | Make new timeout thread a daemon thread so Tomcat will shutdown properly |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+
import static NAMESPACE ;
import static NAMESPACE ;
<nb> public final class Types
value . getClass ( ) . getName ( ) ) ;
return target . cast ( value ) ;
}
+
+ public static < A , B extends A > B checkType ( A val... | Add checkType that takes an error code |
<nb> public class JavaDebuggerSupport extends DebuggerSupport {
@ override
@ notnull
public DebuggerActionHandler getEvaluateHandler ( ) {
- return myEvaluateActionHandler ;
+ return DISABLED ;
}
@ override | fixed NPE in evaluate handler |
<nb> import NAMESPACE ;
public abstract class AbstractResponseHandler implements ResponseHandler {
@ override
@ suppresswarnings ( STRING0 )
- public final ResponseHandler apply ( final MocoConfig config ) {
+ public ResponseHandler apply ( final MocoConfig config ) {
if ( config . isFor ( MocoConfig . RESP... | fixed compilation error in abstract response handler |
<nb> public class ScalpelFrameLayout extends FrameLayout {
View view = viewQueue . removeFirst ( ) ;
int level = levelQueue . removeFirst ( ) ;
- SINGLE
+ SINGLE
if ( view instanceof ViewGroup ) {
ViewGroup viewGroup = ( ViewGroup ) view ;
int count = viewGroup . getChildCount ( ) ; | Fix comment language |
<nb> public class JobV2 < J extends Schema > extends Schema < Job , JobV2 < J > > {
SINGLE
SINGLE
key = new JobKeyV1 ( job . _key ) ;
+ description = job . _description ;
progress = job . progress ( ) ;
status = job . _state . toString ( ) ;
msec = ( job . isStopped ( ) ? job . _end_time : System . curren... | Copy description field too |
<nb> public class TorodbSafeRequestProcessor implements SafeRequestProcessor < MongodCo
case WRITE_TRANSACTION :
callable = ( ) - > {
try ( WriteMongodTransaction trans = connection . openWriteTransaction ( ) ) {
- return trans . execute ( req , command , arg ) ;
+ Status < Result > result = trans . execute (... | Added a commit to write transactions on TorodbSafeRequestProcessor |
<nb> public final class InodeTree implements JournalCheckpointStreamable {
public CreatePathResult createPath ( AlluxioURI path , CreatePathOptions options )
throws FileAlreadyExistsException , BlockInfoException , InvalidPathException , IOException {
if ( path . isRoot ( ) ) {
- LOG . info ( STRING0 , path ) ;... | Perfect the exception information |
<nb> public final class ContactsContract {
public static final String SHOULD_SYNC = STRING0 ;
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- public static final String SOURCE_VISIBLE = STRING1 ;
-
- COMMENT
COMMENT
COMMENT
COMMENT | Remove SOURCE_VISIBLE flag that is otherwise unused |
<nb> public class FormsParsing {
}
}
- private static class ParserStoppedException extends RuntimeException {
+ public static class ParserStoppedException extends RuntimeException {
@ override
public Throwable fillInStackTrace ( ) {
return this ;
<nb> public class BuildDataManager {
return new File ... | make ParserStoppedException public getDataStorageRoot method to make custom storage |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.