diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class PomReader implements PomParent {
private void checkNotNull ( String value , String name , String element ) {
if ( value == null ) {
String attributeName = element == null ? name : element + STRING0 + name ;
- throw new IllegalArgumentException ( STRING1 + attributeName ) ;
+ throw new Runtim... | Don t use inappropriate exception type |
<nb> public class TransportShardDeleteActionTest {
ShardResponse shardResponse = transportShardDeleteAction . processRequestItems (
shardId , request , new AtomicBoolean ( true ) ) ;
- assertThat ( shardResponse . failure ( ) , instanceOf ( CancellationException . class ) ) ;
+ assertThat ( shardResponse . fa... | fixes newly shard action tests |
<nb> public class DefaultMemoryManager implements MemoryManager
return ;
}
- final Iterator < T > segmentsIterator = segments . iterator ( ) ;
-
SINGLE
synchronized ( this . lock )
{
<nb> public class DefaultMemoryManager implements MemoryManager
throw new IllegalStateException ( STRING0 ) ;
}
... | Fixed concurrent modification in memory release |
<nb> public class AsyncRequestLog extends AbstractLifeCycle implements RequestLog {
statements . add ( queue . take ( ) ) ;
queue . drainTo ( statements , BATCH_SIZE ) ;
- final LoggingEvent event = new LoggingEvent ( ) ;
- event . setLevel ( Level . INFO ) ;
-
for ( String statement : statements ) {
+ ... | Fixed problems related to object reuse in AsyncRequestLog |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- @ stateless
+ @ singleton
public class ApplicationSettingsService {
@ inject
ApplicationSettingsDAO applicationSettingsDAO ;
+ private Appl... | store a copy of the settings in memory |
<nb> public abstract class TvInputService extends Service {
public void notifyVideoUnavailable ( final int reason ) {
if ( reason < TvInputManager . VIDEO_UNAVAILABLE_REASON_START
|| reason > TvInputManager . VIDEO_UNAVAILABLE_REASON_END ) {
- throw new IllegalArgumentException ( STRING0 + reason ) ;
+ Log . ... | Allow undefined reasons to be passed by notifyVideoUnavailable |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class VizGui extends JFrame implements VertexSelectionListener {
pathservice = new ContractionPathServiceImpl ( ) ;
pathservice... | Make gui work with remainingweightheuristic |
<nb> class LoaderManagerImpl extends LoaderManager {
if ( mStarted ) {
if ( mReportNextStart ) {
mReportNextStart = false ;
- if ( mHaveData ) {
+ if ( mHaveData && ! mRetaining ) {
callOnLoadFinished ( mLoader , mData ) ;
}
} | Prevent duplicate loader onLoadFinished calls on config change |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public class MultiLevelHashTest {
+ public class MultiLevelHashITCase {
- private static final Log LOG = LogFactory . getLog ( MultiLevelHashTest . class ) ;
+ private static final Log LOG = LogFactory . getLog ( MultiLevelHashITCase . class ) ;
priv... | MultiLevelHashTest is now integration test |
<nb> public class Maven3WorkspaceReader implements WorkspaceReader {
if ( equals ( id . getArtifactId ( ) , artifact . getArtifactId ( ) ) && equals ( id . getGroupId ( ) , artifact . getGroupId ( ) ) ) {
String version = id . getVersion ( ) ;
- if ( version != null && ! STRING0 . equals ( version ) && ! STRING... | Don t filter RELEASE and LATEST versions |
<nb> public class TypeUtils {
private static Set < JetType > getIntersectionOfSupertypes ( @ notnull Collection < JetType > types ) {
Set < JetType > upperBounds = Sets . newHashSet ( ) ;
for ( JetType type : types ) {
- Set < JetType > supertypes = Sets . newHashSet ( type . getConstructor ( ) . getSupertypes ... | Minor don t intersect sets use retainAll instead |
<nb> public final class Settings {
public static final String OVERRIDE_ACTION =
STRING0 ;
+ COMMENT
+ COMMENT
+ COMMENT
+ @ sdkconstant ( SdkConstantType . BROADCAST_INTENT_ACTION )
+ public static final String UPDATE_ACTION =
+ STRING1 ;
+
private static volatile NameValueCache mNameValueCache = ... | Add UPDATE_ACTION to Gservices used by the new checkin service |
<nb> import NAMESPACE ;
public class HttpClientHelper {
- private static final String USER_AGENT = STRING0 ;
+ private static final String USER_AGENT = STRING1 ;
private static final int CONNECTION_TIMEOUT = NUMBER0 ;
private static final int SOCKET_TIMEOUT = NUMBER0 ; | renaming user agent to unirest |
<nb> public final class FormatUtils {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fixing a typo |
<nb> final class MetaImpl implements Meta , Serializable {
for ( Entry < Record , Result < Record > > entry : groups . entrySet ( ) ) {
Schema schema = schemas . get ( entry . getKey ( ) . get ( NUMBER0 ) ) ;
- String pkName = entry . getKey ( ) . get ( NUMBER1 , String . class ) ;
+ String pkName = entry . g... | Fix meta regression |
<nb> public class EhCacheBasedTicketCacheTests extends TestCase {
SINGLE
assertNull ( cache . getByTicketId ( null ) ) ;
assertNull ( cache . getByTicketId ( STRING0 ) ) ;
+
+ cache . destroy ( ) ;
}
public void testGettersSetters ( ) { | Improve test coverage |
<nb> public class TestExceptionHandlingWithDefaultDeserialization extends BaseMapTest
}
-
static class Baz {
private String qux ;
<nb> public class TestExceptionHandlingWithJsonCreatorDeserialization extends BaseMap
}
}
-
static class Baz {
private String qux ; | Using JsonCreator cause generating invalid path reference in JsonMappingException |
<nb> public class AsyncHttpClient {
protected void finalize ( ) throws Throwable {
try {
if ( ! isClosed . get ( ) ) {
- logger . debug ( STRING0 ) ;
+ logger . warn ( STRING0 ) ;
}
} finally {
super . finalize ( ) ; | Revert that change as it is better to inform than nothing |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
<nb> public class PlatformScalaCompile extends AbstractScalaCompile {
}
@ inject
- protected ScalaToolChainInternal getToolChain ( ... | Migrating PlatformScalaCompile to use ToolResolver instead of ToolChain |
<nb> public class DefaultActionGroup extends ActionGroup {
return true ;
}
- private static int findIndex ( String actionId , List < AnAction > actions , ActionManager actionManager ) {
+ private static int findIndex ( String actionId , List < ? extends AnAction > actions , ActionManager actionManager ) {
f... | use more general generics |
<nb> public class TableTripPattern implements TripPattern , Serializable {
}
}
- private Stop getStop ( int stopIndex ) {
+ public Stop getStop ( int stopIndex ) {
if ( stopIndex == patternHops . length )
return patternHops [ stopIndex - NUMBER0 ] . getEndStop ( ) ;
else
<nb> public class Timetable im... | Let Timetable getNextTrip use TableTripPattern getStop instead of TableTripPattern getStops because that is more efficient |
<nb> public class Notification {
myListener = listener ;
myTimestamp = System . currentTimeMillis ( ) ;
- LOG . assertTrue ( ! StringUtil . isEmptyOrSpaces ( myContent ) , STRING0 + myGroupId ) ;
+ LOG . assertTrue ( ! StringUtil . isEmptyOrSpaces ( myContent ) , STRING1 + title + STRING2 + myGroupId ) ;
} ... | provide title in the assertion about empty content |
<nb> public class NextProtoNegoServerConnection extends AbstractConnection implements
{
SINGLE
SINGLE
- LOG . debug ( STRING0 , this ) ;
+ LOG . debug ( STRING1 , this , engine ) ;
close ( ) ;
} | add logging of the SSLEngine |
<nb> class Val < T > extends AbstractField < T > implements Param < T > {
this . value = value ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
private static String name ( Object value , String paramName ) {
return paramName == null ? String . valueOf ( valu... | Added Javadoc to internal method |
<nb> public class DefaultResolvedDependency implements ResolvedDependency {
this . parentArtifacts . put ( parent , parentArtifacts ) ;
}
parentArtifacts . addAll ( artifacts ) ;
+ moduleArtifacts . addAll ( artifacts ) ;
}
public void addModuleArtifact ( ResolvedArtifact artifact ) { | Treat moduleDependencies as the union of artifacts from all incoming dependencies |
<nb> public class MultiTouchSupport {
if ( pointCount < NUMBER0 ) {
if ( inZoomMode ) {
listener . onZoomOrRotationEnded ( zoomRelative , angleRelative ) ;
- inZoomMode = false ;
+ if ( pointCount == NUMBER1 ) {
+ inZoomMode = false ;
+ }
}
return false ;
}
<nb> public class MultiTouchSupport {
... | stay inZoomMode until last finger is liftetd |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class InternalComponentManager implements ComponentManager , RoutableChann
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
... | Added getComponents to get list of installed components |
<nb> public class UISettings implements PersistentStateComponent < UISettings > , Exporta
SINGLE
SHOW_MAIN_TOOLBAR = false ;
SHOW_ICONS_IN_MENUS = false ;
+ SHOW_MEMORY_INDICATOR = false ;
}
} | OK hide memory usage indicator by default |
<nb> public class GlobalToolbar extends Toolbar
addLeftWidget ( newButton ) ;
addLeftSeparator ( ) ;
+ addLeftWidget ( commands . newProject ( ) . createToolbarButton ( ) ) ;
+ addLeftSeparator ( ) ;
+
SINGLE
addLeftWidget ( commands . openSourceDoc ( ) . createToolbarButton ( ) ) ; | add new project icon to global toolbar kevinushey |
<nb> public class RuntimePermissionsAnnotatedElement {
public RuntimePermissionsAnnotatedElement ( TypeElement element ) {
String qualifiedName = element . getQualifiedName ( ) . toString ( ) ;
className = Utils . getClassName ( qualifiedName ) ;
+ validateClassName ( ) ;
packageName = Utils . getPackageName ... | Do tiny refactor |
<nb> public class VizGui extends JFrame implements VertexSelectionListener , Remaining
rightPanelTabs . addTab ( STRING0 , amScrollPane ) ;
Dimension size = new Dimension ( NUMBER0 , NUMBER1 ) ;
+
+ amScrollPane . setMaximumSize ( size ) ;
+ amScrollPane . setPreferredSize ( size ) ;
mdScrollPane . setMax... | use fixed width for annotation browser |
<nb> class ZoomManager {
COMMENT
COMMENT
public final float getReadingLevelScale ( ) {
- return mDisplayDensity * mWebView . getSettings ( ) . getDoubleTapZoom ( ) / FLOAT0 ;
+ WebSettings settings = mWebView . getSettings ( ) ;
+ final float doubleTapZoomFactor = settings != null
+ ? settings . getDouble... | Fix null ptr exception in getReadingLevelScale |
<nb> class Bitmap4x8FontRenderer extends BaseTextRenderer {
Rect destRect = new Rect ( ) ;
destRect . top = ( destY - kCharacterHeight ) ;
destRect . bottom = destY ;
+ boolean drawSpaces = mPalette [ backColor ] != mPalette [ TextStyle . ciBackground ] ;
for ( int i = NUMBER0 ; i < count ; i ++ ) {
SINGLE ... | Don t draw spaces that are the same color as the background |
<nb> public class XmlSchemaParser
return null ;
return n . getNodeValue ( ) ;
}
-
- COMMENT
- COMMENT
- COMMENT
- public static void test ( )
- {
-
- }
-
} | removed some test indentation code |
<nb> public class StorageService implements IEndpointStateChangeSubscriber , StorageSe
logger_ . info ( String . format ( STRING0 ,
endpoint , currentOwner , token , endpoint ) ) ;
tokenMetadata_ . updateNormalToken ( token , endpoint ) ;
+ Gossiper . instance . removeEndpoint ( currentOwner ) ;
if ( ! isClie... | Remove gossip state when a new IP takes over a token |
<nb> public class AppOpsService extends IAppOpsService . Stub {
usageRestrictions . put ( usage , r ) ;
}
}
+ notifyWatchersOfChange ( code ) ;
}
@ override
<nb> public class AppOpsService extends IAppOpsService . Stub {
pruneUserRestrictionsForToken ( token , userHandle ) ;
}
+ notifyWatchersOf... | Notify app op watchers when audio restrictions change |
<nb>
COMMENT
package NAMESPACE ;
+
+ import NAMESPACE ;
+
import NAMESPACE ;
COMMENT
<nb> public class CyclicBarrier {
final ReentrantLock lock = this . lock ;
lock . lock ( ) ;
try {
+ @ retainedlocalref
final Generation g = generation ;
if ( g . broken ) | Retain a local variable that might be released in another thread |
<nb> import NAMESPACE ;
@ runwith ( JUnit4 . class )
public class GuavaCollectionBuildersTest {
private static final ImmutableSet < String > NON_BUILDABLE_COLLECTIONS =
- ImmutableSet . of ( STRING0 , STRING1 ) ;
+ ImmutableSet . of ( STRING0 ) ;
@ rule public final Expect expect = Expect . create ( ) ; | Remove references to ImmutableMapBuilder |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
-
import NAMESPACE ;
public class ResolverImpl extends Resolver {
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
... | Remove extra space between import groups identified by Gump when running with latest Checkstyle HEAD |
<nb> public enum HttpMethod {
CONNECT ( intern ( STRING0 ) ) , PATCH ( intern ( STRING1 ) ) , PROPFIND ( intern ( STRING2 ) ) ,
PROPPATCH ( intern ( STRING3 ) ) , LOCK ( intern ( STRING4 ) ) , UNLOCK ( intern ( STRING5 ) ) ,
REPORT ( intern ( STRING6 ) ) , ACL ( intern ( STRING7 ) ) , MOVE ( intern ( STRING8 ) ) ... | add missing MKCOL http method enum zilti |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public class Dictionaries {
public enum MentionType {
<nb> public class Dictionaries {
getWordsFromFile ( neutralWordsFile , neutralWords , false ... | Add some javadoc |
<nb> public abstract class SSTableReader extends SSTable implements SelfRefCounted < SS
builtSummary = true ;
}
- long indexFileLength = new File ( descriptor . filenameFor ( Component . PRIMARY_INDEX ) ) . length ( ) ;
int dataBufferSize = optimizationStrategy . bufferSize ( sstableMetadata . estimatedPartit... | push down indexFileLength calc to where it s used |
<nb> public class RollingCommandMaxConcurrencyStreamTest extends CommandStreamTest {
final CountDownLatch latch = new CountDownLatch ( NUMBER0 ) ;
stream . observe ( ) . take ( NUMBER1 ) . subscribe ( getSubscriber ( latch ) ) ;
- Command cmd1 = Command . from ( groupKey , key , HystrixEventType . SUCCESS , NUM... | Increased command latency in RollingCommandMaxConcurrencyStreamTest |
<nb> public class JavaBasePlugin implements Plugin < ProjectInternal > {
createBinaryLifecycleTask ( sourceSet , project ) ;
ClassDirectoryBinarySpecInternal binary = instantiator . newInstance ( DefaultClassDirectoryBinarySpec . class , String . format ( STRING0 , sourceSet . getName ( ) ) , sourceSet , javaTool... | Don t add convention mappings to bridged ClassDirectoryBinarySpec instances |
<nb> public abstract class Config {
STRING0 ,
STRING1 ,
STRING2 ,
+ STRING3 ,
+ STRING4 ,
STRING5 ,
STRING6 ,
STRING7 | Include Ranges extension functions and Numbers NaN checks for JS |
<nb> public class GenerateFunctions {
out . print ( STRING0 + j ) ;
out . print ( STRING1 ) ;
}
- out . print ( STRING2 ) ;
+ out . print ( STRING3 ) ;
+ out . println ( ) ;
out . print ( STRING4 + ( extension ? STRING5 : STRING6 ) +
STRING7 ) ;
for ( int j = NUMBER0 ; j <= i ; j ++ ) {
<nb> public ... | Fix newlines in FunctionN generator |
<nb> public class TransactorSimple extends Transactor {
if ( inventory . getStackInSlot ( i ) == null ) {
continue ;
}
+
+ if ( ! inventory . isStackValidForSlot ( i , stack ) ) {
+ continue ;
+ }
if ( ! inventory . getStackInSlot ( i ) . isItemEqual ( stack ) || ! ItemStack . areItemStackTagsEqual ( ... | Transactors should obey isValid for partials |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PyExtractSuperclassDialog extends UpDirectedMembersMovingDialog {
box . add ( _panel ) ;
box . add ( Box . createVerticalS... | replace constructor with factory method |
<nb> public class PackageMaterialTest {
material . setPackageDefinition ( PackageDefinitionMother . create ( STRING0 , STRING1 , new Configuration ( ConfigurationPropertyMother . create ( STRING2 , false , STRING3 ) ) , repository ) ) ;
StringBuilder content = new StringBuilder ( ) ;
- material . emailContent (... | Fixed PackageMaterialTest to assert on date based on system s date format instead of hardcoded string |
<nb> public interface HyperSpaceWalker < MP extends Model . Parameters , C extends HyperSp
SINGLE
SINGLE
SINGLE
- return ( _visitedPermutationHashes . size ( ) < _maxHyperSpaceSize && _currentPermutationNum < search_criteria ( ) . max_models ( ) ) ;
+ return ( _visitedPermutationHashes . size ( ) < _maxHyperS... | Fix another typo |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import NAMESPACE ; | Add missing license |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAME... | removed unused imports |
<nb> public class ColQueryTest extends AbstractQueryTest {
@ test
public void testAlias11 ( ) {
QCat cat = new QCat ( STRING0 ) ;
-
- SINGLE
Cat c = alias ( Cat . class , cat ) ;
assertEquals ( cat . name , $ ( c . getName ( ) ) ) ;
-
- SINGLE
- assertEquals ( cat . name , $ ( alias ( cat ) . getNam... | made APT more configurable |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ SINGLE
+
COMMENT
COMMENT
COMMENT | added single TODO |
<nb> public class JavaParametersUtil {
parameters . getVMParametersList ( ) . addParametersString ( vmParameters ) ;
}
+ @ magicconstant ( valuesFromClass = JavaParameters . class )
public static int getClasspathType ( final RunConfigurationModule configurationModule , final String mainClassName ,
final boo... | add MagicConstant to return value |
<nb> public class PersistentRegistryManager
return PersistentRegistry . ACTIVE . createRegistry ( registryName , registryType , optionalDefaultKey , minId , maxId , addCallback , clearCallback , createCallback ) ;
}
- @ suppresswarnings ( STRING0 )
+ @ suppresswarnings ( { STRING0 , STRING1 } )
static < V e... | Fixed compile error in registry code with Eclipse |
<nb> public class OperationSetBasicInstantMessagingJabberImpl
logger . debug ( STRING0
+ fromUserID
+ STRING1
- + msg . getBody ( ) ) ;
+ + msg . toXML ( ) ) ;
}
KeepAliveEvent keepAliveEvent = | Changed debug statement for received jabber messages |
<nb> public class RosterManager extends BasicModule implements GroupEventListener {
}
Roster roster = rosterCache . get ( username ) ;
if ( roster == null ) {
- synchronized ( username . intern ( ) ) {
+ SINGLE
+ SINGLE
+ synchronized ( ( username + STRING0 ) . intern ( ) ) {
roster = rosterCache . get ... | Fixed deadlock loading users and rosters |
<nb> public class StackFrameProxyImpl extends JdiProxy implements StackFrameProxy {
final ThreadReference threadRef = myThreadProxy . getThreadReference ( ) ;
myStackFrame = threadRef . frame ( getFrameIndex ( ) ) ;
}
+ catch ( IndexOutOfBoundsException e ) {
+ throw new EvaluateException ( e . getMessage ( )... | throw correct exception |
<nb> class EmbeddedGraphDbImpl
if ( graphDbInstance . started ( ) )
{
sendShutdownEvent ( ) ;
+ jmxShutdownHook . run ( ) ;
}
- jmxShutdownHook . run ( ) ;
-
if ( this . shellService != null )
{
try | Makes sure tjat the JMX shutdown hook is only run once even if shutdown |
<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 ; | SMALLFIX Fixed imports |
<nb> public class Step extends MaterialData {
switch ( material ) {
case SANDSTONE :
setData ( ( byte ) NUMBER0 ) ;
+ break ;
case WOOD :
setData ( ( byte ) NUMBER1 ) ;
+ break ;
case COBBLESTONE :
setData ( ( byte ) NUMBER2 ) ;
+ break ;
case STONE :
default :
setData ( ( byte ) NUMBER3 ) ; | Fixed missing breaks breaking stuff |
<nb>
COMMENT
package NAMESPACE ;
- import static NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DaggerAdapterTest extends TestCase {
}
@ dagger.module static class SetBindingDaggerModule2 {
- @ dagger.provides ( type = SET ) Integer anInteger ( ) {
+... | Migrate Provides type Provides Type to new Dagger multibinding annotations |
<nb> public class ForgeHooks {
}
public static final int majorVersion = NUMBER0 ;
- public static final int minorVersion = NUMBER0 ;
+ public static final int minorVersion = NUMBER1 ;
public static final int revisionVersion = NUMBER2 ;
static {
System . out . printf ( STRING0 , majorVersion , minorVersi... | Fixed the version number |
<nb> public final class ContactsContract {
public static final String SUMMARY_COUNT = STRING0 ;
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static final String PARAM_RETURN_GROUP_COUNT_PER_ACCOUNT =
+ STRING1 ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
... | Introduce param column for group count |
<nb> final public class InvokeHelper {
int i = NUMBER0 ;
if ( passed != null )
for ( ParameterEntity param : parameters ) {
- if ( ! param . isUsed ( ) && param . getType ( ) == HintType . ANY ) continue ;
+ if ( ! param . isUsed ( ) && param . getType ( ) == HintType . ANY ) {
+ i ++ ;
+ continue ;
+ }... | Fix unused argument optimization bug |
<nb> public final class SystemServer {
private static final String WIFI_SERVICE_CLASS =
STRING0 ;
private static final String WIFI_PASSPOINT_SERVICE_CLASS =
- STRING1 ;
+ STRING2 ;
private static final String WIFI_P2P_SERVICE_CLASS =
STRING3 ;
private static final String HDMI_CEC_SERVICE_CLASS = | Fix a runtime break caused by merge conflict |
<nb> import NAMESPACE ;
public class NotificationService extends IntentService {
+ private static final boolean DEBUG = false ;
+
private static final int REQUEST_CODE_SINGLE_EPISODE = NUMBER0 ;
private static final int REQUEST_CODE_MULTIPLE_EPISODES = NUMBER1 ;
<nb> public class NotificationService e... | Allow debugging of notification service |
<nb> public class PathsList {
new Function < String , VirtualFile > ( ) {
public VirtualFile fun ( String s ) {
final FileType fileType = FileTypeManager . getInstance ( ) . getFileTypeByFileName ( s ) ;
- if ( FileTypes . ARCHIVE . equals ( fileType ) ) {
- return JarFileSystem . getInstance ( ) . findFileBy... | do not add directories with |
<nb> public class SpanishTreebankParserParams extends TregexPoweredTreebankParserPara
SINGLE
annotations . put ( STRING0 , new Pair (
- STRING1 ,
+ STRING2 +
+ STRING3 ,
new SimpleStringFunction ( STRING4 ) ) ) ;
compileAnnotations ( headFinder ) ; | Allow grup nom in coord NPs |
<nb> public class AsyncServer {
private boolean addMe ( ) {
synchronized ( mServers ) {
- AsyncServer current = mServers . get ( Thread . currentThread ( ) ) ;
+ AsyncServer current = mServers . get ( mAffinity ) ;
if ( current != null ) {
SINGLE
return false ; | AsyncServer lookup was not populating the right thread |
<nb> public class CompositeByteBuf extends AbstractByteBuf {
dst . writerIndex ( dst . capacity ( ) ) ;
}
+
+ public ByteBuf getBufferFor ( int index ) throws IOException {
+ if ( index < NUMBER0 || index > capacity ( ) ) {
+ throw new IndexOutOfBoundsException ( STRING0 + index
+ + STRING1 + ( index ) ... | Adds a method to get the buffer for a specific index in CompositeByteBuf |
<nb> public class ALAudioRenderer implements AudioRenderer , Runnable {
if ( src . getStatus ( ) == Status . Playing ) {
return ;
} else if ( src . getStatus ( ) == Status . Stopped ) {
- assert src . getChannel ( ) != - NUMBER0 ;
+ SINGLE
+ SINGLE
+ SINGLE
SINGLE
int index = newChannel ( ) ; | Removed one assertion in AlAudioRenderer as it can t pass considering the current AudioNode implementation |
<nb> public class DroidGap extends Activity {
if ( cupcakeStorage != null )
cupcakeStorage . setStorage ( appPackage ) ;
- root . addView ( appView ) ;
+ root . addView ( appView ) ;
+
setContentView ( root ) ;
}
<nb> public class DroidGap extends Activity {
mCtx = ctx ;
}
+ public boolean s... | Fixing the WebViewClient so we view pages in PhoneGap |
<nb> public class DependenciesPanelTest extends TestSourceBasedTestCase {
JTree leftTree = dependenciesPanel . getLeftTree ( ) ;
IdeaTestUtil . assertTreeEqual ( leftTree , STRING0 +
STRING1 +
- STRING2 +
- STRING3 + myModule . getName ( ) + STRING4 +
- STRING5 +
+ STRING6 +
+ STRING3 + myModule . getNa... | Removed n entries stuff from expected tree since they do not appear in real tree anymore |
<nb> public class SettingsProvider extends ContentProvider {
}
private static void appendSettingToCursor ( MatrixCursor cursor , Setting setting ) {
+ if ( setting == null ) {
+ return ;
+ }
final int columnCount = cursor . getColumnCount ( ) ;
String [ ] values = new String [ columnCount ] ; | Added null check in appendSettingToCursor |
<nb> public class PinotClientRequestServlet extends HttpServlet {
private BrokerResponse handleRequest ( JSONObject request ) throws Exception {
final String pql = request . getString ( STRING0 ) ;
- boolean isTraceEnabled = false ;
- try {
- isTraceEnabled = Boolean . parseBoolean ( request . getString ( S... | always enable trace as a temporary solution |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class JsonProvider implements MessageBodyReader < Object > , MessageBodyWrite
httpHeaders . putSingle ( HttpHeaders . CACHE_CONTROL , CACHE_CONTROL_VALUE ) ;
httpHeade... | don t wrap String responses with double quotes |
<nb> public final class BuildInfoProvider {
} else {
build = String . valueOf ( hazelcastBuild ) ;
}
- int buildNumber = - NUMBER0 ;
-
- try {
- buildNumber = Integer . parseInt ( build ) ;
- } catch ( Exception ignored ) {
- EmptyStatement . ignore ( ignored ) ;
- }
+ int buildNumber = Integer . ... | Reverted build parsing error handler |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class FileElement {
FileElement element = this ;
while ( element != null ) {
sb . insert ( NUMBER0 , element . myName ) ;
+ if ( element . myParent == null && Sys... | Fix chosen path composition on Windows |
<nb> public class DefaultEurekaClientConfig implements EurekaClientConfig {
COMMENT
@ override
public String getEurekaServerURLContext ( ) {
- return configInstance . getStringProperty ( namespace + STRING0 , null )
+ return configInstance . getStringProperty ( namespace + STRING1 , null )
. get ( ) ;
}
... | both telling what port to register as and what port the eureka server is listening on |
<nb> public class PipelineExecutionService {
try {
pipeline . execute ( ingestDocument ) ;
Map < IngestDocument . MetaData , String > metadataMap = ingestDocument . extractMetadata ( ) ;
+ SINGLE
+ SINGLE
indexRequest . index ( metadataMap . get ( IngestDocument . MetaData . INDEX ) ) ;
indexRequest . typ... | add comment to clarifiy why metadata fields can be set all the time to IndexRequest in PipelineExecutionService |
<nb> public abstract class SectionLayoutManager {
} else {
candidate = view ;
}
- } else {
- SINGLE
- return candidate ;
}
lookAt -= NUMBER0 ;
- return null ;
}
} | Fix SLM default get last completely visible view |
<nb> public class ScrollViewActivity extends SherlockActivity
mPullToRefreshAttacher = PullToRefreshAttacher . get ( this ) ;
SINGLE
- PullToRefreshLayout ptrLayout = ( PullToRefreshLayout ) findViewById ( R . id . ptr_webview ) ;
+ PullToRefreshLayout ptrLayout = ( PullToRefreshLayout ) findViewById ( R . id... | Fix ScrollView sample |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
... | Fix typos in ServiceLocatorFactoryBean |
<nb>
COMMENT
package NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
<nb> public class HTTPLoggingPreparednessRuleTest
private File badDirectory ( ) throws Exception
{
+ < < < < < < < Updated upstream
File f = new File ( STR... | fixing invalid directory test |
<nb> public class FromFileToFtpTest extends FtpRouteTest {
}
protected RouteBuilder createRouteBuilder ( ) throws Exception {
- ftpUrl = STRING0 ;
+ ftpUrl = STRING1 ;
return new RouteBuilder ( ) { | updated port number to avoid clash |
<nb> public class Animator < T > extends Animatable {
setCurrentPlayTime ( getCurrentPlayTime ( ) ) ;
}
mPlayingState = STOPPED ;
+ mStartedDelay = false ;
sPendingAnimations . add ( this ) ;
if ( sAnimationHandler == null ) {
sAnimationHandler = new AnimationHandler ( ) ;
<nb> public final class Sequen... | Fix problems with early ending of Sequencer |
<nb> public class ReaderPostListFragment extends Fragment
mSearchView . clearFocus ( ) ; SINGLE
hideSearchMessage ( ) ;
+ SINGLE
+ SINGLE
ReaderTag searchTag = ReaderSearchService . getTagForSearchQuery ( query ) ;
- mPostAdapter . setCurrentTag ( searchTag ) ;
+ ReaderPostTable . deletePostsWithTag ( s... | Remove cached results before requesting search results |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ShowcaseView extends RelativeLayout implements View . OnClickListener
}
- public AnimatorSet animateGesture ( float off... | Modified the animateHand method |
<nb> public class TestTextSearching extends TestBase {
good = getDs ( ) . createQuery ( Greeting . class )
. search ( STRING0 , STRING1 )
+ . order ( STRING2 )
. asList ( ) ;
Assert . assertEquals ( NUMBER0 , good . size ( ) ) ;
Assert . assertEquals ( STRING3 , good . get ( NUMBER1 ) . value ) ; | order both lists |
<nb> public class SettingsProvider extends ContentProvider {
private PackageInfo getCallingPackageInfoOrThrow ( int userId ) {
try {
- return mPackageManager . getPackageInfo ( getCallingPackage ( ) , NUMBER0 , userId ) ;
+ PackageInfo packageInfo = mPackageManager . getPackageInfo (
+ getCallingPackage ( )... | Fix a regression in SettingsProvider |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public class JobManagerUtils {
+ COMMENT
+ COMMENT
+ COMMENT
private static final Log LOG = LogFactory . getLog ( JobManagerUtils . class ) ;
+ COMMENT
+ COMMENT
+ COMMENT ... | Improved java doc |
<nb> public class BasicSaveSequenceFile {
JavaPairRDD < String , Integer > rdd = sc . parallelizePairs ( input ) ;
JavaPairRDD < Text , IntWritable > result = rdd . mapToPair ( new ConvertToWritableTypes ( ) ) ;
result . saveAsHadoopFile ( fileName , Text . class , IntWritable . class , SequenceFileOutputFormat .... | remove extara which snuck in to BasicSaveSequenceFile java example |
<nb> import NAMESPACE ;
COMMENT
public class SimpleMetadataUIInfo implements Serializable {
private static final Logger LOGGER = LoggerFactory . getLogger ( SimpleMetadataUIInfo . class ) ;
- private static final int DEFAULT_IMAGE_SIZE = NUMBER0 ;
+ private static final int DEFAULT_IMAGE_SIZE = NUMBER1 ;
... | refactored MDUI into core module |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class CompletionLookupArranger extends LookupArranger {
@ override
public void addElement ( Lookup lookup , LookupElement eleme... | calculate completionSorting weight outside EDT |
<nb> public class OpenChannelsCache { SINGLE
public synchronized void closeChannel ( File ioFile ) {
final ChannelDescriptor descriptor = myCache . remove ( ioFile ) ;
- if ( descriptor != null && ! descriptor . isLocked ( ) ) {
+ if ( descriptor != null ) {
+ assert ! descriptor . isLocked ( ) ;
+
Anti... | Revert assertion was important |
<nb> public abstract class BaseDirContext implements DirContext {
COMMENT
COMMENT
public void addResourcesJar ( URL url ) {
- JarFile jarFile = null ;
try {
JarURLConnection conn = ( JarURLConnection ) url . openConnection ( ) ;
- jarFile = conn . getJarFile ( ) ;
+ JarFile jarFile = conn . getJarFile (... | Revert part of previous clean up |
<nb> import NAMESPACE ;
COMMENT
public class MutablePropertyValues implements PropertyValues , Serializable {
- COMMENT
private final List < PropertyValue > propertyValueList ;
private Set < String > processedProperties ;
<nb> public class MutablePropertyValues implements PropertyValues , Serializable {... | removed formal deprecation from addPropertyValue just hinting at add now |
<nb> public class IOSSound implements Sound {
@ override
public long play ( ) {
- return play ( NUMBER0 , NUMBER0 , NUMBER0 , false ) ;
+ return play ( NUMBER0 , NUMBER0 , NUMBER1 , false ) ;
}
@ override
public long play ( float volume ) {
- return play ( volume , NUMBER0 , NUMBER0 , false ) ;
+ ... | Change IOSSound default pan to center |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.