diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + package NAMESPACE ; import NAMESPACE ;
Add Android license message
<nb> public class BridgePowerManager implements IPowerManager { } @ override + public void acquireWakeLockWithUid ( IBinder arg0 , int arg1 , String arg2 , String arg2_5 , int arg3 ) + throws RemoteException { + SINGLE + } + + @ override public void crash ( String arg0 ) throws RemoteException { S...
Fix layoutlib build
<nb> public class ConfirmingTrustManager extends ClientOnlyTrustManager { } private static String createAlias ( @ notnull X509Certificate certificate ) { - return certificate . getIssuerX500Principal ( ) . getName ( ) ; + return new CertificateWrapper ( certificate ) . getSubjectField ( CertificateWrapper . C...
Fix error related to disappearing certificates by changing alias construction
<nb> public class ODefaultCache implements OCache { if ( ! isEnabled ( ) ) return null ; - lock . acquireSharedLock ( ) ; + lock . acquireExclusiveLock ( ) ; try { return cache . get ( id ) ; } finally { - lock . releaseSharedLock ( ) ; + lock . releaseExclusiveLock ( ) ; } } <nb> public cla...
used exclusive lock even for keys and get
<nb> public abstract class GrTypeDefinitionImpl extends GrStubElementBase < GrTypeDefin final PsiElement nextChild = anchor . getNextSibling ( ) ; if ( nextChild == null ) { - add ( element ) ; - return element ; + return add ( element ) ; } if ( body == null ) throw new IncorrectOperationException ( ...
add methods fixed in GrTypeDefinitionImpl
<nb> public class PluginCommand extends Command { public void printResults ( OperationResult operationResult ) { PluginOperationResult concreteOperationResult = ( PluginOperationResult ) operationResult ; - switch ( concreteOperationResult . getRequestAction ( ) ) { + switch ( concreteOperationResult . getAct...
Add PluginAction to result
<nb> public class TitlePageIndicator extends View implements PageIndicator { ArrayList < RectF > bounds = calculateAllBounds ( mPaintText ) ; SINGLE - if ( mCurrentPage > bounds . size ( ) ) { + if ( mCurrentPage >= bounds . size ( ) ) { setCurrentItem ( bounds . size ( ) - NUMBER0 ) ; }
Revert Removed the equal sign which caused a FC when mCurrentPage was equal to bounds size
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT COMMENT public class AnnotationJmxAttributeSource implements JmxAttributeSource {
removed outdated Attributes references
<nb> package NAMESPACE ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + import NAMESPACE ;
add missing license header
<nb> public class ConsolePane extends WorkbenchPane new Console ( this , events , commands ) ; } - commands . goToFileFunction ( ) . addHandler ( new CommandHandler ( ) - { - @ override - public void onCommand ( AppCommand command ) - { - events . fireEvent ( new CompilePdfOutputEvent ( ) ) ; - } ...
Fix bad merge
<nb> public class HttpConnectionTest { File file = FileUtil . createTempFile ( ) ; file . deleteOnExit ( ) ; - FileUtil . writeString ( file , RandomStringUtil . randomAlpha ( NUMBER0 ) ) ; + FileUtil . writeString ( file , StringUtil . repeat ( STRING0 , NUMBER0 ) ) ; final StringBuilder sb = new StringB...
Stabilize the test
<nb> public class Evaluation < T extends Comparable < ? super T > > implements Serializable COMMENT public double f1 ( Integer classLabel ) { double precision = precision ( classLabel ) ; - double recall = recall ( ) ; + double recall = recall ( classLabel ) ; if ( precision == NUMBER0 || recall == NUMBER0 ...
Fixed a typo in f1 computation for the separate class
<nb> public class NullableNotNullManager implements PersistentStateComponent < Element > @ nullable public String getNullable ( PsiModifierListOwner owner ) { - for ( String nullable : myNullables ) { + for ( String nullable : getNullables ( ) ) { if ( AnnotationUtil . isAnnotated ( owner , nullable , false...
initialize default nullable notNull lists
<nb> public abstract class BroadcasterFactory { abstract public void removeAllAtmosphereResource ( AtmosphereResource r ) ; COMMENT + COMMENT + COMMENT + abstract public boolean remove ( Object id ) ; + + COMMENT COMMENT COMMENT COMMENT <nb> public class DefaultBroadcasterFactory extends Broadca...
Add a new remove method
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ModelTest extends DatabaseTestCase { assertTrue ( model . checkAndClearTransitory ( key2 ) ) ; assertFalse ( model . hasTransitory ( key2 ) ) ; } + + public void testModelPa...
Add a unit test for models implementing Parcelable
<nb> public class WalletProtobufSerializer { COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT public Wallet readWallet ( InputStream input ) throws IOException { SINGLE <nb> public class WalletProtobufSerializer { TransactionOutput output = tx . getOutputs ( ) . get ( i ) ...
throw IllegalArgumentException if tx cannot be connected
<nb> public class NioEndpoint extends AbstractEndpoint < NioChannel > { } @ override - public ByteBuffer expand ( ByteBuffer buffer , int remaining ) { return buffer ; } - @ override public ByteBuffer getReadBuffer ( ) { return readbuf ; } @ override public ByteBuffer getWriteBuffer ( ) { return writebu...
Remove NO OP method from interface
<nb> public final class LanguageConsoleBuilder { } @ notnull + public LanguageConsoleView build ( @ notnull Project project , @ notnull Language language ) { + return build ( project , language , null ) ; + } + + @ notnull public LanguageConsoleView build ( @ notnull Project project , @ notnull Langua...
restored API compatibility to fix Kotlin plugin
<nb> public class ShadowSQLiteCursor extends ShadowAbstractCursor { columnNameArray = new String [ columnCount ] ; for ( int columnIndex = NUMBER0 ; columnIndex <= columnCount ; columnIndex ++ ) { String cName = metaData . getColumnName ( columnIndex ) ; - this . columnNames . put ( cName , columnIndex - NUMBER...
fixed columnIndex lookups
<nb> import static NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT public class ExponentiallyDecayingReservoir implements Reservoir {
Alter Cormode paper link
<nb> public class DbSqlSession implements Session { tables = databaseMetaData . getTables ( this . connectionMetadataDefaultCatalog , schema , tableName , JDBC_METADATA_TABLE_TYPES ) ; return tables . next ( ) ; } finally { - tables . close ( ) ; + try { + tables . close ( ) ; + } catch ( Exception e ) { ...
Added additional catch in finally
<nb> public class JNDIRealm extends RealmBase { } + public boolean isRoleSearchAsUser ( ) { + return roleSearchAsUser ; + } + + public void setRoleSearchAsUser ( boolean roleSearchAsUser ) { + this . roleSearchAsUser = roleSearchAsUser ; + } + COMMENT COMMENT COMMENT
Add getter setter for roleSearchAsUser
<nb> public class JglfwApplicationConfiguration { COMMENT public boolean hidden ; COMMENT - public int foregroundFPS ; + public int foregroundFPS = NUMBER0 ; COMMENT - public int backgroundFPS ; + public int backgroundFPS = NUMBER0 ; COMMENT public int hiddenFPS = - NUMBER1 ; COMMENT
JGLFW matches LWJGL backend target FPS
<nb> public abstract class CharMatcher implements Predicate < Character > { SINGLE COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT @ override public boolean apply ( Character character ) { return matches ( character ) ; <nb> public abstract class CharMatcher implements Predicat...
Give CharMatcher apply the same treatment as Range apply etc
<nb> public class DeepLearningModelInfo extends Iced { SINGLE SINGLE final double thresh = FLOAT0 ; - unstable |= mean_bias [ y ] > thresh || isNaN ( mean_bias [ y ] ) - || rms_bias [ y ] > thresh || isNaN ( rms_bias [ y ] ) - || mean_weight [ y ] > thresh || isNaN ( mean_weight [ y ] ) + final double bth...
Fix the instability detection
<nb> public class PrepareContractionHierarchies extends AbstractAlgoPreparation < Prepa private StopWatch dijkstraSW = new StopWatch ( ) ; private int periodicUpdatesCount = NUMBER0 ; private int lastNodesLazyUpdatePercentage = NUMBER1 ; - private int neighborUpdatePercentage = NUMBER2 ; + private int neighbo...
decreasing neighbor updates to make last step faster
<nb> public class GCalEventDownloader extends AbstractActiveService implements Manage if ( ! matcher . matches ( ) ) { startCommands = content . toString ( ) ; - logger . warn ( STRING0 + + logger . debug ( STRING0 + STRING1 , content . toString ( ) ) ; } else {
adjusted loglevel to debug
<nb> public class Liquibase { } + public ChangeLogParameters getChangeLogParameters ( ) { + return changeLogParameters ; + } + public Database getDatabase ( ) { return database ; }
make changelogParamters publicly accessable
<nb> public class BaseAuthDialog extends BaseDialog gd = new GridData ( GridData . FILL_HORIZONTAL ) ; gd . grabExcessHorizontalSpace = true ; passwordText . setLayoutData ( gd ) ; - if ( authInfo . getUserPassword ( ) != null ) { + if ( authInfo . getUserPassword ( ) != null && authInfo . isSavePassword ( ) ...
Show saved password only if save password is checked
<nb> public class PyPropertyDefinitionInspection extends PyInspection { hasReturns = returnStatements . length > NUMBER0 ; } else { - PyReferenceExpression callSite = being_checked instanceof PyReferenceExpression ? ( PyReferenceExpression ) being_checked : null ; - final PyType type = callSite != null ? call...
Removed unnecessary call site dependency for evaluating return type of a property
<nb> public class UserResolverChain implements DependencyToModuleResolver { if ( latestResolved != null ) { final ModuleVersionDescriptor downloadedModule = latestResolved . module ; LOGGER . debug ( STRING0 , downloadedModule . getId ( ) , latestResolved . repository . getName ( ) ) ; + for ( Throwable error :...
Log the ignored resolve failures so they are not lost entirely
<nb> public class PullRefreshLayout extends ViewGroup { mRefreshView . setImageDrawable ( mRefreshDrawable ) ; } + public void setRefreshDrawable ( RefreshDrawable drawable ) { + setRefreshing ( false ) ; + mRefreshDrawable = drawable ; + mRefreshDrawable . setColorSchemeColors ( mColorSchemeColors ) ; ...
add setRefreshDrawable method
<nb> class ApplyPatchChange { case ALREADY_APPLIED : return JBColor . YELLOW . darker ( ) ; case EXACTLY_APPLIED : - return JBColor . BLUE . darker ( ) ; + return new JBColor ( new Color ( NUMBER0 , NUMBER1 , NUMBER2 ) , new Color ( NUMBER0 , NUMBER3 , NUMBER2 ) ) ; case NOT_APPLIED : return JBColor . RED...
change applied color hunk identifier to green one
<nb> import static NAMESPACE ; givenShouldShowRationaleForPermission ( ANY_PERMISSION ) ; whenCheckPermission ( permissionListener , ANY_PERMISSION ) ; - whenContinueWithTheCheckPermissionProcess ( ) ; + whenContinueWithTheCheckPermissionProcess ( permissionListener ) ; - thenPermissionRationaleIsShown ( ...
Fix broken test
<nb> public abstract class DBCollection { COMMENT COMMENT COMMENT - COMMENT COMMENT COMMENT COMMENT <nb> public abstract class DBCollection { } COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public abstract class DBCollection { COMMENT COMMENT COMMENT - COMMENT + CO...
Fix Javadoc comments in DBCollection class
<nb> public interface HystrixNetworkAuditorEventListener { COMMENT COMMENT COMMENT + COMMENT COMMENT COMMENT COMMENT
Fixed Javadoc warning in HystrixNetworkAuditorEventListener
<nb> public class PlainStreetEdge extends AbstractEdge implements StreetEdge { return ; } if ( slopeOverride ) { - elev = new PackedCoordinateSequence . Float ( new Coordinate [ ] { new Coordinate ( FLOAT0 , FLOAT0 ) } , + elev = new PackedCoordinateSequence . Float ( new Coordinate [ ] { elev . getCoordinate...
improve elevation profile display for bridges patch from Vivien Deparday
<nb> public class VcsLogDataHolder implements Disposable , VcsLogDataProvider { myDataPackUpdateHandler . consume ( dataPack ) ; initSw . report ( ) ; } - } , STRING0 ) ; + } , STRING1 ) ; } private void readCurrentUser ( ) { <nb> public class VcsLogRefresherImpl implements VcsLogRefresher { @ notnu...
log Capitalize the bg progress title
<nb> public abstract class InplaceRefactoring { if ( initialInjectedHost != null && initialInjectedHost != injectionHost ) { return false ; } - return injectedLanguageManager . injectedToHost ( element , textRange ) . contains ( offset ) ; + return injectedLanguageManager . injectedToHost ( element , textRang...
offset magic JSInplaceIntroduceVariableTest testInitialOccurrenceSelected
<nb> public class XmlReader extends RubyObject { if ( args . length > NUMBER0 ) { options = new ParserContext . Options ( ( Long ) args [ NUMBER0 ] . toJava ( Long . class ) ) ; } else { - System . out . println ( STRING0 ) ; SINGLE options = new ParserContext . Options ( NUMBER1 | NUMBER2 ) ; }
Remove a println statement
<nb> public class PeopleTable { private static int getPeopleCountForLocalBlogId ( int localTableBlogId , boolean isFollower ) { String [ ] args = new String [ ] { Integer . toString ( localTableBlogId ) , Integer . toString ( isFollower ? NUMBER0 : NUMBER1 ) } ; - String sql = STRING0 + PEOPLE_TABLE + STRING1 ;...
Fixes the get people count query
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ReaderPostListFragment extends SherlockFragment @ override public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle ...
Removed unused resources variable from ReaderPostListFragment
<nb> public class Polygon { COMMENT public float [ ] getWorldVertices ( ) { - if ( ! dirty ) return localVertices ; + if ( ! dirty ) return worldVertices ; dirty = false ; final float [ ] localVertices = this . localVertices ;
Fixed Polygon getWorldVertices
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Fix Checkstyle violations
<nb> public final class SerializerCache COMMENT COMMENT COMMENT - private ReadOnlyClassToSerializerMap _readOnlyMap = null ; + private volatile ReadOnlyClassToSerializerMap _readOnlyMap = null ; public SerializerCache ( ) { } <nb> public final class SerializerCache COMMENT public ReadOnlyClassToSe...
Use double checked locking to remove sync block
<nb> import NAMESPACE ; COMMENT public class ProxyServlet implements Servlet { - private static final Logger LOG = Log . getLogger ( ProxyServlet . class ) ; - protected Logger _log ; protected HttpClient _client ; protected String _hostHeader ; <nb> public class ProxyServlet implements Servlet { ...
Removed static logger from ProxyServlet
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SearchController extends AuthenticatedController { interval = STRING0 ; } - Logger . info ( rangeType . toUpperCase ( ) ) ; - SINGLE ...
remove superfluous logger
<nb> public class LocalDistributedExecutor extends PlanExecutor { SINGLE long javaMem = HardwareDescriptionFactory . extractFromSystem ( ) . getSizeOfFreeMemory ( ) ; + + SINGLE + SINGLE + long bufferMem = GlobalConfiguration . getLong ( ConfigConstants . TASK_MANAGER_NETWORK_NUM_BUFFERS_KEY , + ConfigC...
Adjust tests LocalDistributedExecutor for low memory settings on build servers
<nb> public class TileAtlas implements Disposable { } private static FileHandle getRelativeFileHandle ( FileHandle path , String relativePath ) { - if ( relativePath . trim ( ) . isEmpty ( ) ) return path ; + if ( relativePath . trim ( ) . length ( ) == NUMBER0 ) return path ; FileHandle child = path ;
fixed TileAtlas used String isEmpty
<nb> public class IconUtil { public void paintIcon ( Component c , Graphics g , int x , int y ) { Graphics2D g2d = ( Graphics2D ) g . create ( ) ; try { + g2d . translate ( x , y ) ; AffineTransform transform = AffineTransform . getScaleInstance ( scale , scale ) ; transform . preConcatenate ( g2d . getTran...
fixed incorrect scaled icon painting
<nb> public class AnnotatedCompositeSerializer < T > extends AbstractSerializer < T > { if ( clazz . getDeclaredFields ( ) != null && clazz . getDeclaredFields ( ) . length > NUMBER0 ) { allFields . addAll ( Arrays . asList ( clazz . getDeclaredFields ( ) ) ) ; } - if ( recursively && clazz . getSuperclass ( ) ...
Don t go all the way to Object class
<nb> public class ObjectMapper COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public ObjectWriter writer ( FormatSchema schema ) { return new ObjectWriter ( this , getSerializationConfig ( ) , schema ) ;
schema here does NOT refer to JSON Schema
<nb> public class CollectionAcceptanceTest extends DatabaseTestCase { doc . append ( STRING0 , Arrays . asList ( new Document ( STRING1 , NUMBER0 ) , new Document ( STRING1 , NUMBER1 ) ) ) ; collection . insert ( doc ) ; - Document found = collection . one ( ) ; + Document found = collection . find ( ) . getO...
Fixed an incompatibility not caught in the last rebase
<nb> import NAMESPACE ; COMMENT COMMENT - public class LocalFolderPickerActivity extends AppCompatActivity implements LocalFileListFragment . ContainerActivity { + public class LocalFolderPickerActivity extends ToolbarActivity implements LocalFileListFragment . ContainerActivity { private static final Str...
Fix Toolbar in LocalFolderPickerActivity to select camera folder
<nb> public class ComponentInterceptorAnnotationParsingProcessor extends AbstractComp SINGLE final List < AnnotationInstance > excludeClassAnnotations = classAnnotations . get ( EXCLUDE_CLASS_ANNOTATION_NAME ) ; if ( excludeClassAnnotations != null ) { - for ( AnnotationInstance annotation : excludeDefaultAnnot...
Fixed ExcludeClassInterceptors annotation parsing
<nb> public class WXPerformance { } public static String [ ] getDimensions ( ) { - return new String [ ] { STRING0 , STRING1 , STRING2 , STRING3 , STRING4 } ; + return new String [ ] { STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 } ; } public static String [ ] getMeasures ( ) { ...
android add performance data
<nb> public class WebSocketServerHandshakerFactory { COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT COMMENT COMMENT COMMENT
Fix problems in Javadoc references
<nb> public class TreeModelBuilder { ChangesBrowserNode parentNode = myFoldersCache . get ( parentPath . getKey ( ) ) ; if ( parentNode == null ) { - parentNode = ChangesBrowserNode . create ( myProject , new FilePathImpl ( new File ( parentPath . getPath ( ) ) , true ) ) ; + FilePathImpl filePath = parentPat...
vcs Reuse the VirtualFile instead of creating FilePathImpl on File
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class DefaultAsyncSupportResolverTest { public void testAsyncSupportClassNotFoundDefaultsToBlockingIOIfServlet30IsNotAvailable ( ) { boolean useNativeIfPossible = false ; bool...
Fixing test for final fallback to Blocking IO
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT - COMMENT + COMMENT COMMENT public class ReaderPostListFragment extends SherlockFragment implements AbsListView . OnScrollListener ,
Reworded outdated comment in ReaderPostListFragment
<nb> final public class AndrolibResources { private File getFrameworkApk ( int id , String frameTag ) throws AndrolibException { File dir = getFrameworkDir ( ) ; + File apk ; - File apk = new File ( dir , String . valueOf ( id ) + STRING0 + frameTag + STRING1 ) ; - if ( apk . exists ( ) ) { - return apk...
fixed small bug occuring when frameTag is null
<nb> public class SyslogEventHandler implements SyslogServerSessionlessEventHandlerIF gelf . setConvertedFromSyslog ( true ) ; gelf . setVersion ( STRING0 ) ; gelf . setShortMessage ( event . getMessage ( ) ) ; + gelf . setFullMessage ( new String ( event . getRaw ( ) ) ) ; gelf . setHost ( event . getHost ( ...
set raw syslog message as full message
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + + + COMMENT COMMENT COMMENT <nb> public class ManualTagger { br = new BufferedReader ( isr ) ; String line ; while ( ( line = br . readLine ( ) ) != null ) { - if ( line . charAt ( NUMBER0 ) == STRING0 ) {...
fix a bug
<nb> public class WebkitTest extends AndroidTestCase { date . setTime ( time ) ; c . setTime ( date ) ; index = dateSorter . getIndex ( time ) ; - Log . i ( LOGTAG , STRING0 + DateFormat . format ( STRING1 , c ) . toString ( ) + + Log . i ( LOGTAG , STRING0 + DateFormat . format ( STRING2 , c ) . toString ( )...
Fix times in debugging output to use H rather than k
<nb> public class HgMqUnAppliedPatchesPanel extends JPanel implements DataProvider , H @ override public void editingStopped ( ChangeEvent e ) { - int editingRow = getEditingRow ( ) ; - String oldName = getModel ( ) . getPatchName ( editingRow ) ; + final int editingRow = getEditingRow ( ) ; + final Strin...
save possible reordering etc before editing names
<nb> public class CamelJaxbTest extends CamelTestSupport { String xml = STRING0 ; template . sendBody ( STRING1 , xml ) ; } + + @ test + public void testFilterNonXmlChars ( ) throws Exception { + String xmlUTF = STRING2 ; + String xml = STRING3 + xmlUTF ; + PersonType expected = new PersonType ( ) ; ...
Added simple unit test on CamelJaxb dataformat
<nb> public class ObjectMapper { Object value = jsonObject . opt ( field . getName ( ) ) ; Object setValue = getValueForField ( field , value ) ; try { - field . set ( instance , getValueForField ( field , value ) ) ; + field . set ( instance , setValue ) ; } catch ( IllegalArgumentException e ) { throw n...
Don t evaluate twice a field s value when serializing java to JSON in ObjectMapper
<nb> public class OSQLNonBlockingQuery < T extends Object > extends OSQLQuery < T > impleme @ override public void run ( ) { final ODatabaseDocumentTx db = ( ( ODatabaseDocumentTx ) database ) . copy ( ) ; + db . activateOnCurrentThread ( ) ; try { OSQLNonBlockingQuery . super . execute ( iArgs ) ; } catc...
Fix non blocking queries activate db in current thread
<nb> public class DiagnosticGroups { STRING0 + STRING1 + STRING2 + - STRING3 + + STRING4 + STRING5 ; public static final DiagnosticGroup GLOBAL_THIS =
Fix bad diagnostic group reference
<nb> import NAMESPACE ; @ aspect public class LogAspect { - @ around ( STRING0 ) + @ around ( STRING1 ) public Object traceMethod ( final ProceedingJoinPoint proceedingJoinPoint ) throws Throwable { Object returnVal = null ; final Logger logger = this . getLog ( proceedingJoinPoint ) ;
Reverted change on logging aspect
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + @ suppress SINGLE public class GlobalFocusChangeTest extends ActivityInstrumentationTestCase < GlobalFocusChange > { private GlobalFocusC...
Suppress flaky framework core tests
<nb> public class EntityCapsManager COMMENT public boolean isValid ( DiscoverInfo discoverInfo ) { - return - ( discoverInfo != null ) + if ( discoverInfo != null ) + { + SINGLE + SINGLE + SINGLE + SINGLE + if ( discoverInfo . getNode ( ) == null ) + { + discoverInfo . setNode ( getNodeVer (...
If the node attribute of the Disco info reponse is null set it to the node value of the request
<nb> public class DefaultCodeFactory implements CodeFactory { List < Scope > results = new ArrayList < Scope > ( ) ; Scope result ; do { + int start = position . get ( ) ; result = new Scope ( ) ; for ( int i = NUMBER0 ; i < codes . length && result != null ; i ++ ) { if ( Mustache . debug ) { <nb> publ...
reset the position on a failed iteration
<nb> import static NAMESPACE ; COMMENT public class ComponentDao extends BaseDao < ComponentMapper , ComponentDto , String > implements ServerComponent , DaoComponent { + public ComponentDao ( ) { + this ( System2 . INSTANCE ) ; + } + public ComponentDao ( System2 system ) { super ( ComponentMapper . ...
Add empty constructor
<nb> public interface RequestSpec { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT RequestSpec method ( String method ) ; <nb> public class LaunchConfigBuilder { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class LaunchConfigBuilder { } C...
Fix some Javadoc errors
<nb> public class BSONSerde implements SerDe { LOG . trace ( STRING0 + x ) ; SINGLE if ( ! doc . containsField ( colName ) ) { - value = null ; - } else if ( ti . getTypeName ( ) . equalsIgnoreCase ( + LOG . debug ( STRING1 + colName + STRING2 + doc . keySet ( ) ) ; + for ( String k : doc . keySet ( ) ) {...
Fix a bunch of key naming stuff
<nb> abstract class ModelNodeInternal implements MutableModelNode { if ( type != null ) { return Optional . of ( type . toString ( ) ) ; } + modelView . close ( ) ; } return Optional . absent ( ) ; }
Close the model view
<nb> class ZoomManager { SINGLE SINGLE mWebView . post ( new PostScale ( w != ow && - ! mWebView . getSettings ( ) . getUseFixedViewport ( ) ) ) ; + ! mWebView . getSettings ( ) . getUseFixedViewport ( ) , mInZoomOverview ) ) ; } private class PostScale implements Runnable { final boolean mUpdateTextW...
Remember zoom overview state since the postscale callback is async
<nb> public abstract class DefaultAppCore { COMMENT COMMENT COMMENT + COMMENT + COMMENT COMMENT protected void initProps ( ) { - if ( appProps == null ) { - appProps = new Props ( ) ; + if ( appProps != null ) { + return ; } + appProps = new Props ( ) ; + appProps . loadSystemProperties ...
don t load props if already set
<nb> final class Util { } } - private static boolean attachRecords ( Configuration configuration ) { + private static final boolean attachRecords ( Configuration configuration ) { if ( configuration != null ) { Settings settings = configuration . getSettings ( ) ; <nb> final class Util { COMMENT C...
Added final keywords
<nb> public class WebappClassLoader } - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - @ deprecated - public WebappClassLoader ( ClassLoader parent ) { - - super ( new URL [ NUMBER0 ] , parent ) ; - - this . parent = getParent ( ) ; - - system = get...
Remove unused code
<nb> public class SettingsPopulation implements Serializable private static final class SequentialOptions extends GenerateOptions { final OptionSimple populate ; - final OptionDistribution lookback = new OptionDistribution ( STRING0 , null , STRING1 ) ; + final OptionDistribution lookback = new OptionDistribu...
make stress read lookback optional
<nb> public final class SimplePluginManager implements PluginManager { List < RegisteredListener > eventListeners = listeners . get ( type ) ; int position = NUMBER0 ; - if ( listeners != null ) { + if ( eventListeners != null ) { for ( RegisteredListener registration : eventListeners ) { if ( registratio...
Fixed another nullcheck in pluginmanager
<nb> public class PackageManagerService extends IPackageManager . Stub { StorageManager . FLAG_STORAGE_DE | StorageManager . FLAG_STORAGE_CE | Installer . FLAG_CLEAR_CODE_CACHE_ONLY ) ; } - clearAppProfilesLIF ( ps . pkg , UserHandle . USER_ALL ) ; } ver . fingerprint = Build . FINGERPRINT ; }
Don t clear app profiles during system upgrades
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Use of and inside code confuses the validation parser
<nb> import NAMESPACE ; COMMENT public class EqualsWithItselfInspectionTest extends LightInspectionTestCase { - public void testEqualsWithItSelf ( ) { doTest ( ) ; } + public void testEqualsWithItself ( ) { doTest ( ) ; } @ nullable @ override
rename test method so test data can be found on case sensitive file system
<nb> public final class DefaultPassConfig extends PassConfig { @ override protected CompilerPass create ( AbstractCompiler compiler ) { return new PureFunctionIdentifier . Driver ( - compiler , options . debugFunctionSideEffectsPath , false ) ; + compiler , options . debugFunctionSideEffectsPath ) ; } } ;...
Remove an unsused parameter
<nb> public class WsRemoteEndpoint implements RemoteEndpoint { first = false ; } sendMessage ( Constants . OPCODE_TEXT , textToByte , first , isLast ) ; - if ( ! isLast ) { + if ( isLast ) { + isText = null ; + } else { isText = Boolean . TRUE ; } } <nb> public class WsRemoteEndpoint implements Re...
Fix logic thanks to review by kkolinko
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
fixed checkstyle issue
<nb> public final class Some < T > implements Option < T > , Serializable { private static final long serialVersionUID = NUMBER0 ; + COMMENT + COMMENT + COMMENT + public static final Some < Void > NOTHING = new Some < > ( null ) ; + private final T value ; COMMENT <nb> public final class Some < ...
Adds convenience method for Some Void
<nb> public class VcsInitialization { StartupManager . getInstance ( myProject ) . registerPostStartupActivity ( new DumbAwareRunnable ( ) { public void run ( ) { - execute ( ) ; + ApplicationManager . getApplication ( ) . executeOnPooledThread ( new Runnable ( ) { + @ override + public void run ( ) { +...
Do not call VCS platform post startup things in AWT thread we don t need it
<nb> public class Benchmarks System . out . println ( STRING0 ) ; System . out . println ( STRING1 ) ; benchmarks . startSillyBench ( ) ; + benchmarks . startSillyBench ( ) ; System . out . println ( STRING2 ) ; benchmarks . startSillyBench ( ) ; benchmarks . startSillyBench ( ) ; <nb> public class Benc...
Add one more warm up run
<nb> public abstract class DataSupport { return queryHandler . onFindMul ( modelClass , ids ) ; } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public static synchronized < T > List < T > fi...
Add annotations on findAll method
<nb> public class SpanishTaggerTest extends TestCase { public void testTagger ( ) throws IOException { myAssert ( STRING0 , STRING1 ) ; - myAssert ( STRING2 , STRING3 ) ; + myAssert ( STRING2 , STRING4 ) ; myAssert ( STRING5 , STRING6 ) ; myAssert ( STRING7 , STRING8 ) ; }
updated dictionary needed to change test results
<nb> public class FontAwesomeText extends FrameLayout { public void setTextColor ( int color ) { tv . setTextColor ( color ) ; } + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public void setTextSize ( int unit , float size ) { + tv . setTextSize ( unit , size ) ; + } }
Added ability to set text size in FontAwesomeText programatically
<nb> public class Robolectric { Robolectric . packageManager = null ; Robolectric . activityThread = null ; - RobolectricGen . reset ( ) ; + RobolectricBase . reset ( ) ; for ( Class < ? > klass : config . shadows ( ) ) { if ( klass . getAnnotation ( Implements . class ) . resetStaticState ( ) ) { stati...
Updated Robolectric reset so that it calls the generated reset method
<nb> public class HttpMessage implements Message { SINGLE SINGLE private String note = STRING0 ; - SINGLE - private Vector < String > tags = new Vector < > ( ) ; SINGLE private HistoryReference historyRef = null ; SINGLE
Removed unused field
<nb> public abstract class TvInputService extends Service { } } } - if ( mOverlayView == null ) { + if ( mOverlayView == null || ! mOverlayView . isAttachedToWindow ( ) ) { return Session . DISPATCH_NOT_HANDLED ; } if ( ! mOverlayView . hasWindowFocus ( ) ) { <nb> public class TvView extends SurfaceVi...
Fix NPE in TvInputService and TvView
<nb> public class ActionToolbarImpl extends JPanel implements ActionToolbar { public Dimension getPreferredSize ( ) { final ArrayList < Rectangle > bounds = new ArrayList < Rectangle > ( ) ; calculateBounds ( new Dimension ( Integer . MAX_VALUE , Integer . MAX_VALUE ) , bounds ) ; - + if ( bounds . isEmpty ( ...
hide empty toolbars
<nb> public abstract class ParameterTableModelBase < P extends ParameterInfo > extends L private final FileType myFileType ; public DefaultValueColumn ( Project project , FileType fileType ) { - super ( RefactoringBundle . message ( STRING0 ) ) ; + this ( project , fileType , RefactoringBundle . message ( STR...
Change signature for JavaScript work in progress