diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public final class UniqueId implements UniqueIdInterface {
+ STRING0 + Arrays . toString ( id ) ) ;
}
suggestions . add ( name ) ;
- if ( ( short ) suggestions . size ( ) > max_results ) { SINGLE
+ if ( ( short ) suggestions . size ( ) >= max_results ) { SINGLE
return suggestions ;
}
row . clear ( ... | Fix api suggest to return the exact max param values instead of one greater |
<nb> public class JNDIRealm extends RealmBase {
COMMENT
COMMENT
public void setHostnameVerifierClassName ( String verifierClassName ) {
- if ( hostNameVerifierClassName != null ) {
+ if ( verifierClassName != null ) {
this . hostNameVerifierClassName = verifierClassName . trim ( ) ;
} else {
this . host... | Use the right variable for null check the method variable that is |
<nb> public final class MountTable {
COMMENT
public synchronized TachyonURI resolve ( TachyonURI uri ) throws InvalidPathException {
String path = uri . getPath ( ) ;
- LOG . info ( STRING0 + path ) ;
+ LOG . debug ( STRING0 + path ) ;
String mountPoint = getMountPoint ( uri ) ;
if ( mountPoint != null ) ... | Reduce mount resolving log entry to debug |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Fixed import error |
<nb> public final class AsyncTwitterFactory implements java . io . Serializable {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public AsyncTwitter getInstance ( Twitter twitter ) {
+ return new AsyncTwitterImpl ( twitter . getConfiguration ( ) , twitter . getAuthorization ( ) ) ;
+ }
+
+ ... | add copy factory method to AsyncTwitterFactory |
<nb> public class ClientReplicatedMapProxy < K , V > extends ClientProxy implements Repli
ClientMessage request = ReplicatedMapEntrySetCodec . encodeRequest ( name ) ;
ClientMessage response = invokeOnPartition ( request , getOrInitTargetPartitionId ( ) ) ;
ReplicatedMapEntrySetCodec . ResponseParameters result =... | rename entryset response parameter |
<nb> public interface IMethods {
Object [ ] arrayReturningMethod ( ) ;
IMethods iMethodsReturningMethod ( ) ;
- }
+
+ String stringReturningMethod ( ) ;
+ }
<nb> public class SmartNullsStubbingTest extends TestBase {
fail ( ) ;
} catch ( SmartNullPointerException e ) { }
}
+
+
+ @ test
+ p... | Added some more tests around empty return values from SmartNullReturnValues |
<nb> public class InterpreterFactory {
public void removeNoteInterpreterSettingBinding ( String noteId ) {
synchronized ( interpreterSettings ) {
- List < String > settingIds = interpreterBindings . remove ( noteId ) ;
+ List < String > settingIds = ( interpreterBindings . containsKey ( noteId ) ?
+ interpr... | Fix removing notes without specified interpreter settings |
<nb> public class RobolectricTestRunner extends BlockJUnit4ClassRunner implements Rob
Robolectric . bindDefaultShadowClasses ( ) ;
Robolectric . resetStaticState ( ) ;
Robolectric . application = ShadowApplication . bind ( createApplication ( ) , resourceLoader ) ;
+ Robolectric . application . onCreate ( ) ;
... | Call application onCreate from createApplication |
<nb> public final class Timber {
COMMENT
public static void plant ( Tree tree ) {
+ if ( tree == null ) {
+ throw new NullPointerException ( STRING0 ) ;
+ }
if ( tree == TREE_OF_SOULS ) {
throw new IllegalArgumentException ( STRING1 ) ;
}
<nb> public class TimberTest {
}
}
+ @ test public vo... | Throw an exception if trying to plant a null tree |
<nb>
- COMMENT
- COMMENT
- COMMENT
- COMMENT
package NAMESPACE ;
- COMMENT
- COMMENT
- COMMENT
- COMMENT
public enum PaintMode {
Accelerated ,
- OnRequest ,
- Repaint ;
-
+ Repaint ,
+ OnRequest ;
}
<nb> public class RenderFontJme implements RenderFont {
COMMENT
COMMENT
COMME... | Fix compile error |
<nb> public class PyNamedParameterImpl extends PyPresentableElementImpl < PyNamedParame
return PyTypeParser . getTypeByName ( this , typeName ) ;
}
}
+ for ( PyTypeProvider provider : Extensions . getExtensions ( PyTypeProvider . EP_NAME ) ) {
+ PyType result = provider . getParameterType ( this , func , cont... | Lowered priority of types of default values |
<nb> public class ODatabaseExport extends ODatabaseImpExpAbstract {
listener . onMessage ( STRING0 + recordTot + STRING1 ) ;
- writer . flush ( ) ;
-
totalRecords += recordTot ;
}
writer . endCollection ( level , true ) ; | removed flush to improve network performance |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public class TimedSpringRunnerTests {
@ test
public void timedTests ( ) throws Exception {
+ Assume . group ( TestGroup . PERFORMANCE ) ;
Class < Ti... | Add TimedSpringRunnerTests to performance test group |
<nb> public class DexFile
public void place ( ) {
int offset = NUMBER0 ;
- offset = NUMBER1 ;
+ offset = HeaderItemSection . place ( offset ) ;
+
for ( IndexedSection indexedSection : indexedSections ) {
indexedSection . unplace ( ) ;
offset = indexedSection . place ( offset ) ;
<nb> public class De... | Tidied up the place method |
<nb> public class RouteFormattedUriTest extends ContextTestSupport {
private String pattern = STRING0 ;
private String result = STRING1 ;
+ @ override
+ protected void setUp ( ) throws Exception {
+ deleteDirectory ( STRING2 ) ;
+ super . setUp ( ) ;
+ }
+
public void testFormattedUri ( ) throws Exc... | Fixed unit test to clean folder |
<nb> public class CountThenEstimate implements ICardinality , Externalizable
protected final static byte LC = NUMBER0 ;
protected final static byte AC = NUMBER1 ;
protected final static byte HLC = NUMBER2 ;
-
+ protected final static byte LLC = NUMBER3 ;
+
COMMENT
COMMENT
COMMENT
<nb> public class C... | CountThenEstimate supports LogLog |
<nb> class Http2Parser {
private void readUnknownFrame ( int streamId , FrameType frameType , int flags , int payloadSize )
throws IOException {
output . swallow ( streamId , frameType , flags , payloadSize ) ;
- swallow ( payloadSize ) ;
} | Don t swallow unknown payload in the parser |
<nb> public class WindowManagerService extends IWindowManager . Stub
SINGLE
SINGLE
if ( okToDisplay ( ) && mAppTransition . isTransitionSet ( ) ) {
- SINGLE
- if ( wtoken . hiddenRequested != visible ) {
- return ;
- }
wtoken . hiddenRequested = ! visible ;
if ( ! wtoken . startingDisplayed ) {
<n... | Fix a couple of issues with mOpeningApps |
<nb> public class APTCodeModelHelper {
return false ;
}
- public void callSuperMethod ( JMethod superMethod , GeneratedClassHolder holder , JBlock callBlock ) {
+ public JInvocation getSuperCall ( GeneratedClassHolder holder , JMethod superMethod ) {
JExpression activitySuper = holder . getGeneratedClass ( ... | extracted getSuperCall from callSuperMethod |
<nb> public class OtrConfigurationPanel
public AccountsComboBox ( )
{
Map < Object , ProtocolProviderFactory > providerFactoriesMap =
- new Hashtable < Object , ProtocolProviderFactory > ( ) ;
-
+ OtrActivator . getProtocolProviderFactories ( ) ;
+
if ( providerFactoriesMap == null )
return ;
<nb>... | OTR Configuration form does not load accounts in the dropdown |
<nb> public class HystrixCollapserTest {
private static HystrixCollapserMetrics createMetrics ( ) {
HystrixCollapserKey key = HystrixCollapserKey . Factory . asKey ( STRING0 ) ;
- HystrixCollapserMetrics metrics = HystrixCollapserMetrics . getInstance ( key , new HystrixPropertiesCollapserDefault ( key , Hystri... | Remove redundant variable introduction |
<nb> public class PGraphicsOpenGL extends PGraphics {
public void dispose ( ) { SINGLE
super . dispose ( ) ;
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- pgl . swapBuffers ( ) ;
+ if ( primarySurface ) {
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ pgl . swapBuf... | don t call swapBuffers in PGraphicsOpenGL dispose for offscreen |
<nb> public class HdfsFetcher implements FileFetcher {
if ( read < NUMBER0 ) {
break ;
} else {
- output . write ( buffer , NUMBER0 , read ) ;
+ output . write ( buffer , NUMBER0 , read ) ;
}
if ( fileCheckSumGenerator != null )
- fileCheckSumGenerator . update ( buffer ) ;
+ fileCheckSumGenerator .... | Updating the checksum code to handle computation for a buffer range |
<nb> final class ActivityStack {
case PAUSED :
SINGLE
SINGLE
- mStackSupervisor . mStoppingActivities . remove ( r ) ;
- stopActivityLocked ( r ) ;
+ if ( ! mStackSupervisor . mStoppingActivities . contains ( r ) ) {
+ mStackSupervisor . mStoppingActivities . add ( r ) ;
+ }
+ mStackSupervisor . sched... | Do not enter resumeTopActivity recursively |
<nb> public class ClientYamlTestExecutionContext {
response = e . getRestTestResponse ( ) ;
throw e ;
} finally {
+ SINGLE
+ Object repsponseBody = response != null ? response . getBody ( ) : null ;
SINGLE
- stash . stashValue ( STRING0 , response . getBody ( ) ) ;
+ stash . stashValue ( STRING0 , repsp... | TEST fix possible NPE in ClientYamlTestExecutionContext |
<nb> public class RadFormLayoutManager extends RadGridLayoutManager implements AlignP
else {
cc . vAlign = FormLayoutSerializer . ourVerticalAlignments [ alignment ] ;
}
+ updateConstraints ( component ) ;
}
public void resetAlignment ( RadComponent component , boolean horizontal ) { | add missing updateConstraints |
<nb> public class JSSourceJarMojo extends AbstractMojo {
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
COMMENT
private File librarySourceDir ;
<nb> public class JSSourceJarMojo extends AbstractMojo {
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
COMMENT
private File definitionSourceDir ; | avoid mandatory properties for optional things on the plugin |
<nb> public class JsonPathExpectationsHelper {
assertEquals ( STRING0 + this . expression + STRING1 ,
expectedValue . getClass ( ) , actualValue . getClass ( ) ) ;
}
- assertEquals ( STRING2 + this . expression , expectedValue , actualValue ) ;
+ assertEquals ( STRING3 + this . expression , expectedValue , ac... | Add space separator in JsonPathExpectationsHelper |
<nb> public class WebView extends AbsoluteLayout
> INVAL_RECT_MSG_ID ? Integer . toString ( msg . what )
: HandlerDebugString [ msg . what - REMEMBER_PASSWORD ] ) ;
}
+ if ( mWebViewCore == null ) {
+ SINGLE
+ return ;
+ }
switch ( msg . what ) {
case REMEMBER_PASSWORD : {
mDatabase . setUsernamePas... | WebView may get message after destroy is called |
<nb> public class FilterDef implements Serializable {
COMMENT
COMMENT
COMMENT
- private Filter filter = null ;
+ private transient Filter filter = null ;
public Filter getFilter ( ) {
return filter ; | Fix FindBugs warning |
<nb> public class PlaybackService extends MediaBrowserServiceCompat {
mediaSession . setSessionActivity ( PendingIntent . getActivity ( this , NUMBER0 ,
PlaybackService . getPlayerActivityIntent ( this ) ,
PendingIntent . FLAG_UPDATE_CURRENT ) ) ;
- mediaSession . setMetadata ( builder . build ( ) ) ;
+ try {... | Catch out of memory exception |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class JetRunConfigurationProducer extends RuntimeConfigurationProducer im
@ nullable
private static JetFile getStartClassFile (... | Add dumb mode for building run configuration |
<nb> public class LayerDrawable extends Drawable implements Drawable . Callback {
updateLayerFromTypedArray ( layer , a ) ;
a . recycle ( ) ;
- if ( layer . mDrawable == null ) {
+ SINGLE
+ SINGLE
+ SINGLE
+ if ( layer . mDrawable == null && ( layer . mThemeAttrs == null ||
+ layer . mThemeAttrs [ R .... | Only parse LayerDrawable child items when necessary |
<nb> public class AutomaticBean
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
COMMENT
COMMENT
@ override | Remove unnecessary inheritDoc |
<nb> import NAMESPACE ;
import NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
public class LambdaExpression extends Expression {
private final ITypeBinding typeBinding ;
private final IMethodBinding methodBinding ; | Added missing comment description for LambdaExpression |
<nb> public class Version implements Comparable < Version > {
} else
return new Version ( major , minor , patch , additional , sha1 ) ;
} else
- return null ;
+ throw new IllegalArgumentException ( STRING0 + version ) ;
}
public Version ( int major , int minor , int patch ) { | Throwing exception when input cannot be parsed |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MovieSearchFragment extends SherlockFragment implements On... | Display movie check in dialog on tapping movie search result |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import static NAMESPACE ;
import NAMESPACE ;
<nb> public final class World extends RenderableObject {
COMMENT
byte luminance = Block . getBlockForType ( type ) . getLuminance ( ) ... | Fixed lighting at night |
<nb> public class HikariConfig implements HikariConfigMBean
logger . error ( STRING0 ) ;
throw new IllegalStateException ( STRING0 ) ;
}
+ else if ( driverClassName != null && jdbcUrl != null )
+ {
+ SINGLE
+ }
else if ( dataSource == null && dataSourceClassName == null )
{
logger . error ( STRING1 ... | Check validation error |
<nb> final class WebViewCore {
final DrawFilter mZoomFilter =
new PaintFlagsDrawFilter ( ZOOM_BITS , Paint . LINEAR_TEXT_FLAG ) ;
+ final DrawFilter mScrollFilter =
+ new PaintFlagsDrawFilter ( SCROLL_BITS , NUMBER0 ) ;
COMMENT
boolean animatingZoom ,
<nb> final class WebViewCore {
if ( animatingZoo... | disable high quality filtering during scrolling until I can cached the scaled images |
<nb> public class B2CConverter {
private static final Map < String , Charset > encodingToCharsetCache =
new HashMap < String , Charset > ( ) ;
+ public static final Charset ISO_8859_1 ;
+ public static final Charset UTF_8 ;
+
static {
for ( Charset charset : Charset . availableCharsets ( ) . values ( ) ... | Provide easy access to the two most frequently used Charsets |
<nb> public class DiffToChangeLog {
}
} else if ( database instanceof OracleDatabase ) {
Executor executor = ExecutorService . getInstance ( ) . getExecutor ( database ) ;
- List < Map < String , ? > > rs = executor . queryForList ( new RawSqlStatement ( STRING0 + StringUtils . join ( schemas , STRING1 , new St... | don t include SYS and deleted objects |
<nb> public class TachyonFile {
mFileId = fileId ;
}
+ @ override
+ public boolean equals ( Object o ) {
+ if ( ! ( o instanceof tachyon . client . file . TachyonFile ) )
+ return false ;
+
+ return mFileId == ( ( TachyonFile ) o ) . mFileId ;
+ }
+
COMMENT
COMMENT
COMMENT
public long getF... | Implement toString and equals in TachyonFile |
<nb> public interface RegisteredService extends Cloneable , Serializable {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public String getUsernameAttribute ( ) ;
<nb> public final class RegisteredServiceSimpleFormController extends SimpleFormContr
Collections . sort ( possibleAttribute... | Adjusted the javadoc for the username attribute to remove null as the returning value |
<nb> public class SpanishTreeNormalizer extends TreeNormalizer {
SINGLE
List < Tree > newNodes = new ArrayList < Tree > ( words . length ) ;
for ( int j = NUMBER0 ; j < words . length ; j ++ ) {
- String word = words [ j ] ;
+ String word = normalizeTerminal ( words [ j ] ) ;
Tree newLeaf = tf . newLeaf (... | Normalize terminals produced by multi word token expansion |
<nb> public class URLEncoder {
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- @ deprecated
- public String encode ( String path ) {
- return encode ( path , STRING0 ) ;
- }
-
-
- COMMENT
COMMENT
COMMENT
COMMENT | Remove deprecated code |
<nb> public class AsyncHttpProviderUtils {
public final static URI createUri ( String u ) {
URI uri = URI . create ( u ) ;
- final String scheme = uri . getScheme ( ) . toLowerCase ( ) ;
- if ( scheme == null || ! scheme . equals ( STRING0 ) && ! scheme . equals ( STRING1 ) ) {
+ final String scheme = uri .... | avoid NPE on missing scheme in the URI |
<nb> public class CpuSpriteBatch extends SpriteBatch {
int copyCount = Math . min ( vertices . length - idx , count ) ;
do {
+ count -= copyCount ;
while ( copyCount > NUMBER0 ) {
float x = spriteVertices [ offset ] ;
float y = spriteVertices [ offset + NUMBER1 ] ;
<nb> public class CpuSpriteBatch exten... | Fix handling of sprite vertices array |
<nb> public class NameVirtualHostHandler implements HttpHandler {
@ override
public void handleRequest ( final HttpServerExchange exchange ) {
- final String host = exchange . getRequestHeaders ( ) . getFirst ( Headers . HOST ) ;
- if ( host != null ) {
+ final String hostHeader = exchange . getRequestHeade... | host header can have port |
<nb> public class PatternRuleTest extends TestCase {
) ;
assertEquals ( lang + STRING0
+ suggestedCorrections . toString ( ) + STRING1
- + matches . get ( NUMBER0 ) . getSuggestedReplacements ( ) + STRING2 + rule + STRING3 + badSentence ,
+ + matches . get ( NUMBER0 ) . getSuggestedReplacements ( ) + STRING2 ... | improve failure message |
<nb> public class ProcessUtilsTest {
awaitTermination ( ( Thread ) null ) ;
}
- @ test ( timeout = NUMBER0 )
+ @ test ( timeout = NUMBER1 )
public void awaitTermination_does_not_wait_on_currentThread ( ) {
awaitTermination ( Thread . currentThread ( ) ) ;
}
- @ test ( timeout = NUMBER2 )
+ @ test ... | Improve stability of ProcessUtilsTest on slow env |
<nb> public abstract class ParenthesesInsertHandler < T extends LookupElement > implemen
final boolean hasParams = placeCaretInsideParentheses ( context , item ) ;
final char completionChar = context . getCompletionChar ( ) ;
+ if ( completionChar == STRING0 ) {
+ context . setAddCompletionChar ( false ) ;
... | swallow finishing in common parenthesed completions |
<nb> public class LwjglAudioRenderer implements AudioRenderer , Runnable {
logger . log ( Level . SEVERE , STRING0 , ex ) ;
audioDisabled = true ;
return ;
+ } catch ( UnsatisfiedLinkError ex ) {
+ logger . log ( Level . SEVERE , STRING0 , ex ) ;
+ audioDisabled = true ;
+ return ;
}
ALCdevice devic... | Prevent linux crash if OpenAL cannot be loaded |
<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 ;
COMMENT
COMMENT | Remove some unneeded imports |
<nb> public abstract class Renderer implements ISurfaceRenderer {
}
public Renderer ( Context context , boolean registerForResources ) {
- RajLog . i ( STRING0 ) ;
+ RajLog . i ( STRING1 ) ;
RajLog . i ( STRING2 ) ;
mHaveRegisteredForResources = registerForResources ;
mContext = context ; | Updates build number for new release |
<nb> public class BitcoinSerializer {
} else if ( command . equals ( STRING0 ) ) {
return new HeadersMessage ( params , payloadBytes ) ;
} else {
- throw new ProtocolException ( STRING1 + command ) ;
+ log . warn ( STRING2 , command ) ;
+ return new UnknownMessage ( params , command , payloadBytes ) ;
}
... | Don t throw an exception when parsing an unknown message type |
<nb> final class Bootstrap {
SINGLE
if ( Natives . definitelyRunningAsRoot ( ) ) {
- if ( Boolean . parseBoolean ( System . getProperty ( STRING0 ) ) ) {
- logger . warn ( STRING1 ) ;
- } else {
- throw new RuntimeException ( STRING2 ) ;
- }
+ throw new RuntimeException ( STRING3 ) ;
}
SINGLE | Remove allow running as root |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import NAMESPACE ;
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT... | Add missing license headers |
<nb> public class MessageContent {
@ override
public int hashCode ( ) {
- return Objects . hashCode ( this . content , this . charset ) ;
+ return Objects . hashCode ( Arrays . hashCode ( this . content ) , this . charset ) ;
}
public static Builder content ( ) { | used array hash code for message content |
<nb> public class GraphicState {
if ( fbo . colorBufferTextureId != NUMBER0 ) {
if ( color ) {
- bufferIds . put ( GL_COLOR_ATTACHMENT0_EXT + attachmentId ++ ) ;
+ bufferIds . put ( GL_COLOR_ATTACHMENT0_EXT + attachmentId ) ;
}
+ attachmentId ++ ;
}
if ( fbo . normalsBufferTextureId != NUMBER0 ) {
i... | Fixed rendering bug preventing the directional light the sun from properly lighting the scene |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class XmlTagImpl extends XmlElementImpl implements XmlTag / * , Modification
final PsiFile containingFile = getContainingFile ( ) ;
if ( containingF... | find usages rename jspx tests |
<nb>
specific language governing permissions and limitations
under the License .
COMMENT
- package NAMESPACE ;
+ package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | moved the backgroundcolor class to correct classpath |
<nb> public class ProjectSpecificSettingsStep extends ProjectSettingsStepBase impleme
return false ;
}
if ( ! PyPackageUtil . hasManagement ( packages ) ) {
- warningList . add ( STRING0 + warningList ) ;
+ warningList . add ( STRING0 + frameworkName + STRING1 ) ;
}
} else {
warningList . add ( framewor... | add proper warning to the error panel |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class CookieITest extends WithJetty {
map = response . cookies ( ) ;
assertThat ( map . get ( STRING0 ) , equalTo ( STRING1 ) ) ;
}
+
+ @ test
+ public vo... | Added test that shows that setting request cookies in a static config works |
<nb> public class TempFileSystem extends LocalFileSystemBase {
}
fsItem . getParent ( ) . removeChild ( fsItem ) ;
- newDir . addChild ( fsItem . isDirectory ( ) ? new FSDir ( newDir , fsItem . myName ) : new FSFile ( newDir , fsItem . myName ) ) ;
+ newDir . addChild ( fsItem ) ;
+ fsItem . myParent = newD... | fixing move in TempFileSystem second attempt |
<nb> public final class DecodeHintType {
public static final DecodeHintType TRY_HARDER = new DecodeHintType ( ) ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
public static final DecodeHintType ALLOWED_LENGTHS = new DecodeHintType ( ) ;
<nb> public final class MonochromeRectangleDetector {
COMMENT
COMMENT ... | Fixed tiny javadoc glitches |
<nb> package NAMESPACE ;
public class HighlightRange {
int start ;
int length ;
+
+ public int getStart ( ) {
+ return start ;
+ }
+
+ public int getLength ( ) {
+ return length ;
+ }
} | Add getter for start and length |
<nb> public class OCommandExecutorSQLUpdate extends OCommandExecutorSQLRetryAbstract
COMMENT
COMMENT
private void handleUpdateEdge ( ODocument record ) {
+ if ( ! updateEdge ) {
+ return ;
+ }
Object currentOut = record . field ( STRING0 ) ;
Object currentIn = record . field ( STRING1 ) ;
<nb> publi... | Fix UPDATE EDGE |
<nb> public final class LoginUser {
}
return userSet . iterator ( ) . next ( ) ;
} catch ( LoginException e ) {
- throw new IOException ( STRING0 , e ) ;
+ throw new IOException ( STRING0 + e ) ;
}
} | SMALLFIX Propagate the LoginException error message when Failed to |
<nb> public class GraphHopperServlet extends GHBaseServlet
Map < String , String > map = new HashMap < String , String > ( ) ;
map . put ( STRING0 , STRING1 ) ;
map . put ( STRING2 , STRING3 ) ;
- jsonInfo . put ( STRING4 , Arrays . asList ( map ) ) ;
+ jsonInfo . put ( STRING4 , Collections . singletonList (... | avoid compiler warning |
<nb> public final class CustomTabsSession {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix typo in CustomTabsSession setActionButton javadoc |
<nb> class TypeElementMembers {
}
private boolean isSetterReturnType ( ExecutableElement method ) {
- return ( TypeKind . VOID == method . getReturnType ( ) . getKind ( ) || method
- . getEnclosingElement ( ) . asType ( ) . equals ( method . getReturnType ( ) ) ) ;
+ return ( TypeKind . VOID == method . get... | Fix annotation processor builder setter detection |
<nb> public interface OCluster {
COMMENT
void truncate ( ) throws IOException ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
OPhysicalPosition allocatePosition ( byte recordType ) throws IOException ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMEN... | add docs to the cluster position allocation api |
<nb> public class GoogleCheese {
SINGLE
SINGLE
+ System . out . println ( STRING0 ) ;
driver . get ( STRING1 ) ;
- System . out . println ( STRING2 + driver . getCurrentUrl ( ) ) ;
+ System . out . println ( STRING3 + driver . getCurrentUrl ( ) + STRING4 ) ;
SINGLE
+ System . out . println ( STRING5... | Made the Google Cheese |
<nb> public class MediaAddFragment extends Fragment implements LaunchCameraCallback {
mediaFile . setMimeType ( mimeType ) ;
}
WordPress . wpDB . saveMediaFile ( mediaFile ) ;
- mCallback . onMediaAdded ( mediaFile . getMediaId ( ) ) ;
+ if ( mCallback != null ) {
+ mCallback . onMediaAdded ( mediaFile . ge... | Fixing NPE on null callback |
<nb> public class CoordinationTransformer implements TreeTransformer {
}
private static TregexPattern findFlatConjpTregex =
- SINGLE
- TregexPattern . compile ( STRING0 +
- STRING1 ) ; SINGLE
+ SINGLE
+ TregexPattern . compile ( STRING2 +
+ STRING3 + SINGLE
+ STRING4 +
+ STRING5 ) ; SINGLE
pri... | Make a few more artificial CONJP nodes |
<nb> class ConstructorResolver {
}
}
args . arguments [ paramIndex ] = convertedValue ;
- if ( mbd . isLenientConstructorResolution ( ) ) {
- args . rawArguments [ paramIndex ] = originalValue ;
- }
- else {
- args . rawArguments [ paramIndex ] =
- ( ( sourceValue instanceof TypedStringValue && ! ( ( ... | add implicit String type for typed string values w o a specified type |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ClusterJournalResource extends ProxiedResource {
if ( response . isSuccess ( ) ) {
return response . body ( ) ;
} else { ... | Improve error treatment on journal remote call |
<nb> public class Expr2Test extends TestUtil {
checkStr ( STRING0 ) ;
checkStr ( STRING1 ) ;
checkStr ( STRING2 ) ;
- checkStr ( STRING3 ) ;
- checkStr ( STRING4 ) ;
- checkStr ( STRING5 ) ;
checkStr ( STRING6 ) ;
checkStr ( STRING7 ) ;
checkStr ( STRING8 ) ;
SINGLE
checkStr ( STRING9 ) ;
+
+ ... | Make a slice example test |
<nb> public class Camera {
return ;
case CAMERA_MSG_PREVIEW_FRAME :
- if ( mPreviewCallback != null ) {
- PreviewCallback cb = mPreviewCallback ;
+ PreviewCallback pCb = mPreviewCallback ;
+ if ( pCb != null ) {
if ( mOneShot ) {
SINGLE
SINGLE
<nb> public class Camera {
SINGLE
setHasPreviewCal... | Fix race condition with preview callback |
<nb> package NAMESPACE ;
import NAMESPACE ;
public class PlayerQuitEvent extends PlayerEvent {
- public PlayerQuitEvent ( Player who ) {
+
+ private String quitMessage ;
+
+ public PlayerQuitEvent ( Player who , String quitMessage ) {
super ( Type . PLAYER_QUIT , who ) ;
+ this . quitMessage = quitM... | Added the ability to set the quit message |
<nb> public abstract class ContentResolver {
stableProvider = acquireProvider ( uri ) ;
}
releaseUnstableProvider ( unstableProvider ) ;
+ unstableProvider = null ;
ParcelFileDescriptor pfd = new ParcelFileDescriptorInner (
fd . getParcelFileDescriptor ( ) , stableProvider ) ;
<nb> public abstract class... | Avoid a double decrease of reference counter for unstable provider |
<nb> public class DaemonCommandExecution {
return true ;
}
}
+
+ @ override
+ public String toString ( ) {
+ return String . format ( STRING0 , command , connection ) ;
+ }
} | Add a nice toString for the daemon command execution |
<nb> public class SslConnection extends AbstractConnection
if ( _flushRequiresFillToProgress )
{
_flushRequiresFillToProgress = false ;
- getExecutor ( ) . execute ( failure == null ? _runCompletWrite : new FailFlusher ( failure ) ) ;
+ getExecutor ( ) . execute ( failure == null ? _runCompletWrite : new Fail... | Renamed class to clarify behavior |
<nb> public class OptionTest extends AbstractValueTest {
@ test
public void shouldHandleTransformOnNone ( ) {
- SINGLE
- SINGLE
- SINGLE
- SINGLE
+ assertThat ( Option . none ( ) . < String > transform ( self - > self . isEmpty ( ) ? STRING0 : STRING1 ) ) . isEqualTo ( STRING0 ) ;
}
SINGLE | Add test for transform on None |
<nb> public class Activity extends ContextThemeWrapper
STRING0 +
STRING1 ) ;
}
+ SINGLE
+ mMenuInflater = null ;
+
ToolbarActionBar tbab = new ToolbarActionBar ( toolbar , getTitle ( ) , this ) ;
mActionBar = tbab ;
mWindow . setCallback ( tbab . getWrappedWindowCallback ( ) ) ; | Fix leak for MenuInflater setActionBar |
<nb> public final class SparseMatrixZSampleGrid < TZ > implements ZSampleGrid < TZ > ,
@ setter
private TZ z ;
- SINGLE
- @ getter
- @ setter
- private Object userData ;
-
private SparseMatrixSamplePoint up , down , right , left ;
private GridDelaunayEdge eUp , eUpRight , eRight ;
<nb> interface... | Remove unused and ugly user data field |
<nb> public class CheckServerClocksNotification implements NotificationType {
@ override
public boolean isCloseable ( ) {
- return false ;
+ return true ;
}
} | clock skew detection needs to be closable it doesn t fix itself |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class VariableScopeImpl implements Serializable , VariableScope {
return variableInstances . keySet ( ) ;
}
+ publi... | Add getVariableInstances method to VariableScopeImpl |
<nb> public class MessageHistoryServiceImpl implements MessageHistoryService , Message
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class MessageHistoryServiceImpl implements MessageHistoryService , Message
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMM... | Fixed javadoc warnings |
<nb> public class AaptPackageResources extends AbstractBuildRule
. setReflectively ( STRING0 , packageType . toString ( ) )
. setReflectively ( STRING1 , ImmutableSortedSet . copyOf ( cpuFilters ) . toString ( ) )
. setReflectively ( STRING2 , rDotJavaNeedsDexing )
- . setReflectively ( STRING3 , shouldBuildStr... | Add skipCrunchPngs to rule key |
<nb> public class ThemeSearchFragment extends ThemeBrowserFragment implements SearchV
mSearchView . setOnQueryTextListener ( this ) ;
mSearchView . setQuery ( mLastSearch , true ) ;
mSearchView . setMaxWidth ( SEARCH_VIEW_MAX_WIDTH ) ;
-
}
private void clearFocus ( View view ) { | Removing extra space |
<nb> public final class UrlImageViewHelper {
}
final File f = new File ( context . getFilesDir ( ) . getAbsolutePath ( ) + STRING0 + file ) ;
- if ( System . currentTimeMillis ( ) > f . lastModified ( ) + CACHE_DURATION_ONE_WEEK ) {
+ if ( System . currentTimeMillis ( ) > f . lastModified ( ) + age ) {
f . ... | Take the max age of a file in account |
<nb> public class GraphDatabaseConfiguration {
public static final ConfigOption < String [ ] > INDEX_HOSTS = new ConfigOption < String [ ] > ( INDEX_NS , STRING0 ,
STRING1 +
STRING2 ,
- ConfigOption . Type . GLOBAL , new String [ ] { NetworkUtil . getLoopbackAddress ( ) } ) ;
+ ConfigOption . Type . MASKABLE ... | Make index hostname Maskable so that the hostname can be updated when the external index cluster changes |
<nb> public class OptimizingStatementWriter extends StatementWriter {
@ override
public void visitBlockStatement ( BlockStatement block ) {
- boolean optAll = false ;
+ boolean optAll = true ;
for ( Statement statement : block . getStatements ( ) ) {
optimizeInt = false ;
statement . visit ( this ) ;
... | make optimization selection for statements more selective |
<nb> public class WikiAPIGenerator {
COMMENT
COMMENT
private String base = STRING0 ;
- private String title = STRING1 ;
+ private String title = STRING2 ;
private File dir = new File ( STRING3 ) ;
private int methods = NUMBER0 ; | Removed work in progress message from generated wiki API pages |
<nb> public class AsyncHttpResponseHandler {
COMMENT
COMMENT
COMMENT
+ @ deprecated
public void onSuccess ( int statusCode , Header [ ] headers , String content ) {
onSuccess ( statusCode , content ) ;
} | Added missing Deprecated |
<nb> public interface PsiElement extends UserDataHolder , Iconable {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | javadoc corrected cdr |
<nb> public class SessionManager extends ContainerLifeCycle implements org . eclipse . je
try
{
Session session = _sessionStore . renewSessionId ( oldId , newId ) ; SINGLE
+ if ( session == null )
+ {
+ SINGLE
+ return ;
+ }
+
session . setExtendedId ( newExtendedId ) ; SINGLE
_sessionIdManager . ... | Fix NPE during session id renewal if session not found on a context |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.