diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> final class PicassoDrawable extends Drawable { static void setBitmap ( ImageView target , Context context , Bitmap bitmap , Picasso . Lo...
Automatically start and stop AnimationDrawables
<nb> package NAMESPACE ; import NAMESPACE ; COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> package NAMESPACE ; COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> package NAMESPACE ; COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
add some javadoc
<nb> public final class Bukkit { } Bukkit . server = server ; - server . getLogger ( ) . info ( STRING0 + getName ( ) + STRING1 + getVersion ( ) ) ; + server . getLogger ( ) . info ( STRING0 + getName ( ) + STRING1 + getVersion ( ) + STRING2 + getBukkitVersion ( ) + STRING3 ) ; } public static String ge...
Added getBukkitVersion to Server
<nb> class Scroller { COMMENT - COMMENT + COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT <nb> public class Solo { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Clarified javadoc for scrollDown in Solo and Scroller
<nb> public enum SymbolType { public boolean isValueSymbol ( ) { return ordinal ( ) == LITERAL . ordinal ( ) ; } - - public boolean isReference ( ) { - return ordinal ( ) == REFERENCE . ordinal ( ) || ordinal ( ) == DYNAMIC_REFERENCE . ordinal ( ) ; - } } <nb> public class LuceneQueryBuilder { STRIN...
remove isReference from SymbolType
<nb> public class Main if ( _dumpVersions ) { showClasspathWithVersions ( classpath ) ; + showActiveSecurityPolicies ( ) ; return ; } <nb> public class Main } } + private void showActiveSecurityPolicies ( ) + { + SINGLE + + SINGLE + } + private String fixPath ( String path ) { ...
Adding boilerplate for jetty security work Jesse is doing
<nb> public class TestVcsNotifier extends VcsNotifier { return myLastNotification ; } - @ override - public void notify ( @ notnull Notification notification ) { - myLastNotification = notification ; - } - public void cleanup ( ) { myLastNotification = null ; }
remove unnecessary method
<nb> public class Location { this ( world , x , y , z , NUMBER0 , NUMBER0 ) ; } - public Location ( final World world , final double x , final double y , final double z , final float pitch , final float yaw ) { + public Location ( final World world , final double x , final double y , final double z , final fl...
Swapped yaw pitch in Location constructor to match Minecraft
<nb> public class DisplayActivity extends Activity { opts . inMutable = false ; opts . inSampleSize = NUMBER0 ; + iv . setScaleType ( ImageView . ScaleType . FIT_CENTER ) ; iv . setImageBitmap ( BitmapFactory . decodeByteArray ( imageToShow , NUMBER1 , imageToShow . length ,
resized image for single shot activity
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class PluginManagerTests extends AbstractIntegrationTest { SINGLE singlePluginInstallAndRemove ( STRING0 , STRING1 . concat ( PluginManagerTests . class . getResource ( STRING2 ) . getF...
plugin remove deletes bin directory
<nb> public class IdeEventQueue extends EventQueue { Project project = frame . getProject ( ) ; if ( project != null ) { - boolean res = IdeFocusManager . getInstance ( project ) . isFocusTransferInProgress ( ) ; - if ( res ) { - return res ; - } + return IdeFocusManager . getInstance ( project ) . isFo...
debug info removed
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> class JavacFileManager extends ForwardingJavaFileManager < StandardJavaFileManager return entry . getKey ( ) ; } } - file = file . getParentFile ( ) ; + file = FileUtil . getParentFile ( f...
use noncanonical paths aware FileUtil getParent
<nb> public abstract class TestObject implements JavaCommandLine { final TestsPacketsReceiver packetsReceiver = new TestsPacketsReceiver ( consoleView , unboundOutputRoot ) { @ override public void notifyStart ( TestProxy root ) { + if ( ! isRunning ( ) ) return ; super . notifyStart ( root ) ; unboundOutpu...
do not notify start if console is already disposed
<nb> public abstract class Reader implements Readable , Closeable { COMMENT protected Reader ( ) { super ( ) ; - lock = this ; + lock = new Object ( ) ; } COMMENT <nb> public abstract class Writer implements Appendable , Closeable , Flushable { COMMENT protected Writer ( ) { super ( ) ; - lock...
Fixed JRE self cycles
<nb> public class TestTransfer extends TestApiBase { final List < Subscription > subscriptions = entitlementApi . getSubscriptionsForBundle ( bundle . getId ( ) , callContext ) ; assertEquals ( subscriptions . size ( ) , NUMBER0 ) ; final Subscription subscription = subscriptions . get ( NUMBER1 ) ; - assertDat...
Fix broken test
<nb> import NAMESPACE ; public class CreateShareWithShareeOperation extends SyncOperation { private static final int READ_ONLY = NUMBER0 ; + private static final int ALL_PRIVILEGES = NUMBER1 ; protected FileDataStorageManager mStorageManager ; <nb> public class CreateShareWithShareeOperation extends Syn...
Give ALL_PRIVILEGES when create a Share with User Group
<nb> public class ContactListActivity extends Activity implements View . OnCreateContex mApp . callWhenServiceConnected ( mHandler , new Runnable ( ) { public void run ( ) { if ( ! mDestroyed ) { - mApp . dismissNotifications ( mProviderId ) ; + SINGLE mConn = mApp . getConnection ( mProviderId ) ; if ( m...
don t clear notifications on login
<nb> public class CrashTest { maker . fileLockDisable ( ) ; if ( mmap ) - maker . fileMmapEnableIfSupported ( ) ; + maker . fileMmapEnableIfSupported ( ) . fileMmapCleanerHackEnable ( ) ; if ( cache ) maker . cacheHashTableEnable ( ) ;
enable cleaner hack so it consumes less disk space
<nb> public class BundlesController extends AuthenticatedController { ConfigurationBundle bundle = bundleService . export ( exportBundleRequest ) ; response ( ) . setContentType ( MediaType . JSON_UTF_8 . toString ( ) ) ; - response ( ) . setHeader ( STRING0 , STRING1 ) ; + response ( ) . setHeader ( STRING0 ...
Rename exported content pack filename
<nb> public class TestServer { ( ( StdErrLog ) Log . getLog ( ) ) . setSource ( false ) ; - String jetty_root = STRING0 ; + String jetty_root = STRING1 ; SINGLE QueuedThreadPool threadPool = new QueuedThreadPool ( ) ;
fixed path for new layout
<nb> public class PostgreStructValueHandler extends JDBCStructValueHandler { if ( object . getClass ( ) . getName ( ) . equals ( PostgreConstants . PG_OBJECT_CLASS ) ) { value = PostgreUtils . extractValue ( object ) ; } else { - value = STRING0 ; + value = object . toString ( ) ; } return convertStringTo...
Postgre struct types fetch fix
<nb> public class NEDDownloader { try { String key = getKey ( url ) ; _log . debug ( STRING0 + key ) ; - File path = getPathToNEDTile ( key ) ; + File path = getPathToNEDArchive ( key ) ; URL downloadUrl = new URL ( STRING1 + token ) ;
save tile to correct place
<nb> public abstract class AbstractSortTestCase < T extends SortBuilder & SortBuilderPa builder . endObject ( ) ; XContentParser itemParser = XContentHelper . createParser ( builder . bytes ( ) ) ; - ParsingException except = new ParsingException ( itemParser . getTokenLocation ( ) , STRING0 , itemParser . getT...
Fix compile error
<nb> public class SeriesGuideContract { String LASTEDIT = STRING0 ; COMMENT + COMMENT + COMMENT COMMENT COMMENT String GETGLUEID = STRING1 ;
Deprecate tvtag show id column
<nb> public class FtpConsumerIdempotentRefTest extends FtpServerTestSupport { public boolean confirm ( String key ) { return true ; } + + public void clear ( ) { + return ; + } public void start ( ) throws Exception { }
IdempotentRepository Add clear operation align FtpConsumerIdempotentRefTest with clear operation
<nb> package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; COMMENT COMMENT <nb> import NAMESPACE ; FileConfigLoaderT...
revmoe failed testcase
<nb> public interface AgentBuilder { return current . asDecoratorOf ( resolution ) ; case DECORATOR : current = current . asDecoratorOf ( resolution ) ; + break ; case UNDEFINED : break ; default :
Added additional break statemement to please findbugs
<nb> public abstract class BetterAsyncTask < ParameterT , ProgressT , ReturnT > extends } @ override - protected final void onPreExecute ( ) { + protected void onPreExecute ( ) { Context context = getCallingContext ( ) ; if ( context == null ) { Log . d ( BetterAsyncTask . class . getSimpleName ( ) , ST...
Removed final declaration of onPreExecute on onPostExecute in order to further extend methods
<nb> public class JGitUtils { RevWalk rw = new RevWalk ( repository ) ; rw . markStart ( rw . parseCommit ( endRange ) ) ; - rw . markUninteresting ( rw . parseCommit ( startRange ) ) ; + if ( startRange . equals ( ObjectId . zeroId ( ) ) ) { + SINGLE + list . add ( rw . parseCommit ( endRange ) ) ; + r...
Fixed revlog where start of range is the zeroId
<nb> public final class ActionBarSupportImpl extends ActionBar { SINGLE SINGLE SINGLE + + if ( mHasIndeterminateProgress ) { + mActionBar . setProgressBarIndeterminateVisibility ( true ) ; + } } public void onMenuInflated ( Menu menu ) { <nb> public final class ActionBarSupportImpl extends ActionB...
Tweak support action bar indeterminate progress bar display to mirror that of the native version
<nb> public class ForgeModContainer extends DummyModContainer implements WorldAccessC replaceVanillaBucketModel = prop . getBoolean ( Boolean . FALSE ) ; propOrder . add ( prop . getName ( ) ) ; - prop = config . get ( Configuration . CATEGORY_CLIENT , STRING0 , Boolean . TRUE , + prop = config . get ( Config...
Fix default missing model zoom text not being set to false on all places
<nb> public class DownloadService extends Service { handler = new Handler ( ) ; newMediaFiles = Collections . synchronizedList ( new ArrayList < Long > ( ) ) ; reportQueue = Collections . synchronizedList ( new ArrayList < DownloadStatus > ( ) ) ; - downloads = new ArrayList < Downloader > ( ) ; + downloads =...
Return a copy of the downloads
<nb> class InstallPluginCommand extends Command { STRING0 , STRING1 , STRING2 , - STRING3 ) ) ) ; + STRING3 , + STRING4 ) ) ) ; private final Environment env ; private final OptionSpec < Void > batchOption ;
Add xpack as official plugin
<nb> public class EffectivePredicateExtractor ImmutableList . Builder < Expression > effectiveConjuncts = ImmutableList . builder ( ) ; for ( Expression conjunct : EqualityInference . nonInferrableConjuncts ( expression ) ) { - Expression rewritten = equalityInference . rewriteExpression ( conjunct , in ( symbo...
Fix JOINs that have ORDER BY rand
<nb> public class OverlordProxyServlet extends ProxyServlet try { final Server indexer = selector . pick ( ) ; if ( indexer == null ) { - throw new ISE ( STRING0 ) ; + throw new ISE ( STRING1 ) ; } return new URI ( request . getScheme ( ) ,
improving msging when indexing service is not found
<nb> public class SQLCompletionProcessor implements IContentAssistProcessor replaceString = replaceString . toLowerCase ( ) ; break ; default : - DBPIdentifierCase convertCase = dataSource instanceof SQLDataSource ? - ( ( SQLDataSource ) dataSource ) . getSQLDialect ( ) . storesUnquotedCase ( ) : DBPIdentifie...
do not convert object names
<nb> public final class JavaGenerator { String documentation = type . documentation ( ) ; if ( ! documentation . isEmpty ( ) ) { - documentation += STRING0 ; + documentation += STRING1 ; } documentation += STRING2 + STRING3 ;
Include paragraph tag when separating note from documentation
<nb> public class WebAppContext extends ServletContextHandler implements WebAppClassL private boolean _distributable = false ; private boolean _extractWAR = true ; private boolean _copyDir = false ; - private boolean _copyWebInf = true ; SINGLE + private boolean _copyWebInf = false ; SINGLE private boolean ...
Set copyWebInf to false by default
<nb> public class ZKFSLoadBalancer public ServiceProperties getLoadBalancedServiceProperties ( String serviceName ) throws ServiceUnavailableException { + if ( _currentLoadBalancer == null ) + { + return null ; + } return _currentLoadBalancer . getLoadBalancedServiceProperties ( serviceName ) ; }
Add null pointer check for load balancer
<nb> public class BptBuilderBlueprint extends BptBuilderBase { return slot ; } } else { + SINGLE + SINGLE + postProcessing . add ( slot ) ; iterator . remove ( ) ; } } else { + if ( slot . mode == Mode . Build ) { + SINGLE + SINGLE + SINGLE + SINGLE + postProcessing . add ( slot ) ; + } ...
re added missing blocks to post processing
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class BatchAutoConfiguration { } @ bean - @ conditionalonmissingbean + @ conditionalonmissingbean ( ExitCodeGenerator . cla...
Allow any ExitCodeGenerator bean to switch of auto configured bean
<nb> public class InputMethodUtils { return imsList ; } - @ deprecated - public InputMethodSettings ( - Resources res , ContentResolver resolver , - HashMap < String , InputMethodInfo > methodMap , ArrayList < InputMethodInfo > methodList , - @ useridint int userId ) { - this ( res , resolver , method...
Remove an unused constructor of InputMethodSettings
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class AnnotationConfigUtils { } if ( abd instanceof AbstractBeanDefinition ) { if ( metadata . isAnnotated ( Role . class . getName ( ) ) ) { - int role = attributesFor ( metadata , Role . class ) . getNumber ( STRING0 ) ; + In...
Compensate for Eclipse vs Sun compiler discrepancy
<nb> public class FileBasedIndexImpl extends FileBasedIndex { } if ( ourConcurrentlyFlag . get ( ) == Boolean . TRUE && Registry . is ( STRING0 ) ) { - JobLauncher . getInstance ( ) . invokeConcurrentlyUnderProgress ( tasks , indicator , true , false , new Processor < Runnable > ( ) { + JobLauncher . getInsta...
take scanning files for index outside of read action in concurrent mode
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class OptionsEditor extends JPanel implements DataProvider , Place . Navigat setLayout ( new BorderLayout ( ) ) ; - myMainSpl...
add one pixel splitter
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class AntFileImpl extends LightPsiFileBase implements AntFile { @ nullable public VirtualFile getContainingPath ( ) { - final...
fixing completion of elements outside the file prop files imported files etc
<nb> public class BalloonImpl implements Balloon , IdeTooltip . Ui { @ suppresswarnings ( STRING0 ) BufferedImage image = UIUtil . createImage ( getWidth ( ) , getHeight ( ) , BufferedImage . TYPE_INT_RGB ) ; SINGLE Graphics2D imageGraphics = image . createGraphics ( ) ; - SINGLE SINGLE imageGraphics . setC...
preserve fonts subpixel antialiasing when popups fade Retina get rid of commented line
<nb> import NAMESPACE ; return task . cast ( ) ; } + SINGLE + SINGLE + SINGLE + ParseFileUtils . deleteQuietly ( cacheFile ) ; ParseFileUtils . moveFile ( tempFile , cacheFile ) ; return Task . forResult ( cacheFile ) ; }
Manually delete cacheFile before we write to it
<nb> package NAMESPACE ; public class TestFileResourceSet extends AbstractTestFileResourceSet { public TestFileResourceSet ( ) { - super ( false ) ; + super ( true ) ; } } <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public class TestFileResourceSetVirtual extends TestFileResourceSet { + ...
Have one read only and one read write FileResourceSet tests rather than two read only
<nb> public class PyMagicLiteralRenameHandler implements RenameHandler { @ override public boolean isRenaming ( DataContext dataContext ) { - return true ; + return isAvailableOnDataContext ( dataContext ) ; } @ override
fixing some tests
<nb> public class Translator2AndroidXml implements Translator { | arr [ off ] & NUMBER0 ; } - private static String prettyFormat ( String input ) { + private String prettyFormat ( String input ) { return prettyFormat ( input , NUMBER1 ) ; } - private static String prettyFormat ( String input , int ind...
added another fallback case for AndroidManifest
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public class JAXBConvertTest extends TestCase { } assertEquals ( - NUMBER0 , is . read ( ) ) ; } - + + public vo...
adding unit test to Claus camel jaxb fix
<nb> public class WelcomeDialogFragment extends DialogFragment { } ) ; final CheckBox cb = ( CheckBox ) v . findViewById ( R . id . welcome_sendusagedata ) ; + final FragmentActivity activity = getActivity ( ) ; - return new AlertDialog . Builder ( getActivity ( ) ) . setIcon ( R . drawable . icon ) + ret...
Save activity reference for welcome dialog
<nb> public class MultiUserChat { COMMENT private Presence enter ( MucEnterConfiguration conf ) throws NotConnectedException , NoResponseException , XMPPErrorException , InterruptedException , NotAMucServiceException { - StringUtils . requireNotNullOrEmpty ( nickname , STRING0 ) ; final DomainBareJid mucServi...
Fix MultiUserChat enter nickname check
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class JobProfilingData { final ExecutionGroupVertex groupVertex = it . next ( ) ; for ( int i = NUMBER0 ; i < groupVertex . getCu...
Fixed bug in profiling which occurred together with lazy task deployment
<nb> public class DumpCountsStore final FileSystemAbstraction fs = new DefaultFileSystemAbstraction ( ) ; final File storeFile = new File ( args [ NUMBER0 ] ) ; - try ( final StandalonePageCache pageCache = createPageCache ( fs , STRING0 ) ) + try ( StandalonePageCache pageCache = createPageCache ( fs , STRIN...
Close counts store when dump is complete
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public interface ConfigurationSource { - SINGLE + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT ObjectNode loadConfigurationData ( ObjectMapper objec...
Add javadoc to ConfigurationSource
<nb> public class EmbeddedDatabaseBuilder { COMMENT COMMENT COMMENT - COMMENT COMMENT public EmbeddedDatabaseBuilder setBlockCommentStartDelimiter ( String blockCommentStartDelimiter ) { this . databasePopulator . setBlockCommentStartDelimiter ( blockCommentStartDelimiter ) ; <nb> public class EmbeddedD...
Remove duplicate since tags in EmbeddedDatabaseBuilder
<nb> public class HttpStaticFileServerHandler extends SimpleChannelInboundHandler < Ful if ( file . isDirectory ( ) ) { if ( uri . endsWith ( STRING0 ) ) { - sendListing ( ctx , file ) ; + sendListing ( ctx , file , uri ) ; } else { sendRedirect ( ctx , uri + STRING1 ) ; } <nb> public class HttpStatic...
Never expose user dir to the web on directory listing
<nb> public class NotificationsListFragment extends ListFragment { public void onActivityCreated ( Bundle bundle ) { super . onActivityCreated ( bundle ) ; ListView listView = getListView ( ) ; + listView . setChoiceMode ( ListView . CHOICE_MODE_SINGLE ) ; listView . setOnScrollListener ( new ListScrollListen...
Setting selection state when opening a note
<nb> public class RCompletionManager implements CompletionManager handlers_ . removeHandler ( ) ; sigTipManager_ . detach ( ) ; snippets_ . detach ( ) ; + popup_ . hide ( ) ; } public void close ( )
hide popup on detach
<nb> public class GiantComponentBuilder implements FilterBuilder { private AttributeColumn column ; public GiantComponentFilter ( ) { - attributeModel = Lookup . getDefault ( ) . lookup ( AttributeController . class ) . getModel ( ) ; } public boolean init ( Graph graph ) { <nb> public class GiantCompon...
Fix NPE when loading a graph with Giant Component Filter
<nb> public class AprEndpoint extends AbstractEndpoint { info . socket ) ; } timeouts . remove ( info . socket ) ; + AprSocketWrapper wrapper = connections . get ( + Long . valueOf ( info . socket ) ) ; + if ( wrapper == null ) { + continue ; + } if ( info . read ( ) || info . write ( ) ) { - AprSoc...
Add some NPE protection
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; public final class GroupByScopeTypeAction extends ToggleAction { private final Runnable myUpdate ; <nb> public final class GroupByScopeTypeAction extends ToggleAction { DependencyUISettings . getInsta...
disable action if not applicable
<nb> public class MainActivity extends Activity implements OnClickListener { mManageTableBtn . setOnClickListener ( this ) ; mCrudBtn . setOnClickListener ( this ) ; mAggregateBtn . setOnClickListener ( this ) ; - DataSupport . where ( STRING0 , STRING1 ) . count ( Singer . class ) ; } @ override
Remove test codes
<nb> public class ForTestCompileRuntime { } private static void compileJavaPartOfBuiltins ( File destdir ) throws IOException { - JavaCompiler javaCompiler = ToolProvider . getSystemJavaCompiler ( ) ; + if ( true ) { + FileUtil . copyDir ( new File ( STRING0 ) , destdir ) ; + } + else { + doCompileJav...
do not compile java part of runtime
<nb> public class ServerManager { XMLMapper mapper = XMLMapper . Factory . create ( ) ; extensionRegistrar . registerStandardDomainReaders ( mapper ) ; ParseResult < Domain > parseResult = new ParseResult < Domain > ( ) ; - mapper . parseDocument ( parseResult , XMLInputFactory . newInstance ( ) . createXMLStre...
Use the correct file
<nb> import static NAMESPACE ; import static NAMESPACE ; @ clusterscope ( scope = Scope . TEST , numDataNodes = NUMBER0 , transportClientRatio = FLOAT0 ) - @ lucenetestcase.suppressfilesystems ( STRING0 ) SINGLE + @ lucenetestcase.suppressfilesystems ( STRING1 ) SINGLE + SINGLE + SINGLE public class Plu...
suppress all filesystems here due to jimfs brokenness
<nb> package NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
fix broken link
<nb> public final class Realm implements Closeable { sharedGroup . close ( ) ; sharedGroup = null ; AtomicInteger counter = openRealms . get ( id ) ; - if ( counter == null ) { - throw new AssertionError ( STRING0 ) ; - } counter . decrementAndGet ( ) ; }
Remove a useless AssertionException
<nb> public class MethodValuesSerializer throws InvocationTargetException , IllegalAccessException { final JsonObject jsonObject = new JsonObject ( ) ; - for ( Method method : methodSelector . select ( clazz ) ) + for ( final Method method : methodSelector . select ( clazz ) ) { final Object result = meth...
Fix warnings and style
<nb> public abstract class AbstractPatternRule extends Rule { } } + SINGLE protected void setupRef ( final int firstMatchToken , final Element elem , final AnalyzedTokenReadings [ ] tokens ) throws IOException { if ( elem . isReferenceElement ( ) ) {
add a possible TODO
<nb> public class CreateUserAndBlog { try { if ( mStep == Step . AUTHENTICATE_USER ) { mCallback . onStepFinished ( Step . AUTHENTICATE_USER ) ; + ReaderUserActions . setCurrentUser ( response ) ; createBlog ( ) ; } else { SINGLE <nb> public class CreateUserAndBlog { mCallback . onStepFinished ( Step ...
move the creation of ReaderUser to the correct place
<nb> package NAMESPACE ; SINGLE SINGLE + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class LoggingBean implements LoggingMXBean { @ override public List < String > ge...
Knocking out warnings
<nb> public class UploadActivity extends SherlockFragmentActivity implements ServiceC setContentView ( R . layout . activity_upload ) ; + getSupportActionBar ( ) . setDisplayHomeAsUpEnabled ( true ) ; + mQualityRadioGroup = ( RadioGroup ) findViewById ( R . id . rg_upload_quality ) ; mAlbumSpinner = ( Spi...
Display Home as Up on UploadActivity
<nb> public class GuiMode { private static void buildAndShowClassyShark ( List < String > cmdLineArgs ) { try { - UIManager . setLookAndFeel ( STRING0 ) ; + UIManager . setLookAndFeel ( UIManager . getSystemLookAndFeelClassName ( ) ) ; } catch ( UnsupportedLookAndFeelException | IllegalAccessException | Cla...
Replaces Metal Look Feel
<nb> public class Affine2Test extends GdxTest { didThrow = true ; } check ( didThrow ) ; + + System . out . println ( STRING0 ) ; } private static void check ( boolean condition ) { <nb> public class MatrixJNITest extends GdxTest { check ( mat1 , mat3 ) ; bench ( ) ; + + System . out . print...
Added println when all the tests pass
<nb> public class EditPostSettingsFragment extends SherlockFragment implements View . O showPostTimeSelectionDialog ( ) ; } } ) - . setNegativeButton ( getResources ( ) . getText ( R . string . immediately ) , + . setNeutralButton ( getResources ( ) . getText ( R . string . immediately ) , new DialogInterfa...
changed Immediate Button as Neutral Button
<nb> public class ServletUtil { response . setContentLength ( fileSize ) ; } + + SINGLE + SINGLE if ( fileName != null ) { String name = FileNameUtil . getName ( fileName ) ; - response . setHeader ( CONTENT_DISPOSITION , STRING0 + name + STRING1 ) ; + String template = STRING2 ; + String encodedF...
Add internationalization support for Content Disposition header of response
<nb> public class PathRepresentationTest Relationship ab = relationship ( NUMBER0 , a , STRING0 , b ) ; Relationship cb = relationship ( NUMBER1 , c , STRING1 , b ) ; - Relationship cd = relationship ( NUMBER1 , c , STRING2 , d ) ; + Relationship cd = relationship ( NUMBER2 , c , STRING2 , d ) ; return ne...
fixed incorrect id
<nb> public class MatchPhraseQueryBuilder extends AbstractQueryBuilder < MatchPhraseQue } } } else { + if ( fieldName != null ) { + throw new ParsingException ( parser . getTokenLocation ( ) , STRING0 + + fieldName + STRING1 + parser . currentName ( ) + STRING2 ) ; + } fieldName = parser . currentName (...
Throw parsing error if match phrase query contains multiple fields in its short version
<nb> public class BlurView extends FrameLayout { int defaultColor = ContextCompat . getColor ( getContext ( ) , android . R . color . transparent ) ; overlayColor = a . getColor ( R . styleable . BlurView_overlayColor , defaultColor ) ; a . recycle ( ) ; + + setWillNotDraw ( false ) ; } @ override
set willNotDraw false to draw without background set
<nb> public class SystemStoreConstants { voldsys$_metadata_version_persistence ; } - SINGLE - SINGLE + SINGLE public static final String SYSTEM_STORE_SCHEMA = STRING0 + STRING1 + STRING2 <nb> public class SystemStoreConstants { + STRING3 + STRING4 + STRING5 - + STRING6 - + STRING7 - + ST...
Fixed systemstore constants and got rid of the superfluous zone rep
<nb> public class RollbackChangesDialog extends DialogWrapper { setErrorText ( null ) ; } - boolean hasNewFiles = ContainerUtil . find ( selected , new Condition < Change > ( ) { + boolean hasNewFiles = ContainerUtil . exists ( selected , new Condition < Change > ( ) { @ override public boolean value ( Ch...
use all available changes to detect operation name in RevertDialog
<nb> public class CorsInterceptor extends AtmosphereInterceptorAdapter { if ( STRING0 . equals ( req . getMethod ( ) ) ) { res . setHeader ( STRING1 , STRING2 ) ; res . setHeader ( STRING3 , - STRING4 + STRING5 + EXPOSE_HEADERS + STRING6 ) ; res . setHeader ( STRING7 , STRING8 ) ;
Added X Requested With
<nb> public interface EditorEx extends Editor { void setColumnMode ( boolean val ) ; + COMMENT + COMMENT + COMMENT void setLastColumnNumber ( int val ) ; + COMMENT + COMMENT + COMMENT int getLastColumnNumber ( ) ; int VERTICAL_SCROLLBAR_LEFT = NUMBER0 ;
Deprecate unused code
<nb> public class PdeBase extends Frame implements ActionListener { normalItem = new CheckboxMenuItem ( STRING0 ) ; rendererMenu . add ( normalItem ) ; + normalItem . setState ( true ) ; normalItem . addItemListener ( new ItemListener ( ) { public void itemStateChanged ( ItemEvent e ) { openglItem . setSt...
Set the default rendered to not be OpenGL patch from Ben
<nb> public abstract class OMVRBTreePersistent < K , V > extends OMVRBTree < K , V > implemen for ( final Iterator < OMVRBTreeEntryPersistent < K , V > > it = entryPoints . values ( ) . iterator ( ) ; it . hasNext ( ) ; ) { final OMVRBTreeEntryPersistent < K , V > currentNode = it . next ( ) ; - if ( currentNod...
reduced steps of search by always leaving the last entrypoint
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ConnectorManager ConnectorFactory connectorFactory = connectorFactories . get ( connectorName ) ; checkArgument ( connect...
Set context class loader when creating connectors
<nb> public class BlockFluidClassic extends BlockFluidBase @ override public boolean canDrain ( World world , int x , int y , int z ) { - return false ; SINGLE + return isSourceBlock ( world , x , y , z ) ; } - @ override public Fluid getFluid ( ) { return null ; } - @ override public float getFilledPer...
Fix fluid blocks
<nb> public class ConfigurationParser } ) ; } + public void nodePropertyFilter ( String nodeProperties ) + { + final String nodePropertiesString = nodeProperties ; + styles . add ( new StyleParameter . NodePropertyFilter ( ) { + public boolean acceptProperty ( String key ) { + return Arrays . asList (...
Added command line configuration option access method for filtering desired properties
<nb> public class ResultSetIteratorTest { } @ test - public void iterate_through_statement ( ) throws Exception { + public void create_iterator_from_statement ( ) throws Exception { dbTester . prepareDbUnit ( getClass ( ) , STRING0 ) ; PreparedStatement stmt = connection . prepareStatement ( STRING1 ) ;...
Add test to ResultSetIteratorTest
<nb> final class ClosureRewriteModule implements HotSwapCompilerPass { popScript ( ) ; } + reportUnrecognizedRequires ( ) ; if ( compiler . hasHaltingErrors ( ) ) { return ; } <nb> final class ClosureRewriteModule implements HotSwapCompilerPass { inlineGoogLoadModuleCalls ( ) ; } - - reportUnr...
Makes ClosureRewriteModule respect suppressions
<nb> public class PyUnboundLocalVariableInspection extends LocalInspectionTool { } public boolean isEnabledByDefault ( ) { - return false ; + return true ; } @ notnull
Make PyUnbound Local Variable inspection enabled by default
<nb> public class AsyncTaskFragment extends Fragment { realm . beginTransaction ( ) ; realm . clear ( Score . class ) ; for ( int i = NUMBER0 ; i < TEST_OBJECTS ; i ++ ) { - if ( isCancelled ( ) ) return - NUMBER1 ; + if ( isCancelled ( ) ) break ; Score score = realm . createObject ( Score . class ) ; sc...
Fixed bug when restarting ASyncTask
<nb> public class ReleasedVersionDistributions { if ( mostRecentFinal == null ) { throw new RuntimeException ( STRING0 ) ; - } else if ( mostRecentFinal . contains ( STRING1 ) ) { - return getAll ( ) . get ( NUMBER0 ) ; } return buildContext . distribution ( mostRecentFinal ) ;
Revert Milestone builds can t be a most recent release in cross version tests
<nb> public class FlexibleAdapter < T extends IFlexibleItem > public int expandAll ( ) { int expanded = NUMBER0 ; SINGLE - for ( int i = NUMBER0 ; i < mItems . size ( ) - NUMBER1 ; i ++ ) { + for ( int i = NUMBER0 ; i < mItems . size ( ) ; i ++ ) { if ( expand ( i , true ) > NUMBER0 ) expanded ++ ; } re...
Fixed last expandable item in expandAll
<nb> final public class MediaCodec { private void postEventFromNative ( int what , int arg1 , int arg2 , Object obj ) { - if ( mEventHandler != null ) { + if ( mEventHandler != null && mNotificationCallback != null ) { Message msg = mEventHandler . obtainMessage ( what , arg1 , arg2 , obj ) ; mEventHandle...
Don t send unneeded messages
<nb> public class HostConfig Context context = null ; try { - if ( deployXML && xml . exists ( ) && ! copyXML ) { + if ( deployXML && xml . exists ( ) && unpackWARs && ! copyXML ) { synchronized ( digesterLock ) { try { context = ( Context ) digester . parse ( xml ) ;
Only use the context xml from an unpacked directory for a WAR if unpackWARs is true
<nb> public class CacheStatisticsAutoConfigurationTests { private Cache getCache ( String cacheName ) { Cache cache = this . cacheManager . getCache ( cacheName ) ; - Assert . notNull ( STRING0 + cacheName + STRING1 ) ; + Assert . notNull ( cache , STRING0 + cacheName + STRING1 ) ; return cache ; }
Fix incorrect usage of Assert notNull