diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class AntPropertyImpl extends AntTaskImpl implements AntProperty { value = sourceElement . getAttributeValue ( STRING0 ) ; } } - return computeAttributeValue ( value ) ; + COMMENT } @ nullable <nb> public class AntStructuredElementImpl extends AntElementImpl implements AntStruc startProp...
prevent infinite recursion
<nb> public class SftpOperations implements RemoteFileOperations < ChannelSftp . LsEntry > public String [ ] promptKeyboardInteractive ( String destination , String name , String instruction , String [ ] prompt , boolean [ ] echo ) { - return new String [ ] { configuration . getPassword ( ) } ; + SINGLE + i...
Fixed NPE in sftp if no password given
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public abstract class ForwardingService extends ForwardingObject @ override public boolean isRunning ( ) { return delegate ( ) . ...
Reduce the visibility of ForwardingService internally
<nb> public class SaveCredentialsActivity extends AppCompatBase } if ( translatedProvider != null ) { builder . setAccountType ( translatedProvider ) ; + } else { + Log . e ( TAG , STRING0 ) ; + finish ( RESULT_FIRST_USER , getIntent ( ) ) ; + return ; } } }
Prevent IllegalArgumentException in SaveCredentialsActivity
<nb> public class StudyDirectoryProjectGenerator extends PythonProjectGenerator imple COMMENT public void downloadAndUnzip ( boolean needProgressBar ) { - File outputFile = new File ( PathManager . getLibPath ( ) , STRING0 ) ; + File outputFile = new File ( PathManager . getConfigPath ( ) , STRING0 ) ; try ...
changed lib path to config path
<nb> public class UriBeaconDiscoveryService extends Service implements MetadataResolv private static final int NON_LOLLIPOP_NOTIFICATION_TITLE_COLOR = Color . parseColor ( STRING0 ) ; private static final int NON_LOLLIPOP_NOTIFICATION_URL_COLOR = Color . parseColor ( STRING1 ) ; private static final int NON_LOLLI...
updated notification priority
<nb> public final class ViewRootImpl implements ViewParent , mSurfaceHolder . setSurfaceFrameSize ( mWidth , mHeight ) ; mSurfaceHolder . mSurfaceLock . unlock ( ) ; if ( mSurface . isValid ( ) ) { - if ( ! hadSurface || surfaceGenerationId != mSurface . getGenerationId ( ) ) { + if ( ! hadSurface ) { mSurf...
Don t call surfaceCreated for just changed surfaces
<nb> public enum StreetTraversalPermission { NONE ( NUMBER0 ) , PEDESTRIAN ( NUMBER1 ) , BICYCLE ( NUMBER2 ) , - PEDESTRIAN_AND_BICYCLE ( NUMBER3 ) , + PEDESTRIAN_AND_BICYCLE ( NUMBER2 | NUMBER1 ) , CAR ( NUMBER4 ) , - PEDESTRIAN_AND_CAR ( NUMBER5 ) , - BICYCLE_AND_CAR ( NUMBER6 ) , - ALL ( NUMBER7 ) ...
Add StreetTraversalPermission for custom motor vehicles
<nb> public class ToolbarActivity extends AppCompatActivity { if ( id == R . id . item_samplebadge ) { Toast . makeText ( this , R . string . sample_3 , Toast . LENGTH_SHORT ) . show ( ) ; badgeCount -- ; - invalidateOptionsMenu ( ) ; + ActionItemBadge . update ( item , badgeCount ) ; return true ; } else...
add better update item practice
<nb> class GitSmartOperationDialog extends DialogWrapper { private class ForceCheckoutAction extends AbstractAction { ForceCheckoutAction ( @ notnull String operationTitle ) { - super ( STRING0 + capitalize ( operationTitle ) ) ; + super ( STRING1 + capitalize ( operationTitle ) ) ; } @ override
Add mnemonic to Force checkout merge
<nb> import NAMESPACE ; import static NAMESPACE ; - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT public final class CommandResultCollector { private final ConsoleLogger logger ; private final String command ;
moved result collector up to abstract command
<nb> public class ActivityLauncher { statsPostViewIntent . putExtra ( StatsSingleItemDetailsActivity . ARG_REMOTE_ITEM_ID , post . getItemID ( ) ) ; statsPostViewIntent . putExtra ( StatsSingleItemDetailsActivity . ARG_REMOTE_ITEM_TYPE , post . getPostType ( ) ) ; statsPostViewIntent . putExtra ( StatsSingleItemD...
Fix an issue where the title of the item was passed instead of the URL
<nb> public class JetFileType extends LanguageFileType { @ notnull public String getName ( ) { - return STRING0 ; + return STRING1 ; } @ notnull
File type renamed
<nb> public abstract class AbstractEndpoint < S > { COMMENT COMMENT COMMENT + COMMENT + COMMENT COMMENT protected abstract void createSSLContext ( SSLHostConfig sslHostConfig ) throws Exception ; <nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAM...
Fix build nags
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class ODocument extends ORecordSchemaAwareAbstract < Object > implements Ite } COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class OSQLFilterItemField extends ...
Fixed messages with apostrophes
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; public class MessageOutputBindings extends AbstractModule { @ override protected void configure ( ) { - bind ( MessageOutput . class ) . annotatedWith...
Make sure the DefaultMessageOutput is always the same instance
<nb> public final class ReleaseBundlingSupport { . addInput ( attributes . environmentPlistScript ( ) ) . setExecutable ( attributes . environmentPlistScript ( ) ) . addArguments ( STRING0 , platformWithVersion ) - . addArguments ( - STRING1 , getGeneratedEnvironmentPlist ( ) . getShellEscapedExecPathString (...
Don t shell escape parameters to a non shell action environment plist
<nb> public final class From implements Sqlable { addFrom ( sql ) ; addJoins ( sql ) ; addWhere ( sql ) ; + addGroupBy ( sql ) ; + addHaving ( sql ) ; + addLimit ( sql ) ; + addOffset ( sql ) ; sql . append ( STRING0 ) ;
Must honor group by having limit and offset for exists
<nb> public enum WarningLevel { SINGLE - options . setCheckProvides ( CheckLevel . OFF ) ; + options . setWarningLevel ( DiagnosticGroups . MISSING_PROVIDE , CheckLevel . OFF ) ; options . setCheckMissingGetCssNameLevel ( CheckLevel . OFF ) ; options . setCheckTypes ( false ) ; options . setWarningLevel...
Change options setCheckProvides level to options setWarningLevel DiagnosticGroups MISSING_PROVIDE level which is exactly equivalent
<nb> class ContinuationIndentDetector { } public boolean isContinuationIndent ( ) { - if ( myIncorrectBracketsOrder ) { + if ( myIncorrectBracketsOrder || myOpenedBrackets . isEmpty ( ) ) { return false ; } - return myOpenedBrackets . contains ( Bracket . LPARENTH ) ; + return myOpenedBrackets . peek ...
Detect continuation indent only if last opened brace is
<nb> import NAMESPACE ; @ retention ( RetentionPolicy . RUNTIME ) @ target ( ElementType . TYPE ) public @ interface ClientEndpoint { - String [ ] subprotocols ( ) ; - Class < ? extends Decoder > [ ] decoders ( ) ; - Class < ? extends Encoder > [ ] encoders ( ) ; + String [ ] subprotocols ( ) default { } ...
Add missing defaults
<nb> public class BufferPool { log . warn ( STRING0 + x . getMessage ( ) ) ; if ( log . isDebugEnabled ( ) ) log . debug ( STRING0 , x ) ; } - pool . setMaxSize ( DEFAULT_POOL_SIZE ) ; - log . info ( STRING1 + DEFAULT_POOL_SIZE + STRING2 + ( clazz != null ? clazz . getName ( ) : STRING3 ) ) ; - instance = n...
Fix possible NPE reported by Eclipse
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; public class BegComboBoxButton extends MetalComboBoxButton { public BegComboBoxButton ( JComboBox cb , Icon i , boolean onlyIcon , CellRendererPane pane , ...
don t focus auxiliary button draw focus border
<nb> public abstract class AbstractAndroidMojo extends AbstractMojo { COMMENT COMMENT - COMMENT + COMMENT COMMENT protected File sourceDirectory ;
Fixed sourceDirectory expression
<nb> public class EnglishGrammaticalStructureTest extends TestCase { SINGLE STRING0 , STRING1 , + STRING2 , SINGLE SINGLE } ; <nb> public class EnglishGrammaticalStructureTest extends TestCase { STRING3 + STRING4 + STRING5 , + STRING6 + + STRING7 + + STRING8 + + STRING9 + + STRING10 + ...
an S with a VBG after a comma after a VP should be a partmod not an xcomp
<nb> public interface MetaContactListService public void moveContact ( Contact contact , MetaContact newParent ) throws MetaContactListException ; + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COM...
Add a method for moving a contact to a group to allow split for meta contacts
<nb> class AppCompatDelegateImplV14 extends AppCompatDelegateImplV11 { : Configuration . UI_MODE_NIGHT_NO ; if ( currentNightMode != newNightMode ) { - conf . uiMode = ( conf . uiMode & ~ Configuration . UI_MODE_NIGHT_MASK ) | newNightMode ; - res . updateConfiguration ( conf , null ) ; + final Configuratio...
Create new Configuration object for night mode
<nb> public class FindUsagesManager implements JDOMExternalizable { } ; } + private static PsiElement2UsageTargetAdapter [ ] convertToUsageTargets ( final List < ? extends PsiElement > elementsToSearch ) { final ArrayList < PsiElement2UsageTargetAdapter > targets = new ArrayList < PsiElement2UsageTargetAdap...
kill UsageInfo duplicates
<nb> public class ReleasedVersionDistributions { public List < GradleDistribution > getAll ( ) { if ( distributions == null ) { - List < String > versions = CollectionUtils . filter ( getProperties ( ) . getProperty ( STRING0 ) . split ( STRING1 ) , new Spec < String > ( ) { - @ override - public boolean is...
Revert Exclude milestone releases from cross version testing
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class PhysicsSpace { public List rayTest ( Vector3f from , Vector3f to ) { List results = new LinkedList ( ) ; rayTest ( from ,...
Reversed raytest results when needed
<nb> public class WorldEditListener extends PluginListener { text [ NUMBER0 ] = args0 . length > NUMBER1 ? args0 [ NUMBER1 ] : STRING0 ; return new SignBlock ( blockType . getID ( ) , data , text ) ; } else if ( blockType == BlockType . MOB_SPAWNER ) { - if ( args0 . length > NUMBER2 ) { + if ( args0 . length...
Fixed error caused by not specify a mob spawner type when using mob spawner blocks
<nb> public class TimeBasedBikeRentalFareService implements ChainedFareService , Seria } } - if ( cost == NUMBER0 ) { - return next . getCost ( path ) ; - } - if ( next == null ) { Fare fare = new Fare ( ) ; fare . addFare ( FareType . regular , new WrappedCurrency ( Currency . getInstance ( currenc...
handle non transit graphs with bike rental
<nb> public class ExistingTemplatesComponent { if ( configuration . isPredefined ( ) ) { return ; } + final int [ ] rows = patternTree . getSelectionRows ( ) ; + if ( rows != null && rows . length > NUMBER0 ) { + patternTree . addSelectionRow ( rows [ NUMBER0 ] - NUMBER1 ) ; + } patternTreeModel . remov...
move selection up after deleting user defined template
<nb> public class ScrollPane extends WidgetGroup { return amountY ; } + COMMENT + public void updateVisualScroll ( ) { + visualAmountX = amountX ; + visualAmountY = amountY ; + } + public float getVisualScrollX ( ) { return ! scrollX ? NUMBER0 : visualAmountX ; }
Added updateVisualScroll for setting scroll position without animating
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class FileContentQueue { if ( e instanceof InterruptedException ) throw ( InterruptedException ) e ; if ( e instanceof IOExcept...
don t let an AssertionError from test logger cause deadlock in FileContentQueue
<nb> public class BusinessSubscriptionTransitionDao { bundle . getAccountId ( ) , account . getExternalKey ( ) , subscription . getId ( ) , - event . getRequestedTransitionTime ( ) , + SINGLE + SINGLE + event . getEffectiveTransitionTime ( ) , new BusinessSubscriptionEvent ( BusinessSubscriptionEvent . ...
fix bug in SYSTEM_CANCEL event in BST
<nb> public class IntentFirewall { } File [ ] files = rulesDir . listFiles ( ) ; - for ( int i = NUMBER0 ; i < files . length ; i ++ ) { - File file = files [ i ] ; + if ( files != null ) { + for ( int i = NUMBER0 ; i < files . length ; i ++ ) { + File file = files [ i ] ; - if ( file . getName ( ) ...
Check the return value of listFiles on the ifw directory
<nb> class TypeConverterDelegate { try { Class < ? > clazz = ClassUtils . forName ( STRING0 , TypeConverterDelegate . class . getClassLoader ( ) ) ; javaUtilOptionalEmpty = ClassUtils . getMethod ( clazz , STRING1 ) . invoke ( null ) ; - } catch ( Exception ex ) { + } + catch ( Exception ex ) { SINGLE }...
Defensively check javaUtilOptionalEmpty
<nb> public class VoldemortMultiStoreBuildAndPushJob extends AbstractJob { } } finally { - if ( adminClient != null ) { - adminClient . close ( ) ; - } + adminClient . close ( ) ; + } } } catch ( Exception e ) { <nb> public class VoldemortMultiStoreBuildAndPushJob extends AbstractJob { } }...
Remove unneeded check
<nb> public class UniformSample implements Sample { if ( c <= values . length ( ) ) { values . set ( ( int ) c - NUMBER0 , value ) ; } else { - final int r = ( int ) ( Math . abs ( RANDOM . nextLong ( ) ) % c ) ; + final long r = Math . abs ( RANDOM . nextLong ( ) ) % c ; if ( r < values . length ( ) ) { ...
Fixed an integer overflow bug
<nb> public final class BrowseRowView extends LinearLayout { inflater . inflate ( R . layout . lb_browse_row , this ) ; mGridView = ( HorizontalGridView ) findViewById ( R . id . row_content ) ; - mGridView . setFocusScrollStrategy ( HorizontalGridView . FOCUS_SCROLL_PAGE ) ; + SINGLE + SINGLE final Res...
Revert page based scrolling on by default in browse
<nb> public class HiveDatabaseMetaData implements DatabaseMetaData { } public int getDatabaseMajorVersion ( ) throws SQLException { - return Utils . getVersionPart ( getDatabaseProductVersion ( ) , NUMBER0 ) ; + return Utils . getVersionPart ( getDatabaseProductVersion ( ) , NUMBER1 ) ; } public int get...
getDatabaseMajor Minor version returns wrong values Szehon Ho via Prasad Mujumdar
<nb> public class CameraDeviceUserShim implements ICameraDeviceUser { mSurfaceIdCounter = NUMBER0 ; } - private static int translateErrorsFromCamera1 ( int errorCode ) { - switch ( errorCode ) { - case CameraBinderDecorator . EACCES : - return CameraBinderDecorator . PERMISSION_DENIED ; - default : - ...
Do not remap EACCES error code to PERMISSION_DENIED
<nb> public class FloatingToolbar extends LinearLayoutCompat implements View . OnClickL private static final int FAB_MORPH_DURATION = NUMBER0 ; private static final int FAB_UNMORPH_DURATION = NUMBER0 ; private static final int FAB_UNMORPH_DELAY = NUMBER1 ; - private static final int CIRCULAR_REVEAL_DURATION = N...
Tweak reveal duration
<nb> public class PropertySourcesConfig extends NavigableMapConfig { } } - configMap . putAll ( map ) ; + configMap . merge ( map , true ) ; + configMap . merge ( map ) ; } public void setClassLoader ( ClassLoader classLoader ) {
fix failing tests
<nb> class WindowSurfacePlacer { for ( int i = windows . size ( ) - NUMBER0 ; i >= NUMBER1 ; i -- ) { WindowState w = windows . get ( i ) ; - Task task = w . getTask ( ) ; - if ( task == null && w . getDisplayContent ( ) . getHomeStack ( ) == null - && w . getAttrs ( ) . type != TYPE_PRIVATE_PRESENTATION ) ...
Remove obsolete conditional preventing surface placement
<nb> public abstract class AbstractTachyonFileSystem implements TachyonFileSystemCore final long fileId = masterClient . create ( path . getPath ( ) , options ) ; return new TachyonFile ( fileId ) ; } catch ( BlockInfoException e ) { - throw new FileAlreadyExistsException ( e . getMessage ( ) , e ) ; + throw ...
SMALLFIX Fix indentation
<nb> import NAMESPACE ; COMMENT public class ExceptionUtils { - public static class Nothing extends Error { - private Nothing ( ) { - } - } - COMMENT COMMENT COMMENT - public static Nothing rethrow ( Throwable e ) { + public static RuntimeException rethrow ( Throwable e ) { if ( e instanceof...
Revert poor man Nothing
<nb> public final class XMLValidator { class ErrorHandler extends DefaultHandler { public void warning ( SAXParseException e ) throws SAXException { + System . err . println ( e . getMessage ( ) + + STRING0 + e . getLineNumber ( ) + + STRING1 + e . getColumnNumber ( ) + STRING2 ) ; throw e ; } publi...
add more informative message to XML validator not displayed by default
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class EditPostActivity extends Activity { } private void savePost ( boolean isAutosave ) { + if ( mPost == null ) { + AppLo...
Added a null check for the post object in savePost just in case
<nb> public class BeeLine implements Closeable { } private int execute ( ConsoleReader reader , boolean exitOnError ) { + String line ; while ( ! exit ) { try { SINGLE - if ( ! dispatch ( reader . readLine ( getPrompt ( ) ) ) && exitOnError ) { + SINGLE + line = getOpts ( ) . isSilent ( ) ? reader ....
Beeline s silent option should suppress query from being echoed when running with f option Naveen via Xuefu
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT COMMENT + COMMENT + COMMENT COMMENT + @ incubating public interface UnresolvedSoftwareComponent { COMMENT COMMENT
added Incubating and since
<nb> public class QSAnimator implements Callback , PageListener , Listener , OnLayoutCha clearAnimationState ( ) ; } } else if ( MOVE_FULL_ROWS . equals ( key ) ) { - mFullRows = newValue != null && Integer . parseInt ( newValue ) != NUMBER0 ; + mFullRows = newValue == null || Integer . parseInt ( newValue ) ...
Flip the default on whether to keep rows together
<nb> public class Main { System . out . println ( STRING0 ) ; } else if ( main . command . startsWith ( STRING1 ) && ! main . command . endsWith ( STRING2 ) ) { System . out . println ( STRING3 ) ; + } else { + System . out . println ( STRING4 + main . command + STRING5 ) ; } } catch ( Throwable e ) { S...
Added success method for all commands
<nb> public class CarrierConfigManager { STRING0 ; COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public static final String KEY_CARRIER_INSTANT_LETTERING_INVALID_CHARS_STRING = + STRING1 ; + + COMMENT COMMENT COMMENT COMMENT <nb> public class CarrierConfigManage...
Add carrier config for specifying invalid characters
<nb> public class IndicesShardStoreRequestTests extends ElasticsearchIntegrationTest } @ test + @ awaitsfix ( bugUrl = STRING0 ) public void testCorruptedShards ( ) throws Exception { String index = STRING1 ; internalCluster ( ) . ensureAtLeastNumDataNodes ( NUMBER0 ) ;
await fix on IndicesShardStoreRequestTests testCorruptedShards
<nb> import NAMESPACE ; COMMENT COMMENT - COMMENT + COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fixing a typo in the NumberPicker documentation
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MovieSearchFragment extends SherlockFragment implements OnEditorAct getLoaderManager ( ) . initLoader ( LOADER_ID , null , ...
Send views for new movie search
<nb> public class UndertowDeploymentInfoService implements Service < DeploymentInfo > { SINGLE SINGLE - SINGLE - deploymentInfo . setIgnoreFlush ( false ) ; + SINGLE SessionConfigMetaData sessionConfig = mergedMetaData . getSessionConfig ( ) ; ServletSessionConfig config = null ;
Ignore flush by default for performance reasons
<nb> public class BuildCraftFactory { STRING0 , Item . ingotIron , STRING1 , Block . chest , STRING2 , BuildCraftCore . stoneGearItem ) ; + + if ( floodGateBlock != null ) + CoreProxy . proxy . addCraftingRecipe ( new ItemStack ( floodGateBlock ) , + STRING3 , + STRING4 , + STRING5 , + STRING0 , Ite...
Add Floodgate Recipe
<nb> public class PGraphics2 extends PGraphics { if ( who . modified ) { cash . update ( ) ; who . modified = false ; + SINGLE } g2 . drawImage ( ( ( ImageCache ) who . cache ) . image , - SINGLE - ( int ) x1 , ( int ) y1 , ( int ) x2 , ( int ) y2 , - u1 , v1 , u2 , v2 , null ) ; + ( int ) x1 , ( ...
just cleaning boogers
<nb> import NAMESPACE ; COMMENT @ xstreamalias ( STRING0 ) - public class ZWaveSceneActivationCommandClass extends ZWaveCommandClass { SINGLE + public class ZWaveSceneActivationCommandClass extends ZWaveCommandClass { private static final Logger logger = LoggerFactory . getLogger ( ZWaveBasicCommandClass ...
Tidy up comments
<nb> public class FileWatcher { } if ( op == WatcherOp . CHANGE ) { + SINGLE + SINGLE synchronized ( myLock ) { ++ myChangeRequests ; SINGLE - if ( ( myChangeRequests & NUMBER0 ) == NUMBER1 ) LOG . info ( STRING0 + myChangeRequests + STRING1 + myFilteredRequests ) ; + if ( ( myChangeRequests & NUM...
less logging better comment
<nb> public class SchemaManager { DbConnectionManager . getDatabaseType ( ) == DbConnectionManager . DatabaseType . db2 ) { command . deleteCharAt ( command . length ( ) - NUMBER0 ) ; } - Statement stmt = con . createStatement ( ) ; - stmt . execute ( command . toString ( ) ) ; - stmt . close ( ) ; + try ...
We are now printing the failed SQL to the error log so that administrators have an idea of what happened
<nb> public abstract class BasicTest extends KotlinTestWithEnvironment { } @ notnull - private static List < String > librariesWithJsStdlib ( List < String > libraries ) { + private static List < String > librariesWithJsStdlib ( @ notnull List < String > libraries ) { List < String > result = new ArrayList ...
add NotNull annotation into BasicTest
<nb> public class ReplCommandsLibrary implements CommandsLibrary { . addCommand ( DropDatabaseCommand . INSTANCE ) . addCommand ( RenameCollectionCommand . INSTANCE ) . addAsAlias ( LogAndIgnoreCommand . INSTANCE , CollModCommand . INSTANCE . getCommandName ( ) ) - . addAsAlias ( LogAndIgnoreCommand . INSTANCE ...
Fixed errata in command alias for convertToCapped
<nb> public class ParticleEditor extends JFrame { SINGLE } - font . draw ( spriteBatch , STRING0 + Gdx . graphics . getFramesPerSecond ( ) , NUMBER0 , NUMBER0 ) ; - font . draw ( spriteBatch , STRING1 + activeCount , NUMBER0 , NUMBER1 ) ; - font . draw ( spriteBatch , STRING2 + lastMaxActive , NUMBER0 , NUM...
changed ParticleEditor moved text display
<nb> public class WebAppContext extends ServletContextHandler implements WebAppClassL STRING0 , SINGLE STRING1 , SINGLE STRING2 , SINGLE + STRING3 , SINGLE STRING4 SINGLE } ;
Don t expose JDT classes by default
<nb> public class TextEditingTargetChunks private boolean isExecutableKnitrEngine ( String engine ) { + SINGLE + if ( ! target_ . getDocDisplay ( ) . showChunkOutputInline ( ) ) + return engine . equals ( STRING0 ) ; + return RE_RUNNABLE_ENGINES . indexOf ( engine + STRING1 ) != - NUMBER0 ; }
only enable chunk toolbar for non R engines when using inline output
<nb> COMMENT package NAMESPACE ; + import static NAMESPACE ; + import static NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import static NAMESPACE public class JGroupsClusterTest extends Assert { + SINGLE + + String master ; + + int nominationCount ; +...
Made JGroups cluster tests cluster friendly so they could be executed concurrently by Jenkins
<nb> public class AnnotationHelper { COMMENT COMMENT Object annotationResName = extractAnnotationParameter ( element , annotationName , STRING0 ) ; + if ( annotationResName == null ) { + SINGLE + SINGLE + SINGLE + return new String [ NUMBER0 ] ; + } String [ ] resNames ; if ( annotationResName ....
Fix a NullPointerException throwing during refactoring
<nb> public class MessagingController implements Runnable NotificationManager notifMgr = ( NotificationManager ) context . getSystemService ( Context . NOTIFICATION_SERVICE ) ; Notification notif = new Notification ( R . drawable . stat_notify_email_generic , messageNotice , System . currentTimeMillis ( ) ) ; -...
per a bunch of complaints it looks like my new notification counting
<nb> public final class GsmDataConnectionTracker extends DataConnectionTracker { boolean allowed = ( gprsState == ServiceState . STATE_IN_SERVICE || mAutoAttachOnCreation ) && mPhone . mIccRecords . getRecordsLoaded ( ) && - mPhone . mIccRecords . isProvisioned ( ) && mPhone . getState ( ) == Phone . State . ...
Don t check provisioning when trying setup data call
<nb> public final class ClassLoaderUtil { try { return theClassLoader . loadClass ( className ) ; } catch ( ClassNotFoundException ignore ) { + + SINGLE + theClassLoader = null ; } } + SINGLE if ( className . startsWith ( HAZELCAST_BASE_PACKAGE ) || className . startsWith ( HAZELCAST_ARRAY ) ) { ...
Fixed classloading if classes are not in the default classloader but tccl
<nb> public class XcodeprojGeneration { . withExplicitFileType ( FILE_TYPE_APP_EXTENSION ) ; case FRAMEWORK : return FileReference . of ( - String . format ( STRING0 , productName ) , SourceTree . BUILT_PRODUCTS_DIR ) + String . format ( STRING1 , productName ) , SourceTree . BUILT_PRODUCTS_DIR ) . withExpl...
Fix up generated project reference for frameworks
<nb> public class VcsUtil return ( change . getBeforeRevision ( ) != null ) && ( change . getAfterRevision ( ) == null ) ; } + public static boolean isChangeForFolder ( Change change ) + { + ContentRevision revB = change . getBeforeRevision ( ) ; + ContentRevision revA = change . getAfterRevision ( ) ; ...
simplify conditional structure
<nb> public class BillingExceptionBase extends Exception { } public BillingExceptionBase ( @ nullable final Throwable cause , final ErrorCode code , final Object . . . args ) { - String tmp ; + final String tmp ; try { tmp = String . format ( code . getFormat ( ) , args ) ; } catch ( RuntimeException e ...
add missing final modifier in BillingExceptionBase
<nb> public abstract class MixinPlayerInteractionManager implements IMixinPlayerInter SINGLE SINGLE - if ( result != EnumActionResult . SUCCESS && tileEntity != null ) { + if ( result != EnumActionResult . SUCCESS && tileEntity != null && hand == EnumHand . MAIN_HAND ) { this . thisPlayerMP . closeScreen ( ...
Only run close screen logic for main hand after interact event
<nb> public abstract class AbstractSockJsSession implements SockJsSession { private static final Set < String > disconnectedClientExceptions ; static { - Set < String > set = new HashSet < String > ( NUMBER0 ) ; set . add ( STRING0 ) ; SINGLE + set . add ( STRING1 ) ; SINGLE set . add ( STRING2 ) ; SING...
Adjust logging following SockJS client disconnect
<nb> public class AdbHelper { @ nullable protected abstract String matchForError ( String line ) ; - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - protected boolean matchForSuccess ( String line ) { - return false ; - } - @ override public void processNewLines ( String [ ] li...
Remove unused method
<nb> public class TestClassFilter implements ClassFilter . ClassFilterWithScope { return ApplicationManager . getApplication ( ) . runReadAction ( new Computable < Boolean > ( ) { @ override public Boolean compute ( ) { - if ( aClass . getQualifiedName ( ) != null && ConfigurationUtil . PUBLIC_INSTANTIATABLE_CL...
accept non public classes during search for tests in package
<nb> public class StatusCodes { public static final int ALREADY_REPORTED = NUMBER0 ; public static final int IM_USED = NUMBER1 ; public static final int MULTIPLE_CHOICES = NUMBER2 ; - public static final int MOVED_PERMENANTLY = NUMBER3 ; + public static final int MOVED_PERMANENTLY = NUMBER3 ; + @ deprecated...
Fix typo leave old spelling for one release
<nb> import NAMESPACE ; import NAMESPACE ; - @ component public class PeriodicGraphUpdater { private UpdateTask updater ;
remove component annotation
<nb> public class ListPresenterTest { verify ( mockGetCharacterUsecase , times ( NUMBER0 ) ) . execute ( ) ; } + @ test public void testThatPresenterShowsErrorWhenLoadingCharacters ( ) throws Exception { + CharacterListPresenter listPresenter = givenAListPresenter ( ) ; + + when ( mockGetCharacterUsecase ...
Added error test
<nb> public class TraktOAuthSettings { private static final long REFRESH_THRESHOLD = DateUtils . DAY_IN_MILLIS ; COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT public static boolean isTimeToRefreshAccessToken ( Context context ) { long expiryDate = getSettings ( context ) . getL...
Avoid refreshing trakt credentials if there is no expiry time
<nb> public class StateIngame implements GameState { entityManager . clear ( ) ; - storageManager . finishSavingAndShutdown ( ) ; + if ( storageManager != null ) { + storageManager . finishSavingAndShutdown ( ) ; + } ModuleEnvironment environment = CoreRegistry . get ( ModuleManager . class ) . loadEnvi...
Fixed the leaving of the ingame state as client
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
fixed GLTest referenced wrong package
<nb> public final class ObjectHelper { int idx = - NUMBER0 ; public boolean hasNext ( ) { - return ( idx + NUMBER0 ) < length ( ) ; + return ( idx + NUMBER0 ) < Array . getLength ( array ) ; } public Object next ( ) { idx ++ ; - return current ( idx ) ; + return Array . get ( array , idx ) ; } ...
Removed the two current length methods and merged their logic into the Iterator methods
<nb> public abstract class AbstractLocalCamelController extends AbstractCamelControll private static String getRouteState ( Route route ) { SINGLE - if ( route instanceof StatefulService ) { - ServiceStatus status = ( ( StatefulService ) route ) . getStatus ( ) ; + + ServiceStatus status = route . getRout...
Fixed Camel commands to not show correct route status in the routes list command
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ForgeModContainer extends DummyModContainer implements WorldAccessC public void preInit ( FMLPreInitializationEvent evt ) {...
Register the animation Capability
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; COMMENT COMMENT <nb> public class Marker extends ViewGroup implements MarkerDrawable . MarkerAnimationL public Marker ( Context context , AttributeSet attrs , int defStyleAttr , String maxValue , in...
Fix indicator not appearing if the DiscreteSeekbar was initially hidden
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix an example in PercentRelativeLayout documentation
<nb> public class MongodbQueryTest { } @ test + public void Equals_and_Between ( ) { + assertQuery ( user . firstName . startsWith ( STRING0 ) . and ( user . age . between ( NUMBER0 , NUMBER1 ) ) , u2 , u1 ) ; + assertQuery ( user . firstName . startsWith ( STRING0 ) . and ( user . age . goe ( NUMBER0 ) . a...
Add mongodb tests
<nb> public class LookupCellRenderer implements ListCellRenderer { setFocusBorderAroundIcon ( true ) ; setBorderInsets ( new Insets ( NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 ) ) ; } + + @ override + protected void applyAdditionalHints ( Graphics g ) { + UISettings . setupAntialiasing ( g ) ; + } } p...
do not ignore AA settings
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public class PartialLRUEvictorTestBase extends EvictorTestBase { @ before
Incorporated PR comments
<nb> public class SubscriptionData implements Subscription { IPlanPhase nextPhase = null ; try { previousPlan = ( previousPlanName != null ) ? catalog . findPlan ( previousPlanName ) : null ; - previousPhase = ( previousPhase != null ) ? catalog . findPhase ( previousPhaseName ) : null ; + previousPhase = ( p...
Fix refactoring bug
<nb> public class CameraUtils { int width , int height , Camera . Parameters parameters ) { - return ( getBestAspectPreviewSize ( displayOrientation , width , height , - parameters , FLOAT0 ) ) ; - } - - public static Camera . Size getBestAspectPreviewSize ( int displayOrientation , - int width , - ...
backed out new flavor of getBestAspectPreviewSize
<nb> public class SingleInstanceProfilingEvent extends InstanceProfilingEvent { final SingleInstanceProfilingEvent singleInstanceProfilingEvent = ( SingleInstanceProfilingEvent ) obj ; - if ( this . instanceName . equals ( singleInstanceProfilingEvent . getInstanceName ( ) ) ) { + if ( ! this . instanceName ....
Fixed bug in equals method of SingleInstanceProfilingEvent
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; public interface ForwardIndexCreator { <nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT +...
added license headers
<nb> import NAMESPACE import NAMESPACE ; import NAMESPACE ; + COMMENT + COMMENT + COMMENT public class AddListDialogFragment extends DialogFragment { public static AddListDialogFragment newInstance ( ) { <nb> public class AddListDialogFragment extends DialogFragment { @ override public void onSt...
Properly send view of add list dialog add description