diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SimpleWorkflowJsonConverter {
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
protected SimpleWorkflowException wrapExceptionRead ( Exce... | Removed unneeded imports |
<nb> public class JetControlFlowProcessor {
@ override
public void visitCallExpression ( @ notnull JetCallExpression expression ) {
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
-
for ( JetTypeProjection typeArgument : expression . getTypeArgumen... | removed obsolete commented code |
<nb> public class WireCompiler {
private static Constructor < ? > loadServiceWriter ( String serviceWriterClassName )
throws WireException {
- Class < ? > serviceWriterClass = null ;
+ Class < ? > serviceWriterClass ;
try {
serviceWriterClass = Class . forName ( serviceWriterClassName ) ;
} catch ( Clas... | Hide constructor using non public helper class |
<nb> public class ReadableNativeMap extends NativeMap implements ReadableMap {
case Number :
hashMap . put ( key , getDouble ( key ) ) ;
break ;
+ case String :
+ hashMap . put ( key , getString ( key ) ) ;
+ break ;
case Map :
hashMap . put ( key , getMap ( key ) . toHashMap ( ) ) ;
break ; | adding missing string case in ReadableNativeMap to HashMap |
<nb> import NAMESPACE ;
class FutureAsyncCompletionHandler < T > implements AsyncCompletionHandler < T > {
private final CountDownLatch latch = new CountDownLatch ( NUMBER0 ) ; ;
- private T result ;
- private Throwable error ;
+ private volatile T result ;
+ private volatile Throwable error ;
@ overr... | Fixed race condition in FutureAsyncCompletionHandler |
<nb> public class KeyHandler
else if ( currentArg == Argument . CHARACTER )
{
SINGLE
- SINGLE
+ SINGLE
+ if ( chKey == NUMBER0 )
+ {
+ switch ( key . getKeyCode ( ) )
+ {
+ case KeyEvent . VK_ENTER :
+ chKey = STRING0 ;
+ break ;
+ }
+ }
+
if ( chKey != NUMBER0 )
{
SINGLE | Handle special key char arguments |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPA... | Moved StructDatabase to different package |
<nb> public class ClearspaceSaslServer implements SaslServer {
if ( STRING0 . equals ( WSUtils . getReturn ( resultElement ) ) ) {
completed = true ;
}
+ else {
+ SINGLE
+ throw new SaslException ( STRING1 + jid ) ;
+ }
} catch ( Exception e ) {
Log . error ( STRING2 , e ) ;
+ throw new SaslExceptio... | Throw SASL exception if authentication failed |
<nb> public class SSLConfig {
STRING0 + keyStoreLocation + STRING1 +
STRING2 + keypass + STRING1 +
STRING3 + s2sTrustStoreLocation + STRING1 +
- STRING4 + s2sTrustpass + STRING1 ) ;
+ STRING4 + s2sTrustpass + STRING1 , e ) ;
keyStore = null ;
s2sTrustStore = null ;
s2sFactory = null ; | Log stacktrace of exception while initializing |
<nb> public class MultiUserChatServiceImpl implements Component , MultiUserChatService
final Element item = fragment . addElement ( STRING0 ) ;
item . addAttribute ( STRING1 , STRING2 ) ;
item . addAttribute ( STRING3 , STRING2 ) ;
- fragment . addElement ( STRING4 ) . addAttribute ( STRING5 , STRING6 ) ;
+ f... | Should use the correct status code |
<nb> public final class TachyonBlockStoreTest {
new BlockLocation ( WORKER_ID_LOCAL , WORKER_NET_ADDRESS_LOCAL , STORAGE_TIER ) ;
private static final BlockLocation BLOCK_LOCATION_REMOTE =
new BlockLocation ( WORKER_ID_REMOTE , WORKER_NET_ADDRESS_REMOTE , STORAGE_TIER ) ;
- COMMENT
- COMMENT
- COMMENT
+ C... | SMALLFIX Address review comments |
<nb> public class TestMapSerialization
COMMENT
final ObjectMapper MAPPER = objectMapper ( ) ;
+
+ public void testUsingObjectWriter ( ) throws IOException
+ {
+ ObjectWriter w = MAPPER . writerWithType ( Object . class ) ;
+ Map < String , Object > map = new LinkedHashMap < String , Object > ( ) ;
+ m... | add a new unit test |
<nb> public class Advice implements AsmVisitorWrapper . ForDeclaredMethods . MethodVisito
@ suppresswarnings ( STRING0 )
public interface DynamicValue < T extends Annotation > {
- Serializable resolve ( MethodDescription . InDefinedShape instrumentedMethod ,
+ Object resolve ( MethodDescription . InDefinedSha... | Do not require serializability as method handles can be stored in a constant pool without being serializable |
<nb> public class Mention implements CoreAnnotation < Mention > , Serializable {
result = ( NUMBER0 * result ) + c ;
- System . err . println ( STRING0 + result ) ;
+ System . err . println ( STRING0 + result + STRING1 + startIndex + STRING2 + endIndex ) ;
return result ; | try new hashCode |
<nb> public class ItemStack implements Cloneable , ConfigurationSerializable {
Enchantment enchantment = Enchantment . getByName ( entry . getKey ( ) . toString ( ) ) ;
if ( ( enchantment != null ) && ( entry . getValue ( ) instanceof Integer ) ) {
- result . addEnchantment ( enchantment , ( Integer ) entry . g... | Bleeding Fix deserialization for unsafe enchantments |
<nb> public class RandomAccessFileStoreTest extends TestCase {
} catch ( IllegalArgumentException e ) {
return ;
}
- fail ( STRING0 ) ;
+ fail ( STRING1 ) ;
}
public void testOpenInvalidStoreFails ( int indexBytes , int dataBytes , boolean shouldWork ) | Improve error message for testMaxCacheSizeBytesTooBig |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class NullUserServiceImpl implements UserService {
@ override
public Collection < User > loadAllForRole ( Role role ) {
- return null ;
+ return Collections . em... | don t return null even though the method will never actually be called |
<nb> public class User {
public static Set < User > fetchAll ( Core server , Map < String , Object > additionalQueryOpts ) {
UserCache cache = UserCache . getInstance ( ) ;
- if ( cache . valid ( ) ) {
- return cache . get ( ) ;
+
+ SINGLE
+ if ( additionalQueryOpts == null || additionalQueryOpts . isEm... | don t use user cache with custom query conditions |
<nb> import NAMESPACE ;
COMMENT
public class RecordProcessor implements Processor {
- static Logger LOG = LoggerFactory . getLogger ( RecordProcessor . class ) ;
+ static Logger log = LoggerFactory . getLogger ( RecordProcessor . class ) ;
public void process ( Exchange msg ) {
- LOG . trace ( STRING0 ,... | fixed CS error |
<nb> public abstract class IndexAction extends QueueAction {
@ override
public void run ( ) {
this . doExecute ( ) ;
- if ( method . equals ( Method . UPDATE ) || method . equals ( Method . INSERT ) ) {
- index . refresh ( ) ;
- }
+ index . refresh ( ) ;
if ( latch != null ) {
latch . countDown ( ) ; ... | fix quality flaw useless if |
<nb> public class NavListAdapter extends BaseAdapter {
this . itemAccess = itemAccess ;
this . context = context ;
- TypedArray ta = context . obtainStyledAttributes ( new int [ ] { R . attr . ic_new , R . attr . stat_playlist ,
+ TypedArray ta = context . obtainStyledAttributes ( new int [ ] { R . attr . sta... | show the correct icon for queue and new episodes |
<nb> public class ReferenceExpressionCompletionContributor extends ExpressionSmartCom
addSecondCompletionVariants ( element , reference , baseItem , parameters , result ) ;
}
- BasicExpressionCompletionContributor . processDataflowExpressionTypes ( element , null , new Consumer < CastingLookupElementDecorator >... | don t insert casted dfa variables in qualified expression |
<nb> public class HostListCommand extends ControlCommand {
final boolean full = options . getBoolean ( fullArg . getDest ( ) ) ;
final boolean quiet = options . getBoolean ( quietArg . getDest ( ) ) ;
- if ( ! isNullOrEmpty ( pattern ) && hosts . isEmpty ( ) ) {
+ if ( hosts . isEmpty ( ) ) {
if ( json ) { ... | Fix HostListcommand output for no hosts |
<nb> public class AdvancedUserActivity extends InjectionAppCompatActivity {
}
COMMENT
- Reload ListView with new database values
+ COMMENT
COMMENT
public void loadDbString ( ) {
ArrayList < AdvanceUserItems > newmsglist ; | Added missing star |
<nb> public class RestTest extends HazelcastTestSupport {
final HazelcastInstance instance1 = Hazelcast . newHazelcastInstance ( config ) ;
HTTPCommunicator communicator = new HTTPCommunicator ( instance1 ) ;
HazelcastTestSupport . waitInstanceForSafeState ( instance1 ) ;
- String result = String . format ( STR... | fixed failing REST tests from nightly build |
<nb> public class ReadOnlyStorageEngine implements StorageEngine < ByteArray , byte [ ] > {
public void close ( ) throws VoldemortException {
logger . debug ( STRING0 ) ;
this . fileModificationLock . writeLock ( ) . lock ( ) ;
- if ( ! isOpen ) {
- fileModificationLock . writeLock ( ) . unlock ( ) ;
- thro... | Fixed issue in readOnlyEngine close |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Remove unused imports |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
<nb> public class VariableParameterizedTypeFix {
PsiType type = variable . getType ( ) ;
if ( ! ( type instanceof PsiClassType ) ) return ;
+ if ( DumbService . getInstance ( ... | don t create classesByName requiring fix in dumb mode |
<nb> public class KeyCrypterScrypt implements KeyCrypter {
}
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Bump up recommendation for number of iterations on mobile devices |
<nb> public class SimpleRealmProxy extends Simple {
row . setLong ( Realm . columnIndices . get ( STRING0 ) . get ( STRING1 ) , ( long ) value ) ;
}
- @ override
- public int getObject_id ( ) {
- realm . checkIfValid ( ) ;
- return ( int ) row . getLong ( Realm . columnIndices . get ( STRING0 ) . get ( ST... | Fix annotation processor test |
<nb> public class TextureView extends View {
public void setOpaque ( boolean opaque ) {
if ( opaque != mOpaque ) {
mOpaque = opaque ;
- updateLayer ( ) ;
+ if ( mLayer != null ) {
+ updateLayer ( ) ;
+ }
}
} | Don t update TextureView s surface if the Layer doesn t exist |
<nb>
package 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 ; | remove useless imports |
<nb> public abstract class AuthenticationException extends RuntimeException {
COMMENT
COMMENT
+ COMMENT
COMMENT
+ @ deprecated
public Authentication getAuthentication ( ) {
return authentication ;
}
+ @ deprecated
public void setAuthentication ( Authentication authentication ) {
this . authent... | Deprecate storage of Authentication object in AuthenticationException |
<nb> import NAMESPACE ;
import NAMESPACE ;
- public interface RBucket < V > extends RObject {
+ public interface RBucket < V > extends RExpirable {
V get ( ) ; | RBucket should implements RExpirable |
<nb> public abstract class Language {
COMMENT
COMMENT
COMMENT
+ @ deprecated
public List < String > getRuleFileName ( ) {
return getRuleFileNames ( ) ;
}
<nb> public abstract class Language {
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
+ @ deprecated
public static String getAllMaintainers ( ... | deprecate getAllMaintainers it s not used by LT and doesn t seem useful for users of the API |
<nb> static public Class classForName ( String name ) throws ClassNotFoundException {
return Class . forName ( name , false , baseLoader ( ) ) ;
}
- static public Class loadClassForName ( String name ) {
+ static public Class loadClassForName ( String name ) throws ClassNotFoundException {
try {
return Cl... | made RT loadClassForName check that forName exception is its own or let it flow out |
<nb> public class DatabaseDescriptor
assert commitLogSync_ == CommitLogSync . periodic ;
try
{
- commitLogSyncBatchMS_ = Double . valueOf ( xmlUtils . getNodeValue ( STRING0 ) ) ;
+ commitLogSyncPeriodMS_ = Integer . valueOf ( xmlUtils . getNodeValue ( STRING0 ) ) ;
}
catch ( Exception e )
{ | fix typo setting syncperiod |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
@ runwith ( DefaultServer . class )
@ httponeonly
- @ ignore
public class ClientEndpointReconnectTestCa... | Remove accidental Ignore |
<nb> public class ServerRootResourceDefinition extends SimpleResourceDefinition {
public static final SimpleAttributeDefinition PROFILE_NAME = SimpleAttributeDefinitionBuilder . create ( ModelDescriptionConstants . PROFILE_NAME , ModelType . STRING , false )
. setValidator ( NOT_NULL_STRING_LENGTH_ONE_VALIDATOR )
... | Restore unused profile name attribute to server root |
<nb> public class StartClient
File file = new File ( fileName ) ;
if ( ! file . exists ( ) )
{
- throw new ShellException ( STRING0 + STRING1 + fileName ) ;
+ throw new ShellException ( STRING0 + STRING2 + fileName ) ;
}
reader = newBufferedFileReader ( file , UTF_8 ) ;
}
<nb> public class StartClient... | add missing null check |
<nb> public enum ERDAttributeVisibility
log . warn ( e ) ;
}
}
- return PRIMARY ;
+ return ALL ;
}
public static void setDefaultVisibility ( DBPPreferenceStore store , ERDAttributeVisibility visibility ) | ERD attributes visibility |
<nb> public class FrontierSiliconRadioBinding extends AbstractActiveBinding < FrontierS
if ( stateChanged ( deviceId , property , volume ) ) {
final int percent = radio . convertVolumeToPercent ( volume ) ;
logger . debug ( STRING0 + volume + STRING1 + percent + STRING2 ) ;
+ SINGLE
if ( provider . getItemTyp... | volume update posted wrong value |
<nb> public class GeoIntentActivity extends OsmandListActivity {
( ( Amenity ) point ) . setType ( getMyApplication ( ) . getPoiTypes ( ) . getUserDefinedCategory ( ) ) ;
( ( Amenity ) point ) . setSubType ( STRING0 ) ;
point . setLocation ( lat , lon ) ;
- point . setName ( STRING1 + lat + STRING2 + lon ) ;
... | Fix blank in LatLon display |
<nb> public class DexMojo extends AbstractAndroidMojo {
}
if ( artifact . getFile ( ) . isDirectory ( ) ) {
- throw new MojoExecutionException ( STRING0
- + artifact . getFile ( ) . getAbsolutePath ( ) ) ;
+ throw new MojoExecutionException ( STRING0 + artifact . getFile ( ) . getAbsolutePath ( ) ) ;
}
... | Fixed error messages |
<nb> public class WidgetStrategyBindings extends Graylog2Module {
installWidgetStrategyWithAlias ( widgetStrategyBinder ( ) , DashboardWidget . Type . SEARCH_RESULT_COUNT . toString ( ) , SearchResultCountWidget . class , SearchResultCountWidget . Factory . class ) ;
installWidgetStrategyWithAlias ( widgetStrategyB... | Fix binding for stream search result count widget |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
-
public interface Serializer < T > {
- public void serialize ( OutputStream out , T object , @ nullable TypeDef < ? > type ) throws IOException ;
+ public void serialize ( OutputStream out , T object , TypeDef < ? > typ... | remove incorrect Nullable annotation |
<nb> package NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> package NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
... | Polished javadoc and added note about done UoW from PollingConsumer |
<nb> public class IndexWarmersMetaData implements IndexMetaData . Custom {
public static final Factory FACTORY = new Factory ( ) ;
- static {
- IndexMetaData . registerFactory ( TYPE , FACTORY ) ;
- }
-
public static class Entry {
private final String name ;
private final String [ ] types ; | Removed duplicated registration of warmers as custom metadata type |
<nb> public class NewSparkConnectionDialog extends ModalDialog < NewSparkConnectionDial
private AceEditorWidget codeViewer_ ;
private Session session_ ;
- @ suppresswarnings ( STRING0 )
+
private UIPrefs uiPrefs_ ;
} | eliminate eclipse warnings |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MocoStandaloneTest extends AbstractMocoStandaloneTest {
@ test
public void should_set_and_recognize_cookie ( ) throws IOException {
run... | added name and value verification for cookie standalone test |
<nb> public class AndroidCompiledStatement implements CompiledStatement {
private static Logger logger = LoggerFactory . getLogger ( AndroidCompiledStatement . class ) ;
+ private static final String [ ] NO_STRING_ARGS = new String [ NUMBER0 ] ;
+
private final String sql ;
private final SQLiteDatabase db... | Added support for canceling and compiled statement |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Allign the version number for qpid we use in our component and in our feature file |
<nb> public class PlanGenerator {
}
TraverseMode mode = backEdgeNarrative . getMode ( ) ;
- System . out . println ( STRING0 + mode + STRING1 + backEdge + STRING2 + pgstate ) ;
if ( mode != null ) {
long dt = state . getAbsTimeDeltaSec ( ) ;
if ( mode == TraverseMode . BOARDING || mode == TraverseMode . A... | remove bogus println |
<nb> public class PredefinedConfiguration extends Configuration {
createSearchTemplateInfo ( SSRBundle . message ( STRING0 ) , STRING1 , INTERESTING_TYPE ) ,
createSearchTemplateInfo ( SSRBundle . message ( STRING2 ) , STRING3 , INTERESTING_TYPE ) ,
createSearchTemplateInfo ( SSRBundle . message ( STRING4 ) , STR... | fixed name of property key containing invalid character |
<nb> public class DefaultWebSocketProcessor implements WebSocketProcessor , Serializab
if ( ! resource . isCancelled ( ) ) {
if ( h != null ) {
SINGLE
- if ( closeCode == NUMBER0 || closeCode == NUMBER1 ) {
+ if ( closeCode == NUMBER0 ) {
h . timedOut ( ) ;
} else {
h . closed ( ) ; | Force cancel onDisconnect need to hack something for timeout |
<nb> public class MetricsFactory {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public static void enableHttpReporting ( int port ) throws IOException { | Fix some docs |
<nb> public class ActionBarContainer extends FrameLayout {
public ActionBarContainer ( Context context ) {
this ( context , null ) ;
}
-
+
public ActionBarContainer ( Context context , AttributeSet attrs ) {
super ( context , attrs ) ;
}
<nb> public class ActionBarContainer extends FrameLayout {
mIs... | Fix checkstyle errors |
<nb> class ZoomManager {
COMMENT
COMMENT
public boolean isPreventingWebkitUpdates ( ) {
- SINGLE
- SINGLE
- return mPinchToZoomAnimating ;
+ SINGLE
+ SINGLE
+ SINGLE
+ return isZoomAnimating ( ) ;
}
public ScaleGestureDetector getMultiTouchGestureDetector ( ) { | Don t update webkit at every stage of a zoom animation |
<nb> public class Hook implements Comparable < Hook > {
return true ;
if ( Build . DISPLAY == null || Build . HOST == null )
return false ;
- return ( isAOSP ( ) || isCyanogenMod ( ) || isOmni ( ) || isMIUI ( ) || isSlim ( ) || isCarbon ( ) || isDirtyUnicorns ( ) || isLiquidSmooth ( ) ) ;
+ return ( isAOSP ( ... | Enabled support for Paranoid Android |
<nb> public class InsertOrUpdateGeneratorOracle extends InsertOrUpdateGenerator {
StringBuffer endStatements = new StringBuffer ( ) ;
endStatements . append ( STRING0 ) ;
endStatements . append ( STRING1 ) ;
- endStatements . append ( STRING2 ) ;
return endStatements . toString ( ) ;
} | trailing caused execution to fail |
<nb> public class GracefulStopTest
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
@ test
public void testGracefulNoWaiter ( ) throws Exception
<nb> public class GracefulStopTest
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
@ test
public void testGracefulTimeout ( ) throws E... | Fixing javadoc errors |
<nb> public class GrailsClassUtils {
else if ( mc instanceof AdapterMetaClass ) {
return ( ( AdapterMetaClass ) mc ) . getAdaptee ( ) ;
}
- else if ( mc instanceof ProxyMetaClass ) {
- return ( ( ProxyMetaClass ) mc ) . getAdaptee ( ) ;
- }
else if ( MetaClassImpl . class == mc . getClass ( ) ) {
SINGLE... | removed unnecessary instanceof check |
<nb> public class ShortTypeHandling {
public static Character castToChar ( Object object ) {
if ( object == null ) return null ;
if ( object instanceof Character ) {
- return ( ( Character ) object ) . charValue ( ) ;
+ return ( Character ) object ;
} else if ( object instanceof Number ) {
Number value = ... | remove unnecessary unboxing and boxing of Character in castToChar Object |
<nb> public class LibsRecyclerViewAdapter extends RecyclerView . Adapter < RecyclerView . V
if ( ! TextUtils . isEmpty ( library . getLibraryVersion ( ) ) && showVersion ) {
holder . libraryVersion . setText ( library . getLibraryVersion ( ) ) ;
+ } else {
+ holder . libraryVersion . setText ( STRING0 ) ;
}... | prevent wrong display of version or license if definition file contains no version number or license |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public interface PsiDirectory extends PsiElement , PsiFileSystemItem , NavigationItem {
+ public interface PsiDirectory extends PsiFi... | file system item is navigation item |
<nb> public class AccessPoint implements Comparable < AccessPoint > {
mNetworkInfo != null && mNetworkInfo . getState ( ) != State . DISCONNECTED ;
}
+ public boolean isPasspoint ( ) {
+ return mConfig != null && mConfig . isPasspoint ( ) ;
+ }
+
COMMENT
private boolean isInfoForThisAccessPoint ( Wifi... | Fix multiple SSIDs for same Passpoint issues |
<nb> public class ForTestCompileJdkHeaders {
@ notnull
public static File jdkHeadersForTests ( ) {
- return JdkHeaders . jdkHeaders . getJarFile ( ) ;
+ return ForTestCompileSomething . ACTUALLY_COMPILE ? JdkHeaders . jdkHeaders . getJarFile ( ) : new File ( STRING0 ) ;
}
}
<nb> public class ForTestComp... | switch off compilation of stdlib and jdk headers |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class LwjglCanvas implements Application {
final LwjglGraphics graphics ;
<nb> public class FileProcessor {
protected void processDir ( InputFile inputDir , ArrayList < InputFile > value ) throws Except... | renamed FileProcessor method |
<nb> public class BasicLineFormatter implements LineFormatter {
COMMENT
COMMENT
public final static BasicLineFormatter DEFAULT = new BasicLineFormatter ( ) ;
+ SINGLE
public final static BasicLineFormatter INSTANCE = new BasicLineFormatter ( ) ; | add an issue discussion reference |
<nb> public class NotificationsListFragment extends Fragment
if ( mNotesAdapter == null ) {
mNotesAdapter = new NotesAdapter ( getActivity ( ) , mBucket ) ;
mNotesAdapter . setOnNoteClickListener ( mOnNoteClickListener ) ;
+ mRecyclerView . setAdapter ( mNotesAdapter ) ;
}
-
- mRecyclerView . setAdapter (... | Only set the recyclerview adapter when necessary |
<nb> public class MailRecipientsPipeIssueTest extends CamelTestSupport {
protected RouteBuilder createRouteBuilder ( ) throws Exception {
return new RouteBuilder ( ) {
public void configure ( ) throws Exception {
- String recipients = STRING0 ;
+ String recipients = STRING1 ;
from ( STRING2 ) . to ( STRIN... | endpoint uris now support multiple values for the same key |
<nb> public abstract class AbstractSimpleTransportTestCase extends ESTestCase {
} ) ;
final CountDownLatch latch = new CountDownLatch ( NUMBER0 ) ;
TransportFuture < StringMessageResponse > res = serviceB . submitRequest ( nodeA , STRING0 ,
- new StringMessageRequest ( STRING1 ) , TransportRequestOptions . buil... | make testTimeoutSendExceptionWithDelayedResponse less timing sensitive |
<nb> public class Cluster implements Serializable {
return false ;
}
- if ( nodeA . getZoneId ( ) != nodeB . getZoneId ( ) ) {
+ if ( nodeA . isEqualState ( nodeB ) == false ) {
return false ;
} | Cluster state equals and node names |
<nb> public class ASTGenerator {
pdeOffsets [ i ] [ NUMBER0 ] = awrap . getPDECodeOffsetForSN ( this ) ;
}
+ editor . startCompoundEdit ( ) ;
for ( int i = NUMBER1 ; i < defCU . getChildCount ( ) ; i ++ ) {
ASTNodeWrapper awrap = ( ASTNodeWrapper ) ( ( DefaultMutableTreeNode ) ( defCU
. getChildAt ( i ) )... | refactoring can now be undone with one undo |
<nb> public class AccessInventoryAction extends BaseComponentSystem {
@ receiveevent ( components = { AccessInventoryActionComponent . class , InventoryComponent . class } , netFilter = RegisterMode . AUTHORITY )
public void onActivate ( ActivateEvent event , EntityRef entity ) {
- InventoryComponent inv = enti... | Remove accessor field from InventoryComponent |
<nb> public class Exceptions
} ;
}
+ public static Predicate < Throwable > exceptions (
+ final String message , final Class < ? extends Throwable > . . . types )
+ {
+ return Predicates . and ( exceptionWithMessage ( message ) , exceptionsOfType ( types ) ) ;
+ }
+
private Exceptions ( )
{
SING... | Adds exceptions predicate for message and type s |
<nb> public class TestMsgHistoryService
public void setupContact ( )
{
+ SINGLE
+ System . setProperty ( STRING0 , STRING1 ) ;
mockProvider = new MockProvider ( STRING2 ) ;
<nb> public class TestMsgHistoryService
mockBImOpSet . createMessage ( STRING3 ) ,
mockBImOpSet . createMessage ( STRING4 )
... | Changed history target save directory |
<nb> public class Logger {
public static Logger getLogger ( Class < ? > clazz ) {
return new Logger ( clazz ) ;
}
+
+ public static Logger getLogger ( String logger ) {
+ return new Logger ( logger ) ;
+ }
public Logger ( Class < ? > clazz ) {
logger = org . apache . log4j . Logger . getLogger ( cla... | Added the ability to create loggers by string name as well as class |
<nb> public class RpcChannel implements ChannelListener {
}
+ COMMENT
+ COMMENT
+ COMMENT
+ @ deprecated
protected static String bToS ( byte [ ] data ) {
StringBuilder buf = new StringBuilder ( NUMBER0 * NUMBER1 ) ;
buf . append ( STRING0 ) ; | Deprecate unused code |
<nb> public class CvsStatusProvider {
}
public static FileStatus getStatus ( VirtualFile file ) {
+ if ( ! CvsEntriesManager . getInstance ( ) . isActive ( ) ) return FileStatus . NOT_CHANGED ;
return getStatus ( file , getEntriesManager ( ) . getEntryFor ( CvsVfsUtil . getParentFor ( file ) , file . getName ... | Do nothing if cvs manager is disabled |
<nb> import NAMESPACE ;
}
@ layoutlibdelegate
- COMMENT
+ COMMENT
opts . inBitmap = null ;
return null ;
}
@ layoutlibdelegate
- COMMENT
+ COMMENT
boolean applyScale , float scale ) {
opts . inBitmap = null ;
return null ;
<nb> public final class Canvas_Delegate {
}
@ layoutlibdele... | Fix a few more delegate methods in layoutlib |
<nb> public class MasterClient {
COMMENT
public synchronized void cleanConnect ( ) {
if ( mIsConnected ) {
- LOG . info ( STRING0 + mMasterAddress ) ;
+ LOG . debug ( STRING0 + mMasterAddress ) ;
mIsConnected = false ;
}
if ( mProtocol != null ) { | Downgrade Master disconnected log message to DEBUG level |
<nb> public class Starter {
sargs = removeOptions ( sargs ) ;
if ( sargs . length == NUMBER0 ) {
- runBareHA ( args ) ;
+ if ( args . map . get ( STRING0 ) != null ) {
+ runBareHA ( args ) ;
+ } else {
+ displaySyntax ( ) ;
+ }
} else {
String command = sargs [ NUMBER0 ] . toLowerCase ( ) ;
if (... | improved starter command line args display message |
<nb> public class StackScrollAlgorithm {
public void onLayoutChange ( View v , int left , int top , int right ,
int bottom , int oldLeft , int oldTop , int oldRight ,
int oldBottom ) {
- mFirstChildMaxHeight = getMaxAllowedChildHeight (
- mFirstChildWhileExpanding ) ;
- mFirstChildWhileExpanding . removeOnL... | Fixed race condition regarding first child max height |
<nb> public class TransitBoardAlight extends TablePatternEdge implements OnBoardForwa
COMMENT
COMMENT
public double weightLowerBound ( RoutingRequest options ) {
+ SINGLE
if ( ( options . isArriveBy ( ) && boarding ) || ( ! options . isArriveBy ( ) && ! boarding ) )
return timeLowerBound ( options ) ;
els... | add debug code |
<nb> public abstract class HorizontalDrawer extends DraggableDrawer {
@ override
public boolean onTouchEvent ( MotionEvent ev ) {
- if ( ! mMenuVisible && ( mTouchMode == TOUCH_MODE_NONE ) ) {
+ if ( ! mMenuVisible && ! mIsDragging && ( mTouchMode == TOUCH_MODE_NONE ) ) {
return false ;
}
final int acti... | Do not abort touch handling when menu is not visible while still |
<nb> public class TestWebappClassLoaderMemoryLeak extends TomcatBaseTest {
SINGLE
ctx . stop ( ) ;
- SINGLE
- try {
- Thread . sleep ( NUMBER0 ) ;
- } catch ( InterruptedException ie ) {
- SINGLE
- }
Thread [ ] threads = getThreads ( ) ;
for ( Thread thread : threads ) {
if ( thread != null && t... | Reduce timing sensitivity of test as some false positives have been observed |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class PyBaseDebuggerTask extends PyExecutionFixtureTestTask {
int count = NUMBER0 ;
while ( ! containsOneOf ( output ( )... | Print correct string |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | add java awt font FontRenderContext |
<nb> public class MediaBrowserActivity extends WPActionBarActivity implements MediaGr
@ override
public void onBackPressed ( ) {
FragmentManager fm = getSupportFragmentManager ( ) ;
- if ( mMenuDrawer . isShown ( ) ) {
+ if ( mMenuDrawer . isMenuVisible ( ) ) {
super . onBackPressed ( ) ;
} else if ( isIn... | FredrichO fixed logic for determining whether menu is shown |
<nb> public class PinotHelixResourceManager {
}
_helixAdmin . setResourceIdealState ( _helixClusterName , resourceName , currentIdealState ) ;
SINGLE
- if ( ifExternalViewChangeReflectedForState ( resourceName , segmentName , STRING0 , _externalViewReflectTimeOut ) ) {
+ LOGGER . info ( STRING1 + segmentName ... | Adding log for HelixResourceManager refresh logic |
<nb> public class WidgetsWindow extends MultiWindow {
protected String getAppName ( ) {
return STRING0 ;
}
+
+ @ override
+ protected int getTheme ( int id ) {
+ return android . R . style . Theme_Light ;
+ }
}
<nb> public abstract class StandOutWindow extends Service {
}
COMMENT
+ COMMENT
... | customize your window s theme with getTheme int id |
<nb> public class OsmBugsLayer extends OsmandMapLayer implements IContextMenuProvider
public OsmBugsLayer ( MapActivity activity , OsmEditingPlugin plugin ) {
this . activity = activity ;
this . plugin = plugin ;
- local = new OsmBugsLocalUtil ( activity ) ;
+ local = new OsmBugsLocalUtil ( activity , plugin ... | Fix crash and tab |
<nb> public class Response implements HttpServletResponse {
} else {
outputBuffer = new OutputBuffer ( ) ;
}
- outputStream = new CoyoteOutputStream ( outputBuffer ) ;
- writer = new CoyoteWriter ( outputBuffer ) ;
} | Remove unnecessary code |
<nb> public class SemanticGraph implements Serializable {
public List < SemanticGraphEdge > getShortestDirectedPathEdges ( IndexedWord source , IndexedWord target ) {
return graph . getShortestPathEdges ( source , target , true ) ;
}
+
+ public SemanticGraph makeSoftCopy ( ) {
+ SemanticGraph newSg = new Se... | Add softcopies to semantic graph |
<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 static NAMESPACE ;
- i... | add missing Category DbTests class |
<nb> public class ZooKeeperMasterModel implements MasterModel {
List < TaskStatus . State > previousStates ;
try {
final List < TaskStatusEvent > jobHistory = getJobHistory ( jobId , host ) ;
- jobHistory . subList ( NUMBER0 , Math . min ( maxStates , jobHistory . size ( ) ) ) ;
+ final List < TaskStatusEvent... | Fix ZooKeeperMasterModel getPreviousJobStates |
<nb> public abstract class AbstractReflectorAtmosphereHandler implements AtmosphereHa
@ override
public void destroy ( ) {
}
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static final class Default extends Abstrac... | Provides a default implementation that does nothing when onRequest is invoked |
<nb> public class PhoneHelper {
Cursor mProfileCursor = context . getContentResolver ( ) . query (
Profile . CONTENT_URI , mProjection , null , null , null ) ;
- if ( mProfileCursor . getCount ( ) == NUMBER0 ) {
+ if ( mProfileCursor == null || mProfileCursor . getCount ( ) == NUMBER0 ) {
return null ;
} ... | fixed rare npe in loading of selfi |
<nb> public final class BloomFilterPostingsFormat extends PostingsFormat {
. readString ( ) ;
int numBlooms = bloomIn . readInt ( ) ;
- boolean load = true ;
+ boolean load = false ;
Store . StoreDirectory storeDir = DirectoryUtils . getStoreDirectory ( state . directory ) ;
if ( storeDir != null && store... | still don t load bloom filters even when Directory instance doesn t have a codecService |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.