diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class WireCompiler {
labels . add ( Label . REQUIRED ) ;
break ;
case REPEATED :
- if ( FieldInfo . isPacked ( field , false ) ) {
+ if ( FieldInfo . isPacked ( field , datatype == Datatype . ENUM ) ) {
labels . add ( Label . PACKED ) ;
} else {
labels . add ( Label . REPEATED ) ; | Emit a static import for PACKED when there is a packed enum |
<nb> public abstract class KeymapsTestCase extends PlatformTestCase {
{ STRING0 , STRING1 , STRING2 , STRING3 } ,
{ STRING4 , STRING5 , STRING6 } ,
{ STRING7 , STRING8 , STRING9 } ,
- { STRING10 , STRING11 , STRING12 } ,
+ { STRING10 , STRING11 , STRING12 , STRING13 } ,
{ STRING14 , STRING15 , STRING16 } , ... | move UpdateRunningApplicationAction to LiveEdit plugin |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ExtensionPassiveScan extends ExtensionAdaptor {
scannerList . add ( new PasswordAutocompleteScanner ( ) ) ;
scannerList . a... | Connected new passive scanning plugin to the extension |
<nb> public class DefaultContextAssociationManager implements ContextAssociationManag
@ override
public String getExecutionId ( ) {
- return getExecution ( ) . getId ( ) ;
+ Execution execution = getExecution ( ) ;
+ if ( execution != null ) {
+ return execution . getId ( ) ;
+ } else {
+ return null ... | Avoid NPE on BusinessProcess isAssociated |
<nb> public class SplitAttachmentsExpression extends ExpressionAdapter {
for ( Map . Entry < String , DataHandler > entry : exchange . getIn ( ) . getAttachments ( ) . entrySet ( ) ) {
final Message copy = exchange . getIn ( ) . copy ( ) ;
- copy . getAttachments ( ) . clear ( ) ;
- copy . getAttachments ( ) ... | camel mail split attachments sets a header with the attachment key |
<nb> public class Clock {
}
public static String prettyTime ( long timeInMs ) {
- StringBuffer result = new StringBuffer ( ) ;
+ StringBuilder result = new StringBuilder ( ) ;
if ( timeInMs > MS_PER_HOUR ) {
result . append ( timeInMs / MS_PER_HOUR ) . append ( STRING0 ) ;
} | Can use StringBuilder which is more performant than StringBuffer when there is no thread safety required |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> final public class H2O {
if ( GA != null )
startGAStartupReport ( ) ;
+
+ SINGLE
+ Log . info ( STRING0 + Arrays . toString ( Pa... | MINOR List all registered parsers in the H2O boot message |
<nb> public final class InjectProcessor extends AbstractProcessor {
@ override public boolean process ( Set < ? extends TypeElement > types , RoundEnvironment env ) {
try {
for ( InjectedClass injectedClass : getInjectedClasses ( env ) ) {
- writeInjectAdapter ( injectedClass . type , injectedClass . constructo... | Do not generate an InjectAdapter for classes with only static injections |
<nb> public class LucenePartitionedIndexStressTesting
private static final String UNIQUE_PROPERTY_PREFIX = STRING0 ;
private static final int NUMBER_OF_PROPERTIES = NUMBER0 ;
- private static final int BATCH_SIZE = NUMBER1 ;
+ private static final int BATCH_SIZE = Integer . valueOf ( getEnvVariable ( STRING1 ... | Add BATCH_SIZE parameter to lucene partitioned index stress test |
<nb> public class TestMsgHistoryService
assertTrue ( STRING0 , msgs . size ( ) >= NUMBER0 ) ;
COMMENT
+ COMMENT
+ COMMENT
+ rs = msgHistoryService . findByKeyword ( testMetaContact , STRING1 , false ) ;
+
+ assertTrue ( STRING2 , ! rs . isEmpty ( ) ) ;
+
+ msgs = getMessages ( rs ) ;
+
+ assertT... | Added tests for case in sensitive search |
<nb> public class ApplicationInfoManager {
InstanceStatus prev = instanceInfo . setStatus ( status ) ;
if ( prev != null ) {
for ( StatusChangeListener listener : listeners . values ( ) ) {
- listener . notify ( new StatusChangeEvent ( prev , status ) ) ;
+ try {
+ listener . notify ( new StatusChangeEvent ... | Adding exception handling around listener notification |
<nb> public class WeatherJob implements Job {
weatherPublisher . publish ( locationId ) ;
} catch ( Exception ex ) {
+ logger . error ( ex . getMessage ( ) , ex ) ;
throw new JobExecutionException ( ex . getMessage ( ) , ex ) ;
}
} | Added error logging to job |
<nb> public class DroidGap extends PhonegapActivity {
SINGLE
me . runOnUiThread ( new Runnable ( ) {
public void run ( ) {
- me . showWebPage ( errorUrl , true , true , null ) ;
+ me . showWebPage ( errorUrl , false , true , null ) ;
}
} ) ;
} | onReceivedError incorrectly sets openExternal to true |
<nb> public final class WebViewClassic implements WebViewProvider , WebViewProvider . Sc
SINGLE
private void calcOurContentVisibleRectF ( RectF r ) {
calcOurVisibleRect ( mContentVisibleRect ) ;
- r . left = viewToContentXf ( mContentVisibleRect . left ) ;
+ r . left = viewToContentXf ( mContentVisibleRect . ... | The visiblerect calculation should take view s scaling into consideration |
<nb> public class ModuleEditor implements Place . Navigator {
}
public ModuleConfigurationState createModuleConfigurationState ( ) {
- return new ModuleConfigurationStateImpl ( myProject , myModulesProvider , getModifiableRootModelProxy ( )
- , COMMENT null ) ;
+ return new ModuleConfigurationStateImpl ( my... | set default options for javaee facets created via Add facet |
<nb> public class Activator implements BundleActivator , BundleTrackerCustomizer {
}
SINGLE
- LOG . info ( STRING0 , classes . size ( ) ) ;
+ LOG . debug ( STRING0 , classes . size ( ) ) ;
for ( Class < ? > type : classes ) {
if ( LOG . isTraceEnabled ( ) ) {
LOG . trace ( STRING1 , ObjectHelper . name ... | Reduce logging noise for OSGi runtime |
<nb> public class AceEditor implements DocDisplay ,
private void indentPastedRange ( Range range )
{
- if ( ! fileType_ . canAutoIndent ( ) )
+ if ( fileType_ == null || ! fileType_ . canAutoIndent ( ) )
return ;
String firstLinePrefix = getSession ( ) . getTextRange ( | Fix null pointer exception |
<nb> import NAMESPACE ;
public class LeftDrawer extends MenuDrawer {
- private static final String TAG = STRING0 ;
-
public LeftDrawer ( Context context ) {
super ( context ) ;
}
<nb> import NAMESPACE ;
public class RightDrawer extends MenuDrawer {
- private static final String TAG = STRING1 ;... | Remove unused tags |
<nb> public class ShingleTokenFilterFactory extends AbstractTokenFilterFactory {
@ override
public TokenStream create ( TokenStream tokenStream ) {
- ShingleFilter filter = new ShingleFilter ( tokenStream , maxShingleSize , minShingleSize ) ;
+ ShingleFilter filter = new ShingleFilter ( tokenStream , minShing... | Fix reversed ShingleFilter constructor arguments |
<nb>
- package NAMESPACE ;
-
- import NAMESPACE ;
- import NAMESPACE ;
-
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ package NAMESPACE ;
+
+ import NAMESPACE ;
+ import NAMESPACE ;
+
public final class HttpConstants {
public static final class Method... | Fix copyright headers |
<nb> public abstract class AbstractReplicatedMap < K , V >
for ( FaultyMember faultyMember : faultyMembers ) {
memberDisappeared ( faultyMember . getMember ( ) ) ;
}
+ throw ce ;
}
}
SINGLE | If ping message fails prevent the wrong timeout detection of normal member that is no failure members |
<nb> public class JavaPluginLoader implements PluginLoader {
}
if ( plugin . isEnabled ( ) ) {
+ server . getPluginManager ( ) . callEvent ( new PluginDisableEvent ( plugin ) ) ;
+
JavaPlugin jPlugin = ( JavaPlugin ) plugin ;
ClassLoader cloader = jPlugin . getClassLoader ( ) ;
<nb> public class JavaP... | Changed PluginDisableEvent to fire before the disabling of a plugin instead of after where it s then invalid |
<nb> public class InterpreterFactory {
if ( className . equals ( Interpreter . registeredInterpreters . get ( intName ) ) ) {
logger . info ( STRING0 + intName + STRING1 + className ) ;
cleanCl . put ( intName , ccl ) ;
- }
- if ( className . equals ( interpreterClassList [ NUMBER0 ] ) ) {
- defaultInterp... | Fix bug that take wrong default interpreter |
<nb> package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DBCursorOldTest extends DatabaseTestCase {
}
private void insertTestData ( final DBCollection dbCollection , final int numberOfDocument... | Fixed a racy test that relied on connection affinity to threads |
<nb> public class GitBlit implements ServletContextListener {
userService . logout ( user ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
protected String encodeUsername ( String name ) {
- return name . replace ( STRING0 , STRING1 ) ;
+ return name . replace ( STRING0 , STRING... | Improve username en de coding for urls |
<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 ;
<nb> public abstract class AbstractValueHint {
}
... | reduce delay in showing value hints |
<nb> class SnackContainer extends FrameLayout {
public void clearSnacks ( boolean animate ) {
mSnacks . clear ( ) ;
+ removeCallbacks ( mHideRunnable ) ;
if ( animate ) mHideRunnable . run ( ) ;
} | the new snack bar hide too quick if clear previous snacks |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Container extends ViewGroup {
private float deltaX = - FLOAT0 ;
private float deltaY = - FLOAT0 ;
- private LayoutAnimator layoutAnimator ;
+ private Layou... | added default animation to Container |
<nb> public final class CipherSuiteConverter {
return STRING0 ;
}
+ if ( STRING1 . equals ( bulkCipher ) ) {
+ return STRING2 ;
+ }
+
return bulkCipher . replace ( STRING3 , STRING4 ) ;
} | Add SEED name mapping |
<nb> final class LoadAndDisplayImageTask implements Runnable , IoUtils . CopyListener {
checkTaskNotActual ( ) ;
bmp = configuration . memoryCache . get ( memoryCacheKey ) ;
- if ( bmp == null ) {
+ if ( bmp == null || bmp . isRecycled ( ) ) {
bmp = tryLoadBitmap ( ) ;
if ( bmp == null ) return ; SINGLE | do not used bitmap from memory cache if the bitmap is recycled |
<nb> public class CallerInfo {
SINGLE
SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
columnIndex = cursor . getColumnIndex ( PhoneLookup . CUSTOM_RINGTONE ) ;
if ( ( columnIndex != - NUMBER0 ) && ( cursor . getString ( columnIndex ) != null ) ) {
- info . contactRingtoneUri = Uri . parse ( cursor . getS... | Modified getCallerInfo to handle silent ringtone comment added |
<nb> public class CommitChangeListDialog extends DialogWrapper implements CheckinProj
return ;
}
- doCommit ( ) ;
-
super . doOKAction ( ) ;
+ doCommit ( ) ;
}
catch ( InputException ex ) {
ex . show ( ) ;
<nb> public class RollbackChangesDialog extends DialogWrapper {
@ override
protected v... | Close dialog first then show progress |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class GitTestCase extends AbstractVcsTestCase {
public void run ( ) {
try {
initProject... | fixed another write action issue |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class AbstractStreamServerService implements Service < AcceptingCh
@ override
public void stop ( StopContext context )... | Stream server service should close stream server on stop |
<nb> final class Utility {
skipFully ( file , NUMBER0 ) ;
}
- static void swallowCode ( DataInputStream file ) throws IOException {
+ static void swallowCode ( DataInput file ) throws IOException {
SINGLE
SINGLE
skipFully ( file , NUMBER1 ) ;
<nb> final class Utility {
}
}
- static void swallo... | Don t use DataInputStream where we don t have to |
<nb> public class HgUpdateToDialog extends DialogWrapper {
}
private void update ( ) {
- setOKActionEnabled ( validateOptions ( ) ) ;
revisionTxt . setEnabled ( revisionOption . isSelected ( ) ) ;
branchSelector . setEnabled ( branchOption . isSelected ( ) ) ;
tagSelector . setEnabled ( tagOption . isSele... | Removed unnecessary method validateOptions and setOkActionEnabled method call |
<nb> public final class PrintSpoolerService extends Service {
final int heightMils = Integer . parseInt ( parser . getAttributeValue ( null ,
ATTR_HEIGHT_MILS ) ) ;
String packageName = parser . getAttributeValue ( null , ATTR_PACKAGE_NAME ) ;
- final int labelResId = Integer . parseInt ( parser . getAttributeV... | Null not handled when parsing media size resource id attribute |
<nb> public class SimpleGrailsControllerHelper implements GrailsControllerHelper {
Class [ ] paramTypes = action . getParameterTypes ( ) ;
GroovyObject commandObject = null ;
if ( paramTypes != null && paramTypes . length > NUMBER0 ) {
+ SINGLE
Class c = paramTypes [ NUMBER0 ] ;
if ( isCommandObjectClass ( ... | added a comment |
<nb> public abstract class AbstractJetPsiCheckerTest extends JetLightCodeInsightFixtu
@ notnull
@ override
protected LightProjectDescriptor getProjectDescriptor ( ) {
- return JetLightProjectDescriptor . INSTANCE ;
+ return getProjectDescriptorFromTestName ( ) ;
}
}
<nb> import NAMESPACE ;
import NAME... | Add ability to configure checker tests with directives |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DeployToServerSettingsEditor < S extends ServerConfiguration , D exten
return FormBuilder . createFormBuilder ( )
. addLabeledComponent ( STRI... | improve UI for configuring container options align main deployment config tab to top |
<nb>
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb>
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb>
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb>
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb>
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb>
- COMMEN... | Fixed the CS errors of camel paxlogging |
<nb> public class EnumHelper
return enumClass . cast ( newInstance . invoke ( getConstructorAccessor ( decompiled , enumClass , additionalTypes ) , new Object [ ] { parms } ) ) ;
}
- private static void setFailsafeFieldValue ( Field field , Object target , Object value ) throws Exception
+ public static void ... | Made setFailsafeFieldValue public for Rob |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ReaderPostListFragment extends Fragment
final ViewGroup rootView = ( ViewGroup ) inflater . inflate ( R . layout . reader_fra... | Hide the new posts message when the reader list is scrolled |
<nb> public abstract class AbstractTask implements Task
protected AbstractTask ( String id , String groupId , String dataSource , Interval interval )
{
- this . id = Preconditions . checkNotNull ( id , STRING0 ) ;
- this . groupId = Preconditions . checkNotNull ( groupId , STRING1 ) ;
- this . taskResource ... | Simplify AbstractTask constructor |
<nb> public class StringUtil extends StringUtilRt {
return value . indexOf ( ch ) >= NUMBER0 ;
}
+ COMMENT
+ COMMENT
+ COMMENT
@ nullable
public static String firstLetterToUpperCase ( @ nullable final String displayString ) {
if ( displayString == null || displayString . isEmpty ( ) ) return displaySt... | deprecate com intellij openapi util text StringUtil firstLetterToUpperCase |
<nb> package NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
+ COMMENT
COMMENT
public interface AudioNotifierService
- {
+ {
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
public SCAudioClip createAudio ( String uri ) ;
-
+
COMMENT
- COMMENT
+... | removed unused import |
<nb> public class SerializationFactory {
public static Kryo getKryo ( Map conf ) {
KryoSerializableDefault k = new KryoSerializableDefault ( ) ;
k . setRegistrationRequired ( ! ( ( Boolean ) conf . get ( Config . TOPOLOGY_FALL_BACK_ON_JAVA_SERIALIZATION ) ) ) ;
+ k . setReferences ( false ) ;
k . register ( b... | don t do reference serialization with Kryo to make it faster |
<nb> final class RestMethodInfo {
if ( ! requestHasBody ) {
if ( requestType == RequestType . MULTIPART ) {
throw new IllegalStateException (
- STRING0
+ STRING1
+ method . getName ( )
+ STRING2 ) ;
}
if ( requestType == RequestType . FORM_URL_ENCODED ) {
throw new IllegalStateException (
- STRING... | Fix english in exception message |
<nb> public class EncoderConfig {
COMMENT
COMMENT
public EncoderConfig ( ) {
- this ( HTTP . DEFAULT_CONTENT_CHARSET , UTF_8 ) ;
+ this ( HTTP . DEF_CONTENT_CHARSET . toString ( ) , UTF_8 ) ;
}
public EncoderConfig ( String defaultContentCharset , String defaultQueryParameterCharset ) { | Removed a deprecation |
<nb> public class WebappClassLoader
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Add javadoc to clarify method use |
<nb> public class RunManagerImpl extends RunManagerEx implements JDOMExternalizable ,
for ( Iterator < RunnerAndConfigurationSettings > it = getSortedConfigurations ( ) . iterator ( ) ; it . hasNext ( ) ; ) {
final RunnerAndConfigurationSettings configuration = it . next ( ) ;
if ( configuration . equals ( settin... | remove selected configuration |
<nb> public class XMLSourceProcessor extends BaseSourceProcessor {
processErrorMessage (
fileName ,
- STRING0 + fileName + STRING1 + referencePackagePath ) ;
+ STRING0 + fileName + STRING1 + entityName + STRING1 +
+ referenceEntity ) ;
}
} | SourceFormatter Improve error message so it s easier to find reference that is not sorted properly |
<nb> public abstract class Application < T extends Configuration > {
COMMENT
public void run ( String . . . arguments ) throws Exception {
final Bootstrap < T > bootstrap = new Bootstrap < > ( this ) ;
- bootstrap . addCommand ( new ServerCommand < > ( this ) ) ;
- bootstrap . addCommand ( new CheckCommand < ... | Make the addition of the server and check commands optional |
<nb> public class LayoutCacheFilter implements Filter {
Map headers = data . getHeaders ( ) ;
- Iterator itr = headers . keySet ( ) . itrator ( ) ;
+ Iterator itr = headers . keySet ( ) . iterator ( ) ;
while ( itr . hasNext ( ) ) {
String headerKey = ( String ) itr . next ( ) ; | Fixed typo that prevented proper compiling |
<nb> public abstract class NanoWebSocketServer extends NanoHTTPD {
return handshakeResponse ;
} else {
- return super . serve ( session ) ;
+ return serveHttp ( session ) ;
}
}
+
+ protected Response serveHttp ( final IHTTPSession session ) {
+ return super . serve ( session ) ;
+ }
COMMENT
... | Allows WebSocket servers to easily override default HTTP behavior |
<nb> public class MySiteFragment extends Fragment
@ override
public void onPause ( ) {
super . onPause ( ) ;
- AniUtils . showFab ( mFabView , false ) ;
+ if ( mFabView . getVisibility ( ) == View . VISIBLE ) {
+ AniUtils . showFab ( mFabView , false ) ;
+ }
}
@ override
<nb> public class MySiteFr... | Don t show FAB on My Site when there aren t any sites |
<nb> public class DismissViewImageButton extends ImageButton {
outRect . top += translationY ;
outRect . bottom += translationY ;
}
+
+ @ override
+ public boolean hasOverlappingRendering ( ) {
+ return false ;
+ }
}
<nb> public class PhoneStatusBar extends BaseStatusBar implements DemoMode ,
}
... | Fix janky in transition doze lockscreen |
<nb> public abstract class AbstractTableMerger
private static final String SELECT_BY_ID = BaseColumns . _ID + STRING0 ;
private static final String SELECT_UNSYNCED =
- STRING1 + _SYNC_ACCOUNT + STRING2 + _SYNC_ACCOUNT + STRING3
- + STRING1 + _SYNC_ID + STRING4 + _SYNC_DIRTY + STRING5
+ STRING1 + _SYNC_ACCOU... | Fix AbstractTableMerger for new Account format |
<nb> public final class DefaultBlockWorker extends AbstractWorker implements BlockWor
COMMENT
private final FileSystemMasterClient mFileSystemMasterClient ;
- COMMENT
- private SpaceReserver mSpaceReserver = null ;
COMMENT
private BlockHeartbeatReporter mHeartbeatReporter ;
COMMENT | Remove unused field |
<nb> public class RaptorSearch {
. getTransferSlack ( ) - options . getAlightSlack ( ) ) ;
ShortestPathTree spt ;
GenericDijkstra dijkstra = new GenericDijkstra ( walkOptions ) ;
+ dijkstra . setShortestPathTreeFactory ( bounder ) ;
List < State > transitStopStates = new ArrayList < State > ( ) ;
if ( nBo... | use stored SPT even for initial search and remove obsolete todo |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class WebIntegrationProcessor implements DeploymentUnitProcessor {
private final FilterMetaData CPF ;
private final FilterMapping... | Weld web integration does not abort deployment if not metadata present |
<nb> class LayoutRowGenerator extends AbstractGenerator < LayoutRow , MutableLayoutRow >
@ override
public LayoutRow generateFirst ( ) {
List < NodeRow > rows = graph . getNodeRows ( ) ;
- assert ! rows . isEmpty ( ) ;
+ if ( rows . isEmpty ( ) ) {
+ return new MutableLayoutRow ( ) ;
+ }
NodeRow first... | log Allow empty log for filtering purposes |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- @ suppresswarnings ( STRING0 )
public final class ACRAConfiguration implements Serializable {
private final ImmutableSet < String > additionalDropBoxTags ; | this should not contain anything unused |
<nb> public class DefaultStaticLibraryArchiverSpec implements StaticLibraryArchiverSp
private final List < File > objectFiles = new ArrayList < File > ( ) ;
private final List < String > args = new ArrayList < String > ( ) ;
private File outputFile ;
+ private File tempDir ;
public List < File > getObjectFi... | Fix implementation of StaticLibraryArchiverSpec |
<nb> public class FluxBuilder {
topologyDef . parallelismForBolt ( stream . getTo ( ) ) ) ;
declarers . put ( stream . getTo ( ) , declarer ) ;
}
+ } else if ( boltObj instanceof IStatefulBolt ) {
+ if ( declarer == null ) {
+ declarer = builder . setBolt (
+ stream . getTo ( ) ,
+ ( IStatefulBolt ) bol... | Flux can now handle IStatefulBolts |
<nb> public class FragmentActivity extends Activity {
return nc != null ? nc . custom : null ;
}
- void supportInvalidateOptionsMenu ( ) {
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public void supportInvalidateOptionsMenu ( ) {
if ( android . os . Build . VERSION . SDK_INT >= HONEYCOMB )... | Make FragmentActivity supportInvalidateOptionsMenu public |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class FileStructurePopup implements Disposable {
} ) ;
checkBox . setFocusable ( false ) ;
+ UIUtil . applyStyle ( UIUtil . C... | set mini style to narrow down |
<nb> import static NAMESPACE ;
public class HtmlDomParserContext extends XmlDomParserContext {
protected static final String PROPERTY_FILTERS =
STRING0 ;
+ protected static final String PROPERTY_ELEM_NAMES =
+ STRING1 ;
+ protected static final String PROPERTY_ATTRS_NAMES =
+ STRING2 ;
protected static ... | Move long strings used to configure parser into constants |
<nb> class PeepholeRemoveDeadCode extends AbstractPeepholeOptimization {
TernaryValue condValue = NodeUtil . getImpureBooleanValue ( cond ) ;
if ( condValue == TernaryValue . UNKNOWN ) {
- return n ; SINGLE
+ SINGLE
+ SINGLE
+ if ( ! areNodesEqualForInlining ( thenBody , elseBody ) ) {
+ return n ; SING... | Add folding of hook expressions with equivalent result expressions to |
<nb> public class ExpandHelper implements Gefingerpoken {
public boolean onScaleBegin ( ScaleGestureDetector detector ) {
if ( DEBUG_SCALE ) Log . v ( TAG , STRING0 ) ;
- startExpanding ( mResizedView , STRETCH ) ;
+ if ( ! mOnlyMovements ) {
+ startExpanding ( mResizedView , STRETCH ) ;
+ }
return mExp... | Do not expand notifications with expand gesture when disallowed |
<nb> public class AccountsConfigurationForm
this . buttonsPanel . add ( newButton ) ;
this . buttonsPanel . add ( saveButton ) ;
+ this . getRootPane ( ) . setDefaultButton ( saveButton ) ;
+
this . scrollPane . getViewport ( ) . add ( wrapAccountsPanel ) ;
this . wrapAccountsPanel . add ( accountsPanel... | Save only accounts that has been modified |
<nb> public class SessionManager extends BasicModule {
}
else {
SINGLE
- username = username . toLowerCase ( ) ;
Session session = null ;
SessionMap sessionMap = sessions . get ( username ) ;
if ( sessionMap != null ) {
<nb> public class IQAuthHandler extends IQHandler implements IQAuthInfo {
response... | Fixed problem with uppercase letters in username |
<nb> public final class CalendarParsedResult extends ParsedResult {
String attendee ,
String title ) {
super ( ParsedResultType . CALENDAR ) ;
+ SINGLE
+ if ( start == null ) {
+ throw new IllegalArgumentException ( ) ;
+ }
validateDate ( start ) ;
validateDate ( end ) ;
this . summary = summary ;
... | Fixed a crash in calendar parsing when encountering an illegal VEVENT without newlines |
<nb> public class RealmProcessor extends AbstractProcessor {
if ( qualifiedPackageName != null ) {
String qualifiedClassName = qualifiedPackageName + STRING0 + classElement . getSimpleName ( ) + STRING1 ;
- qualifiedClassName = qualifiedClassName . replace ( STRING0 , STRING2 ) ;
+ SINGLE
JavaFileObject j... | Fix the regression in the annotation processor |
<nb> public class SimpleFuture < T > extends SimpleCancellable implements DependentFutur
if ( ! super . cancel ( ) )
return false ;
SINGLE
+ FutureCallback < T > callback ;
synchronized ( this ) {
exception = new CancellationException ( ) ;
callback = null ;
releaseWaiterLocked ( ) ;
+ callback = hand... | cancels should trigger callbacks |
<nb> public class CucumberMojo extends AbstractJRubyMojo {
protected boolean installGems = false ;
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ protected boolean failOnError = true ;
+
+ COMMENT
COMMENT
COMMENT
protected List < String > gems ;
<nb> pu... | Added optional parameter failOnError so Maven build can be made to look successful even when there are Cucumber test failures |
<nb> public class TextureUtil {
public static IosGLImageFormat getImageFormat ( Format fmt ) throws UnsupportedOperationException {
IosGLImageFormat imageFormat = new IosGLImageFormat ( ) ;
switch ( fmt ) {
- case RGBA16 :
- case RGB16 :
- case RGB10 :
- case Luminance16 :
- case Luminance16Alpha16 :
... | Remove use of deprecated image formats IOS |
<nb> public class TraktAddLoader extends GenericSimpleLoader < TraktAddLoader . Result > {
Response < List < BaseShow > > response ;
if ( type == TraktAddFragment . TYPE_WATCHED ) {
action = STRING0 ;
- response = trakt . sync ( ) . watchedShows ( Extended . IMAGES ) . execute ( ) ;
+ response = trakt . sync ... | Get even more minimal info for trakt watched shows tab |
<nb> public class QueueFragment extends Fragment {
public static final String TAG = STRING0 ;
private static final int EVENTS = EventDistributor . DOWNLOAD_HANDLED |
+ EventDistributor . UNREAD_ITEMS_UPDATE | SINGLE
EventDistributor . PLAYER_STATUS_UPDATE ;
private TextView infoBar ; | Refresh queue when item playback position is reset |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
public abstract class AbstractConnectHandlerTest
{
+ @ rule
+ public final TestTracker tracker = new TestTracker (... | Updated test to print out test method via TestTracker |
<nb> public class HyperLogLogType
{
return slice . getShort ( offset ) ;
}
+
+ @ override
+ public String toString ( )
+ {
+ return getName ( ) ;
+ }
} | Implement toString for hll |
<nb> public class EmailIntentSender implements ReportSender {
emailIntent . addFlags ( Intent . FLAG_ACTIVITY_NEW_TASK ) ;
emailIntent . putExtra ( android . content . Intent . EXTRA_SUBJECT , subject ) ;
emailIntent . putExtra ( android . content . Intent . EXTRA_TEXT , body ) ;
- emailIntent . putExtra ( andr... | Don t use EXTRA_EMAIL |
<nb> public abstract class Vertex implements Serializable , Cloneable {
return new Coordinate ( getX ( ) , getY ( ) ) ;
}
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
public double azimuthTo ( Coordinate other ) {
return DirectionUtils . getAzimuth ( getCoordinate ( ) , ... | remove trivial javadoc |
<nb> public class Request
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public void setRemoteAddr ( String remoteAddr ) {
+ this . remoteAddr = remoteAddr ;
+ }
+
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public void setRemoteHost ( String remoteHost ) {
... | Add back the setters for remote host and remote address and provide an implementation |
<nb> public class CoyoteAdapter implements Adapter {
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public static boolean normalize ( MessageBytes uriMB ) {
<nb> public class CoyoteAdapter implemen... | Fix a couple of Javadoc warnings since I am working with this class already |
<nb> public class Tutorials extends HTMLOnlyRequest {
+ STRING0
+ STRING1
- + STRING2
+ + STRING3
+ STRING4
+ STRING5
+ STRING0
+ STRING6
- + STRING7
+ + STRING8
+ STRING9
+ STRING5
+ STRING0
+ STRING10
- + STRING11
+ + STRING12
+ STRING13
+ STRING5
+ STRING0
+ STRING14
... | Reword tutorials to align them vertically |
<nb> public class StackHelper {
if ( oreDictionary ) {
int idBase = OreDictionary . getOreID ( base ) ;
if ( idBase >= NUMBER0 ) {
- int idComp = OreDictionary . getOreID ( comparison ) ;
- if ( idComp >= NUMBER0 ) {
- if ( idBase == idComp )
- return true ;
+ for ( ItemStack itemstack : OreDictionary .... | Fix determination of crafting equivalency |
<nb> import NAMESPACE ;
public @ interface PullParameter
{
- String defaultValue ( ) default STRING0 ;
+ String [ ] defaultValue ( ) default { } ;
String defaultValueGetterMethod ( ) default STRING0 ; | Defined PullParameter defaultValue as |
<nb> public class RenderScript {
public void scriptCSetScript ( String s ) {
try {
- scriptCSetScript ( s . getBytes ( STRING0 ) ) ;
+ byte [ ] bytes = s . getBytes ( STRING0 ) ;
+ nScriptCSetScript ( bytes , NUMBER0 , bytes . length ) ;
} catch ( java . io . UnsupportedEncodingException e ) {
throw new... | Remove versions of scriptCSetScript method that take byte arrays |
<nb> public class BaseWrapperAdapter < VH extends RecyclerView . ViewHolder >
super . setHasStableIds ( mWrappedAdapter . hasStableIds ( ) ) ;
}
- private boolean isWrappedAdapterAlive ( ) {
+ public boolean isWrappedAdapterAlive ( ) {
return mWrappedAdapter != null ;
} | Make isWrappedAdapterAlive method public |
<nb> public class ExpandableUploadListAdapter extends BaseExpandableListAdapter imple
if ( ! upload2 . getUploadStatus ( ) . equals ( UploadStatus . UPLOAD_IN_PROGRESS ) ) {
return - NUMBER0 ;
}
+ SINGLE
FileUploader . FileUploaderBinder binder = mParentActivity . getFileUploaderBinder ( ) ;
if ( binder != ... | Fix comparator determining order of list of uploads |
<nb> public class GoogleTestPlugin implements Plugin < Project > {
}
@ finalize
- public void configureGoogleTestTestSuiteSources ( TestSuiteContainer testSuites , @ path ( STRING0 ) File buildDir ) {
+ public void configureGoogleTestTestSuiteSources ( TestSuiteContainer testSuites ) {
for ( final GoogleTes... | Removed unused parameter |
<nb> public class XmppConnection extends ImConnection implements CallbackHandler {
@ override
public void logoutAsync ( ) {
+ do_logout ( ) ;
+ COMMENT
execute ( new Runnable ( ) {
@ override
public void run ( ) {
do_logout ( ) ;
}
} ) ;
+ COMMENT
}
SINGLE | don t logout async logout now |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+
COMMENT
COMMENT
COMMENT | Fixed import order CheckStyle errors |
<nb> public class Config
this . persistenceModule = new PersistenceModule ( ) ;
this . cacheManager = new AdaptiveCacheManager ( ) ;
this . params . put ( FileSystemAbstraction . class , fileSystem ) ;
- SINGLE
graphDbModule = new GraphDbModule ( graphDb , cacheManager , lockManager ,
txModule . getTxManage... | Added license header |
<nb> public class PackageFactoryTest extends PackageFactoryTestBase {
STRING0 ) ;
}
+ @ override
protected PackageFactoryApparatus createPackageFactoryApparatus ( ) {
return new PackageFactoryApparatus ( events . reporter ( ) ) ;
}
+ @ override
protected String getPathPrefix ( ) {
return STRING1 ;... | Added missing annotations and renamed a method for consistency |
<nb> class InlineLocalHandler {
return ;
}
+ PsiFile workingFile = local . getContainingFile ( ) ;
+ for ( int i = NUMBER0 ; i < refs . length ; i ++ ) {
+ final PsiFile otherFile = refs [ i ] . getElement ( ) . getContainingFile ( ) ;
+ if ( ! otherFile . equals ( workingFile ) ) {
+ String message = S... | Turn off inline local for variables that are included in other jsp files |
<nb> public class InspectorTest extends TestCase implements Serializable {
String [ ] names = { STRING0 , STRING0 , STRING1 , STRING1 , STRING1 , STRING2 , STRING3 , STRING3 , STRING4 , STRING5 , STRING6 ,
STRING7 , STRING8 , STRING9 , STRING10 , STRING11 , STRING12 , STRING13 , STRING14 , STRING15 ,
STRING16 , S... | changing method count on Object for new method addShutdownHook method |
<nb> public class WindowManagerService extends IWindowManager . Stub
SINGLE
for ( int taskNdx = NUMBER0 ; taskNdx < numTasks ; ++ taskNdx ) {
AppTokenList tokens = tasks . get ( taskNdx ) . mAppTokens ;
- int pos = findAppWindowInsertionPointLocked ( tokens . get ( NUMBER0 ) ) ;
final int numTokens = tokens .... | Add empty ArrayList check |
<nb> public class HttpBindServlet extends HttpServlet {
Log . trace ( STRING0 + remoteAddress + STRING1 ) ;
SINGLE
- SINGLE
+ SINGLE
+ SINGLE
context . getResponse ( ) . setBufferSize ( data . length ) ;
+ context . getResponse ( ) . setContentLength ( data . length ) ;
context . getResponse ( ) . g... | Set content length to prevent chunked encoding |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.