diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public final class ShardStateMetaData { public final String indexUUID ; public final boolean primary ; @ nullable - public final AllocationId allocationId ; SINGLE + public final AllocationId allocationId ; SINGLE public ShardStateMetaData ( long version , boolean primary , String indexUUID , Allocat...
Fix issue where shard state metadata is written while containing no allocation id
<nb> package NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class InstrumentedHandler extends HandlerWrapper { ...
Fix handling of async requests
<nb> import NAMESPACE ; COMMENT COMMENT public interface PluginMetaData { + String getUniqueId ( ) ; String getName ( ) ; String getAuthor ( ) ; URL getURL ( ) ; <nb> public class PluginResource extends RestResource { private final Set < PluginMetaData > pluginMetaDataSet ; class PluginMetaDataVal...
Adding unique id field for plugin metadata to allow lookup in exchange
<nb> public class MetricRegistry { COMMENT COMMENT public MetricRegistry ( ) { - this . metrics = new ConcurrentHashMap < String , Metric > ( ) ; + this . metrics = buildMap ( ) ; this . listeners = new CopyOnWriteArrayList < MetricRegistryListener > ( ) ; } COMMENT + COMMENT + COMMENT + COMMENT...
Make map building in MetricRegistry overrideable
<nb> public class XooPluginTest { context = new Plugin . Context ( new SonarRuntime ( Version . parse ( STRING0 ) , SonarProduct . SONARLINT , null ) ) ; new XooPlugin ( ) . define ( context ) ; - assertThat ( context . getExtensions ( ) ) . hasSize ( NUMBER0 ) . doesNotContain ( CpdTokenizerSensor . class ) ; ...
Fix Xoo UT
<nb> import NAMESPACE ; public class NetworkOperationData { public final INetworkLink Link ; - public NetworkItemsLoader Loader ; - public String ResumeURI ; + public volatile NetworkItemsLoader Loader ; + public volatile String ResumeURI ; public NetworkOperationData ( INetworkLink link , NetworkItem...
preventing duplicated opds requests
<nb> public class OpenStreetMapGraphBuilderImpl implements GraphBuilder { WayProperties wayData = wayPropertySet . getDataForWay ( way ) ; - String creativeName = wayPropertySet . getCreativeNameForWay ( way ) ; - if ( creativeName != null ) { - way . addTag ( STRING0 , creativeName ) ; + if ( ! way . has...
only compute creative names where there is no real name
<nb> public class ArgumentCaptor < T > { private final CapturingMatcher < T > capturingMatcher = new CapturingMatcher < T > ( ) ; private final Class < ? extends T > clazz ; - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMM...
remove deprecated constructor
<nb> public class FinderRecursivePanelListModelMergeTest extends PlatformTestCase { String . . . itemsToMerge ) { final StringFinderRecursivePanel panel = createStringPanel ( initialItems ) ; + disposeOnTearDown ( panel ) ; JBList list = panel . getList ( ) ; CollectionListModel < String > model = panel ....
fixed memory leaks in tests
<nb> public class HiveCharWritable extends HiveBaseCharWritable } public void enforceMaxLength ( int maxLength ) { - set ( getHiveChar ( ) , maxLength ) ; + if ( getCharacterLength ( ) != maxLength ) + set ( getHiveChar ( ) , maxLength ) ; } public Text getStrippedValue ( ) { <nb> public class HiveV...
improve performance of enforceMaxLength in HiveCharWritable HiveVarcharWritable Thomas Friedrich reviewed by Prasanth Jayachandran
<nb> public class JdbcIdempotentRepository implements IdempotentRepository < String > { SINGLE return true ; } + + public void start ( ) throws Exception { + SINGLE + + } + + public void stop ( ) throws Exception { + SINGLE + + } }
Fix the compile error of JdbcIdempotentRepository
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; public class IgnoredJUnitTestInspection extends BaseInspection { <nb> public class IgnoredJUnitTestInspection extends BaseInspection { PsiModifierListOwner . class ) ; if ( ! ( mo...
remove all debugging output
<nb> package NAMESPACE ; COMMENT COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Improve Strategy Javadoc
<nb> public interface Player extends HumanEntity , CommandSender { public void sendBlockChange ( Location loc , Material material , byte data ) ; COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + ...
Adds update chunk method for sending fake chunk updates to the client
<nb> public class Verifier implements GroovyClassVisitor , Opcodes { metaClassField . setSynthetic ( true ) ; return metaClassField ; } - + private FieldNode getMetaClassField ( ClassNode node ) { FieldNode ret = node . getDeclaredField ( STRING0 ) ; - if ( ret != null ) return ret ; + if ( ret != nul...
Verifier getMetaClassField ClassNode can throw a NPE
<nb> public class ByteBuddyAgent { COMMENT COMMENT COMMENT + @ suppressfbwarnings ( value = STRING0 , justification = STRING1 ) private static Instrumentation doGetInstrumentation ( ) { try { return ( Instrumentation ) ClassLoader . getSystemClassLoader ( )
Added findbugs suppression
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ImageDownloader { SINGLE InputStream inputStream = null ; try { - AndroidUtils . disableConnecti...
Use new downloadUrl helper
<nb> public class PeopleInviteFragment extends Fragment implements } } + + public interface ValidationEndListener { + void onValidationEnd ( ) ; + } + private void styleButton ( String username , @ nullable String validationResultMessage ) { if ( ! isAdded ( ) ) { return ; <nb> public class Peop...
Fixed commit issue
<nb> public final class OpenSslServerContext extends OpenSslContext { SINGLE boolean success = false ; try { - checkNotNull ( keyCertChain , STRING0 ) ; - checkNotNull ( key , STRING1 ) ; - synchronized ( OpenSslContext . class ) { try { SSLContext . setVerify ( ctx , SSL . SSL_CVERIFY_NONE , VERIFY_D...
Elliminated some buggy behavior when using a KeyManagerFactory with OpenSslServerContext
<nb> package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + public interface JournalEntry { JournalEntryType type ( ) ; + + COMMENT + COMMENT + COMMENT + Map < String , Object > getParameters ( ) ; + + COMMENT + COMMENT + COMMENT + List < JournalEntry > getEntries ( ) ; }
Add two new methods to JournalEntry interface
<nb> class ReaderPostRenderer { . append ( STRING0 ) . append ( mResourceVars . marginMediumPx ) . append ( STRING1 ) SINGLE - . append ( STRING2 ) . append ( mResourceVars . marginMediumPx ) . append ( STRING3 ) - . append ( STRING4 ) . append ( mResourceVars . marginMediumPx ) . append ( STRING3 ) - . app...
Fix blockquote styling
<nb> public final class KeyGenParameterSpec implements AlgorithmParameterSpec { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public final class KeyGenParameterSpec implements AlgorithmParameterSpec { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT ...
Fix typo in Javadocs of KeyGenParameterSpec
<nb> public class OrientGraph implements TransactionalGraph , IndexableGraph { public void startTransaction ( ) { if ( Mode . AUTOMATIC == this . mode ) throw new RuntimeException ( TransactionalGraph . TURN_OFF_MESSAGE ) ; - if ( rawGraph . getTransaction ( ) instanceof OTransactionNoTx ) + if ( rawGraph . g...
Use the same conditions as elsewhere in Orient
<nb> public class ErrorReportingRequest extends Request { return getCauses ( cause . getCause ( ) ) ; if ( cause instanceof InitializationError ) return ( ( InitializationError ) cause ) . getCauses ( ) ; - SINGLE return Arrays . asList ( cause ) ; } } <nb> public class OldTestClassRunner extends Runner...
Removed untrue TODO
<nb> public class ClasspathCache { } public boolean loaderHasName ( String name , Loader loader ) { - if ( StringUtil . isEmptyOrSpaces ( name ) ) return true ; + if ( StringUtil . isEmpty ( name ) ) return true ; String origName = name ; name = transformName ( name ) ;
ClasspathCache correctly handles getResource requests more strict check
<nb> public class UniversalChineseGrammaticalRelations { new GrammaticalRelation ( Language . UniversalChinese , STRING0 , STRING1 , MODIFIER , STRING2 , tregexCompiler , - STRING3 , - STRING4 + STRING3 SINGLE SINGLE ) ; <nb> public class UniversalChineseGrammaticalRelations { STRING5 , STRING6 ...
Added a numeric slot filter for Chinese
<nb> public class SystemBarTintManager { int [ ] attrs = { android . R . attr . windowTranslucentStatus , android . R . attr . windowTranslucentNavigation } ; TypedArray a = activity . obtainStyledAttributes ( attrs ) ; + try { mStatusBarAvailable = a . getBoolean ( NUMBER0 , false ) ; mNavBarAvailable = a ...
Recycled used type array
<nb> public class SamlServiceProviderProperties { } public static class TestShib extends AbstractSamlSPProperties { public TestShib ( ) { - setMetadata ( STRING0 ) ; + SINGLE setAttributes ( Lists . newArrayList ( STRING1 ) ) ; } }
turn off testshib integration by default
<nb> public class GenericFileProducer < T > extends DefaultProducer { SINGLE SINGLE if ( SimpleLanguage . hasStartToken ( name ) ) { - log . debug ( STRING0 , Exchange . FILE_NAME , name ) ; + log . trace ( STRING0 , Exchange . FILE_NAME , name ) ; Language language = getEndpoint ( ) . getCamelContext ( ) ....
Reduce debug to trace level logging
<nb> public class AccountHeader { } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + protected AccountHeaderBuilder getAccountHeaderBuilder ( ) { + return mAccountHeaderBuilder ; + } + + COMMENT COMMENT COMMENT COMMENT
add protected getter for the AccountHeaderBuilder so we can access it from the MiniDrawer
<nb> public class MacFileChooserDialogImpl implements PathChooserDialog { } } finally { + invoke ( contextInfo , STRING0 , ID . NIL ) ; + Foundation . cfRelease ( self ) ; Foundation . cfRelease ( contextInfo ) ; JDK7WindowReorderingWorkaround . enableReordering ( ) ; } <nb> public class MacFileChoose...
remove delegate instead of adding to autorelease pool
<nb> public class VerbDefinition extends OptionalIdentifiedDefinition < VerbDefinition > return params ; } + COMMENT + COMMENT + COMMENT + public void setParams ( List < RestOperationParamDefinition > params ) { + this . params = params ; + } + public String getMethod ( ) { return method ; }
Fixed rest dsl after recent changes
<nb> public class TransactionMetadataCache return txStartPositionCache . get ( txId ) ; } - public synchronized TransactionMetadata cacheTransactionMetadata ( long txId , LogPosition position , int masterId , - int authorId , long checksum ) + public TransactionMetadata cacheTransactionMetadata ( long txId ...
Remove redundant synchronized
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ;
Missing licence header
<nb> public class TestRunnerService implements PersistentStateComponent < TestRunnerSer } public String getProjectConfiguration ( ) { - return PROJECT_TEST_RUNNER ; + return PROJECT_TEST_RUNNER . isEmpty ( ) ? PythonTestConfigurationsModel . PYTHONS_UNITTEST_NAME : PROJECT_TEST_RUNNER ; } }
fixed test runner for non python modules
<nb> public class TestDFSRollback extends TestCase { baseDirs = UpgradeUtilities . createNameNodeStorageDirs ( nameNodeDirs , STRING0 ) ; deleteMatchingFiles ( baseDirs , STRING1 ) ; startNameNodeShouldFail ( StartupOption . ROLLBACK , - STRING2 ) ; + STRING3 ) ; UpgradeUtilities . createEmptyDirs ( nameNod...
Fix expected error text in assertion
<nb> public class ParameterUtils { public static final Rect RECTANGLE_EMPTY = new Rect ( COMMENT NUMBER0 , COMMENT NUMBER0 , COMMENT NUMBER0 , COMMENT NUMBER0 ) ; + private static final double ASPECT_RATIO_TOLERANCE = FLOAT0 ; + COMMENT COMMENT COMMENT <nb> public class ParameterUtils { float aspect...
Fix crop selection in LEGACY
<nb> public final class Main { serverPort = config . getValue ( STRING0 , STRING1 ) ; } Optional < WebServer > webServer ; - if ( serverPort . isPresent ( ) ) { + if ( serverPort . isPresent ( ) && ! serverPort . get ( ) . isEmpty ( ) ) { String rawPort = serverPort . get ( ) ; try { int port = Integer ...
Allow httpserver to be turned off in
<nb> public class BufferUtils { sCleanerCleanMethod . invoke ( cleaner ) ; } catch ( Exception e ) { LOG . warn ( STRING0 , e ) ; + } finally { buffer = null ; } }
Set buffer to null to release reference for safety
<nb> package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
removed unused imports
<nb> public class View implements Drawable . Callback , Drawable . Callback2 , KeyEvent . Cal @ remotableviewmethod public void setLayoutDirection ( int layoutDirection ) { if ( getLayoutDirection ( ) != layoutDirection ) { - SINGLE + SINGLE mPrivateFlags2 &= ~ LAYOUT_DIRECTION_MASK ; - SINGLE resetReso...
Fix View textDirection refresh
<nb> public class RRD4jService implements QueryablePersistenceService { } else if ( property . equals ( STRING0 ) ) { rrdDef . addItems ( value ) ; } else { - logger . warn ( STRING1 , property , value ) ; + logger . debug ( STRING1 , property , value ) ; } } catch ( IllegalArgumentException e ) { logge...
reduce log level
<nb> public class StorageServiceTest extends TestCase { @ override public void setUp ( ) { - VoldemortConfig config = new VoldemortConfig ( NUMBER0 , STRING0 ) ; - SINGLE - new File ( STRING1 ) . mkdir ( ) ; - TestUtils . createTempDir ( new File ( STRING1 ) ) ; + File temp = TestUtils . createTempDir (...
Fixed hardcoded test input path
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class DocumentOutlineWidget extends Composite if ( node . isNamespace ( ) ) return false ; + SINGLE + TextFileType fileType...
don t show R functions in doc outline for non R file
<nb> public class SessionSetting { server . request ( getRequestMatcher ( ) ) . response ( getResponseHandler ( ) ) ; } - private HttpResponseSetting bindToSession ( HttpServer server ) { if ( isMount ( ) ) { return server . mount ( mount . getDir ( ) , to ( mount . getUri ( ) ) , mount . getMountPredicat...
removed duplication of bind to session
<nb> public class SingleInspectionProfilePanel extends JPanel { private static void setConfigPanel ( final JPanel configPanelAnchor , final ScopeToolState state ) { configPanelAnchor . removeAll ( ) ; - configPanelAnchor . add ( state . getAdditionalConfigPanel ( ) ) ; + configPanelAnchor . add ( ScrollPaneFa...
added scrolls to config panel if need
<nb> public class InstalledPluginsTableModel extends PluginTableModel { public void addData ( List < IdeaPluginDescriptor > list ) { modifyData ( list ) ; - reset ( Arrays . asList ( PluginManager . getPlugins ( ) ) ) ; } private void reset ( final List < IdeaPluginDescriptor > list ) {
do not override plugin enabled status
<nb> public class CacheManagingDrawTask extends DrawTask { BaseDanmaku danmaku = it . next ( ) ; if ( danmaku . paintWidth == refDanmaku . paintWidth && danmaku . paintHeight == refDanmaku . paintHeight + && danmaku . underlineColor == refDanmaku . underlineColor && danmaku . textColor == refDanmaku . textCol...
Add a condition to findReuseableCache
<nb> public abstract class MasterBase implements Master { mJournal = Preconditions . checkNotNull ( journal ) ; } + protected boolean isLeaderMode ( ) { + return mIsLeader ; + } + protected boolean isStandbyMode ( ) { return ! mIsLeader ; }
remove change from another PR to avoid confusion
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ...
Read skeletons from the config and helpers directories only
<nb> class FileSystemDeploymentService implements DeploymentScanner { final boolean archive = child . isFile ( ) ; addContentAddingTask ( path , archive , fileName , child , timestamp , scanContext ) ; } else { - scanContext . incompleteFiles . put ( child , new IncompleteDeploymentStatus ( child , timestamp ) ...
Fix issue with deployment scanner where it could fail if the file was deleted while the scaner is running
<nb> public class SmileDemo extends JPanel implements TreeSelectionListener { algorithm = new DefaultMutableTreeNode ( new LaplaceInterpolationDemo ( ) ) ; category . add ( algorithm ) ; - COMMENT + category = new DefaultMutableTreeNode ( STRING0 ) ; top . add ( category ) ; <nb> public class SmileDem...
restore nearest neighbor search demo
<nb> public class StatusBar extends CustomBar { private final int mSimulatedPlatformVersion ; COMMENT - private static final String ATTR_COLOR = STRING0 ; + private static final String ATTR_COLOR = STRING1 ; public StatusBar ( BridgeContext context , Density density , int direction , boolean RtlEnabled , ...
Move StatusBar to use statusBarColor theme attribute
<nb> public class GenericItemAdapter < Model , Item extends GenericAbstractItem < Model , I } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public List < Model > getModels ( ) { + List < Model > models = new ArrayList < > ( ) ; + for ( Item item : getAdapterItems ( ) ) { + models . add ( item ...
add getter for the models
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class QuickChangeInspectionProfileAction extends QuickSwitchSchemeAction @ override public void update ( @ notnull AnActionEvent e ) { - final ...
don t show disabled inspection profile action
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class LowLevelSearchUtil { final short searchContext ) { ProgressManager . getInstance ( ) . checkCanceled ( ) ; final PsiEleme...
do not search words inside whitespaces
<nb> public class Bootstrap extends Job { public void doJob ( ) { SINGLE - SINGLE - User . em ( ) . createQuery ( STRING0 ) . executeUpdate ( ) ; - if ( User . count ( ) == NUMBER0 ) { Fixtures . loadModels ( STRING1 ) ; - System . out . println ( STRING2 ) ; - } else { - System . out . println ( ...
remove debugging cruft
<nb> import NAMESPACE ; COMMENT public class Router { + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public interface LifecycleManager { + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public void startupRouter ( Router router , Prefer...
Add code comments
<nb> public class ElectionContext this . electionCredentialsProvider = electionCredentialsProvider ; } + public void created ( ) + { + for ( ElectionRole role : roles ) + { + SINGLE + clusterContext . elected ( role . getName ( ) , clusterContext . getMyId ( ) ) ; + } + } + public List < Elect...
Reintroduces election on cluster creation
<nb> public class MavenActionUtil { mavenProject = projectsManager . findProject ( file ) ; } - if ( mavenProject == null || projectsManager . isIgnored ( mavenProject ) ) return Collections . emptyList ( ) ; + if ( mavenProject == null ) return Collections . emptyList ( ) ; res . add ( mavenProject ) ; ...
don t show Maven group everywhere
<nb> public final class SqlFormatter } else if ( criteria instanceof JoinOn ) { JoinOn on = ( JoinOn ) criteria ; - builder . append ( STRING0 ) - . append ( formatExpression ( on . getExpression ( ) , parameters ) ) - . append ( STRING1 ) ; + builder . append ( STRING2 ) + . append ( formatExpression (...
Do not wrap with ON expressions for format SQL
<nb> class CompactObjectInputStream extends ObjectInputStream { } } - private Class < ? > loadClass ( String className ) throws ClassNotFoundException { + protected Class < ? > loadClass ( String className ) throws ClassNotFoundException { Class < ? > clazz ; ClassLoader classLoader = this . classLoader ;...
Made CompactObjectInputStream loadClass protected just in case a user wants to override it
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; public class DefaultSpdyHeaders extends SpdyHeaders { <nb> public class DefaultSpdyHeaders extends SpdyHeaders { }...
Fix a compilation error
<nb> import NAMESPACE ; @ incubating public interface JvmTestSuiteBinarySpec extends TestSuiteBinarySpec , JvmBinarySpec { + COMMENT + COMMENT + COMMENT interface JvmTestSuiteTasks extends BinaryTasksCollection { Test getTest ( ) ; }
Add missing Javadoc
<nb> public class Audio { ttsService = getTTSService ( MultimediaActivator . getContext ( ) , STRING0 ) ; } if ( ttsService != null ) { - ttsService . speak ( text , voice ) ; + ttsService . say ( text , voice ) ; } else { logger . error ( STRING1 , text ) ; } <nb> public class TTSServiceMacOS impleme...
renamed speak to say
<nb> public class CodeStyleSchemesConfigurable extends SearchableConfigurable . Parent . @ override public void schemeChanged ( final CodeStyleScheme scheme ) { - SINGLE + reset ( ) ; } } ) ; }
reset current scheme panel after import if current scheme was updated
<nb> public class PyDebugValue extends XNamedValue { value = value . substring ( NUMBER0 , MAX_VALUE ) + STRING0 ; } - node . setPresentation ( getValueIcon ( ) , place == XValuePlace . TOOLTIP ? null : myType , value , myContainer ) ; + node . setPresentation ( getValueIcon ( ) , myType , value , myContainer...
Added type info to debug quick eval
<nb> import NAMESPACE import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SMTestRunnerResultsForm extends TestResultsPanel myTreeBuilder . updateTestsSubtree ( parentSuite ) ; } } ; - if ( myRequ...
disable merged update for tests
<nb> package NAMESPACE ; import static NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class RelationalPathBase < T > extends BeanPath < T > implements RelationalPath @ override public List < Path < ? > > getColumns ( ) { - return Arrays . as...
Using internals to get list of columns instead of public API
<nb> public class JetRefactoringUtil { String superClassesStr = STRING0 + StringUtil . join ( superClasses , STRING1 ) ; String message = JetBundle . message ( STRING2 , - DescriptorRenderer . COMPACT . render ( declarationDescriptor ) , + DescriptorRenderer . COMPACT_WITH_SHORT_TYPES . render ( declarationDe...
Use short type names in super function prompt dialog find usages and refactorings
<nb> public class DataSourceRealm extends RealmBase { return null ; } - SINGLE - Principal principal = authenticate ( dbConnection , username , credentials ) ; - - close ( dbConnection ) ; - - return principal ; + try + { + SINGLE + return authenticate ( dbConnection , username , credentials )...
Fix potential resource leak
<nb> public class ScalingThreadPoolTests extends ESThreadPoolTestCase { final int expectedSize ; if ( sizeBasedOnNumberOfProcessors < min || randomBoolean ( ) ) { - expectedSize = randomIntBetween ( min , NUMBER0 ) ; + expectedSize = randomIntBetween ( Math . max ( NUMBER1 , min ) , NUMBER0 ) ; builder . pu...
Fix scaling thread pool test bug
<nb> COMMENT COMMENT - COMMENT + COMMENT COMMENT package NAMESPACE ;
Fixed javadoc warning
<nb> public class SctpInboundByteStreamHandler extends ChannelInboundMessageHandlerAd } @ override - public boolean acceptInboundMessage ( Object msg ) throws Exception { + public final boolean acceptInboundMessage ( Object msg ) throws Exception { if ( super . acceptInboundMessage ( msg ) ) { - return is...
Fix method naming Make super method final
<nb> public class DefaultGrailsPlugin extends AbstractGrailsPlugin implements GrailsP private void replaceExpandoMetaClass ( Class loadedClass , Class oldClass ) { MetaClass oldMetaClass = registry . getMetaClass ( oldClass ) ; - registry . removeMetaClass ( oldClass ) ; + AdapterMetaClass adapter = null ...
corrects problem with reloading controllers a second time
<nb> public abstract class AbstractVertex extends AbstractElement implements Internal SINGLE for ( TitanRelation r : it ( ) . query ( ) . noPartitionRestriction ( ) . system ( ) . relations ( ) ) { RelationType t = r . getType ( ) ; - assert t == BaseLabel . VertexLabelEdge || t == BaseKey . VertexExists || t =...
Removing unnecessary assertion
<nb> public class JsonPathTokenizer private boolean tryMatch ( char expected ) { - if ( peekCharacter ( ) != expected ) { + if ( ! hasNextCharacter ( ) || peekCharacter ( ) != expected ) { return false ; } index ++ ; <nb> public class TestJsonExtract assertInvalidExtract ( STRING0 , STRING1 , STRING...
Fix JSON path tokenizer
<nb> package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Remove unused imports
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public abstract class AbstractCodecEmbedder < T > implements CodecEmbedder < T > { + abstract class AbstractCodecEmbedder < T > implements CodecEmbedder < T > { private final Channel channel ; private final ChannelPipeline pipeline ; <nb> import NAMESP...
Hid AbstractCodecEmbedder from user
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NA...
Replaced creation of new list with Collections EMPTY_LIST reference
<nb> public abstract class Schema < H extends Handler < H , S > , S extends Schema < H , S > > exten a [ i ] = ( E ) parse ( splits [ i ] , afclz ) ; return a ; } - if ( fclz . equals ( Key . class ) ) return Key . make ( s ) ; + if ( fclz . equals ( Key . class ) ) + if ( s == null || s . length ( ) == NUM...
Handle missing key field in schema parser
<nb> public class SeriesGuideApplication extends Application { COMMENT public static final int RELEASE_VERSION_16_BETA1 = NUMBER0 ; COMMENT - COMMENT - COMMENT - public static final int RELEASE_VERSION_21 = NUMBER1 ; - COMMENT COMMENT COMMENT public static final int RELEASE_VERSION_23_BETA4 = NUMBER...
Drop unused constant
<nb> public final class ProducteevDataService { dashboards = null ; } + @ suppresswarnings ( STRING0 ) public StoreObject updateDashboards ( JSONObject remote , boolean reinitCache ) throws JSONException { if ( reinitCache ) readDashboards ( ) ;
Added a nls
<nb> final class DirectoryTable implements FileContent , Iterable < DirectoryEntry > { SINGLE for ( DirectoryEntry entry : table ) { - for ( ; entry != null ; entry = entry . next ) { + while ( entry != null ) { put ( newTable , entry ) ; + DirectoryEntry next = entry . next ; + SINGLE + entry . next ...
Fix a bug in table resizing
<nb> public class LruMemoryCache implements MemoryCache { public void clearMemory ( ) { final Iterator < Map . Entry < String , Bitmap > > iterator = cache . entrySet ( ) . iterator ( ) ; while ( iterator . hasNext ( ) ) { - iterator . next ( ) ; + final Bitmap bitmap = iterator . next ( ) . getValue ( ) ; ...
Recycling bitmaps when clearing cache
<nb> public class RemoteFile { return isWindowsPath ( myPath ) ; } - private static boolean isWindowsPath ( @ notnull String path ) { + public static boolean isWindowsPath ( @ notnull String path ) { return path . contains ( STRING0 ) ; }
Fixed path convertion to work under Win
<nb> public class GrTypeDefinitionMembersCache { return CachedValuesManager . getCachedValue ( myDefinition , new CachedValueProvider < PsiMethod [ ] > ( ) { @ override public Result < PsiMethod [ ] > compute ( ) { - Collection < PsiMethod > result = ContainerUtil . newHashSet ( ) ; + Collection < PsiMethod >...
groovy preserve order of methods in class by using linked hash set
<nb> public abstract class WPDrawerActivity extends ActionBarActivity { } } - private void closeDrawer ( ) { + void closeDrawer ( ) { if ( mDrawerLayout != null ) { mDrawerLayout . closeDrawer ( GravityCompat . START ) ; } <nb> public abstract class WPDrawerActivity extends ActionBarActivity { } }...
hide the static drawer for blog tag preview
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT + @ state ( + name = STRING0 , + roamingType = RoamingType . DISABLED , + storages = { + @ storage ( file = Storag...
push down State annotation
<nb> public final class ContactsContract { COMMENT COMMENT public static final String BIRTHDAY = DATA1 ; - - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - public static final String NICKNAME = DATA2 ; } COMMENT
remove the incorrectly located nickname
<nb> public abstract class AbstractGenerator { s . append ( feature + STRING0 ) ; } byte [ ] sha1 = md . digest ( s . toString ( ) . getBytes ( ) ) ; - return new String ( Base64 . encode ( sha1 , Base64 . DEFAULT ) ) ; + return new String ( Base64 . encode ( sha1 , Base64 . DEFAULT ) ) . trim ( ) ; } }
fixed bug in caps hash generation
<nb> public abstract class AbstractFileSetCheck SINGLE SINGLE try { - final String hack = new String ( new byte [ ] { } , aCharset ) ; + new String ( new byte [ ] { } , aCharset ) ; } catch ( UnsupportedEncodingException es ) { final String message = STRING0 + es . getMessage ( ) ;
Fix up Eclipse warning
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MavenProjectsManager extends MavenSimpleProjectComponent } public void generateBuildConfiguration ( ) { + if ( ! CompilerWorkspaceConfiguration . getInstance ( myProje...
generate config only if external build is enabled for the project
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - @ component public class ContractionRoutingServiceImpl implements RoutingService { private static final Logger LOG = LoggerFactory . getLogger ( ContractionRoutingServiceImpl . class ) ;
remove component annotation on contraction routing service
<nb> public class SimpleBuilder implements Predicate , Expression { return exchange . getContext ( ) . resolveLanguage ( STRING0 ) . createExpression ( text ) . evaluate ( exchange , type ) ; } + public String toString ( ) { + return STRING1 + text ; + } }
Added toString in SimpleBuilder
<nb> public class MessageView extends K9FragmentActivity implements MessageViewFragme private void showNextMessage ( ) { findSurroundingMessagesUid ( ) ; - if ( mMessageReferences == null ) { + if ( mMessageReferences != null ) { mMessageReferences . remove ( mMessageReference ) ; } if ( mLastDirection ...
Fix typo causing a NPE
<nb> public interface Kernel32 extends StdCallLibrary { Kernel32 INSTANCE = ( Kernel32 ) Native . loadLibrary ( STRING0 , Kernel32 . class , W32APIOptions . UNICODE_OPTIONS ) ; - int PROCESS_TERMINATE = NUMBER0 ; - int PROCESS_SYNCHRONIZE = NUMBER1 ; - COMMENT COMMENT COMMENT <nb> public interface W...
Code review changes move some constants
<nb> public interface RepositoryHandler extends ArtifactRepositoryContainer { COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT DependencyResolver mavenRepo ( Map < String , ? > args , Closure configClosure ) ; <nb> public interface RepositoryHandler extends ArtifactRepos...
Fix javadoc errors
<nb> public class PinotDataResource extends ServerResource { } ret . put ( STRING0 , retArray ) ; - presentation = new StringRepresentation ( ret . toString ( ) ) ; + presentation = new StringRepresentation ( ret . toString ( ) , MediaType . APPLICATION_JSON ) ; } else { final JSONObject ret = new JSONObj...
Make pinot controller dataresources endpoint return application json header mimetype
<nb> public class DruidPooledConnection extends PoolableWrapper implements javax . sql . public void checkState ( ) throws SQLException { if ( holder == null ) { - throw new SQLException ( STRING0 ) ; + if ( disableError != null ) { + throw new SQLException ( STRING0 , disableError ) ; + } else { + thro...
add error info