diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class WordPress extends Application { super . onPreExecute ( ) ; Context context = mWeakContext . get ( ) ; if ( context != null ) { - mProgressDialog = ProgressDialog . show ( context , null , context . getText ( R . string . signing_out ) ) ; + mProgressDialog = ProgressDialog . show ( context ,...
set the ProgressDialog non cancellable
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class TracingStrategyForInvoke extends AbstractTracingStrategy { private void functionExpectedOrNoReceiverAllowed ( BindingTrace ...
Improved assert error message
<nb> public class CheckerTest mConfig . setParamPat ( STRING0 ) ; mConfig . setStaticPat ( STRING1 ) ; mConfig . setMemberPat ( STRING2 ) ; + mConfig . setIgnoreLineLengthPat ( STRING3 ) ; final Checker c = createChecker ( ) ; final String filepath = getPath ( STRING4 ) ; assertNotNull ( c ) ; final Str...
added test for regexp disabling of line length checks
<nb> public class DirArtifactCache implements ArtifactCache { ImmutableSet . < FileVisitOption > of ( ) , Integer . MAX_VALUE , new SimpleFileVisitor < Path > ( ) { + @ override - public FileVisitResult visitFile ( Path file , - BasicFileAttributes attrs ) throws IOException { + public FileVisitResult p...
Do not walk tmp folder of dir cache
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - COMMENT COMMENT
fixed CS error
<nb> public class ConfigureKotlinLibraryNotificationProvider implements EditorNotific return null ; } - private Library findOrCreateRuntimeLibrary ( final Module module ) { + private Library findOrCreateRuntimeLibrary ( ) { LibraryTable table = ProjectLibraryTable . getInstance ( myProject ) ; Library kot...
Removed unused parameter
<nb> public class CompilerDaemonManager implements CompilerDaemonFactory { return client ; } - public void stop ( ) { - synchronized ( lock ) { - LOGGER . debug ( STRING0 , clients . size ( ) ) ; - CompositeStoppable . stoppable ( clients ) . stop ( ) ; - LOGGER . info ( STRING1 , clients . size ( ) ) ;...
Removed some unnecessary synchronisation and reduced visibility of one of the methods
<nb> public class HiveConf extends Configuration { STRING0 + STRING1 + STRING2 ) , + LLAP_IO_THREADPOOL_SIZE ( STRING3 , NUMBER0 , + STRING4 ) , SPARK_CLIENT_FUTURE_TIMEOUT ( STRING5 , <nb> public class LlapIoImpl implements LlapIo < VectorizedRowBatch > { cachePolicy . setEvictionListener ( metadat...
Make the low level IO threadpool configurable Prasanth Jayachandran
<nb> public class CustomerTransformer { COMMENT COMMENT @ converter - public CustomerEntity toCustomer ( PersonDocument doc , Exchange exchange ) throws Exception { + public static CustomerEntity toCustomer ( PersonDocument doc , Exchange exchange ) throws Exception { EntityManager entityManager = exchange ...
For Camel Converter POJOs better prefer static methods over the instance methods
<nb> public class ATN { @ notnull public final List < TokensStartState > modeToStartState = new ArrayList < TokensStartState > ( ) ; - COMMENT - int stateNumber = NUMBER0 ; - COMMENT public ATN ( ) { } <nb> public class ATN { } public void addState ( @ nullable ATNState state ) { - if ( stat...
Remove unnecessary field ATN stateNumber
<nb> public final class Platform { public Platform ( String os ) { this . os = os . toLowerCase ( ) ; - this . platform = getOS ( os ) ; + this . platform = getOS ( this . os ) ; } @ override
Fix platform parsing
<nb> public class MultiHostRegistrarImpl implements MultiHostRegistrar , ModificationT } PsiDocumentManager documentManager = PsiDocumentManager . getInstance ( myProject ) ; assert ArrayUtil . indexOf ( documentManager . getUncommittedDocuments ( ) , myHostDocument ) == - NUMBER0 : STRING0 + myHostDocument ; -...
removed expensive assertion
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + COMMENT COMMENT COMMENT <nb> public final class BufferUtils { static { try { allocator = new ReflectionAllocator ( ) ; - } catch ( InaccessibleObjectException t ) { + } catch ( Throwable t ) { t . printSta...
Extracted an Allocator interface for DirectByteBuffers
<nb> import NAMESPACE ; public class SayCommand extends VanillaCommand { public SayCommand ( ) { super ( STRING0 ) ; - this . description = STRING1 ; + this . description = STRING2 ; this . usageMessage = STRING3 ; this . setPermission ( STRING4 ) ; } <nb> final class PluginClassLoader extends URLClas...
Fix some messages
<nb> public class Castors { } public static Castors me ( ) { - if ( null == one ) { - one = new Castors ( new CastorSetting ( ) ) ; - } + if ( null == one ) + synchronized ( Castors . class ) { + if ( null == one ) + one = new Castors ( castorSetting ) ; + } return one ; } private Castors ...
Protect me by synchronize and add castorSetting to the constructor
<nb> public class JetBrainsProtocolHandler { return ; } String platformPrefix = urlParts . get ( NUMBER0 ) ; + ourMainParameter = null ; + ourParameters . clear ( ) ; ourCommand = urlParts . get ( NUMBER1 ) ; if ( urlParts . size ( ) > NUMBER2 ) { url = url . substring ( platformPrefix . length ( ) + NU...
reset main and minor parameters when handler is called again
<nb> public final class FailoverLoader implements Loader { SINGLE classLoader = ( classLoader != null ) ? classLoader : ClassLoader . getSystemClassLoader ( ) ; Class < ? > type = classLoader . loadClass ( className ) ; - if ( ! type . isInterface ( ) ) { + if ( type . isInterface ( ) ) { return null ; SING...
Fix an inverted conditional that was mistakenly inverted in the move to FailoverLoader and no reflection
<nb> public class WebConnectionHtmlUnitDriver extends HtmlUnitDriver { } COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT COMMENT @ override protected final WebClient modifyWebClient ( ...
Rename configureWebClient to modifyWebClientInternal in HtmlUnit support
<nb> public final class ProjectViewImpl extends ProjectView implements PersistentStat return myIdeView ; } if ( DataConstants . DELETE_ELEMENT_PROVIDER . equals ( dataId ) ) { - final List < Module > modules = getSelectedElements ( Module . class ) ; - if ( ! modules . isEmpty ( ) ) { + final Module [ ] mod...
do not delete content root if module is selected in project view
<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 ; <nb> public class ShowRece...
remove ExtendedApi dependency
<nb> package NAMESPACE ; import NAMESPACE ; + + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT - COMMENT + COMMENT COMME...
use LzoTextInputFormat for loading
<nb> public class TFsShellTest { toCompare . append ( getCommandOutput ( new String [ ] { STRING0 , STRING1 } ) ) ; mFsShell . mkdir ( new String [ ] { STRING0 , STRING2 } ) ; toCompare . append ( getCommandOutput ( new String [ ] { STRING0 , STRING2 } ) ) ; - Assert . assertEquals ( NUMBER0 , + Assert . asse...
Fix unit test
<nb> public class TimeSeriesUtils { return ret . get ( nMinusOne ) . divi ( n ) ; } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public static INDArray reshapeTimeSeriesMaskToVector ( INDArray timeSeriesMask ) { if ( timeSeriesMask . rank ( ) != NUMBER0 ) throw new IllegalArgumentException ( ST...
Switch time series mask reshaping to f order to match activations epsilons
<nb> public class LdapManager { COMMENT COMMENT COMMENT - public void setPostfixMode ( boolean posixMode ) { + public void setPosixMode ( boolean posixMode ) { this . posixMode = posixMode ; JiveGlobals . setXMLProperty ( STRING0 , String . valueOf ( posixMode ) ) ; }
Fixed name of setPosixMode
<nb> final class OverscrollHelper { final Mode mode = view . getMode ( ) ; SINGLE - if ( mode != Mode . DISABLED && ! isTouchEvent ) { + if ( mode != Mode . DISABLED && ! isTouchEvent && deltaY != NUMBER0 ) { final int newY = ( deltaY + scrollY ) ; if ( PullToRefreshBase . DEBUG ) {
Don t process Overscroll event if we haven t changed position
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class AceEditorIdleCommands ChunkOutputWidget outputWidget = cow . get ( ) ; outputWidget . setRootWidget ( container ) ; outpu...
add spacing after line for image preview text
<nb> public interface Node extends PropertyContainer COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> package NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT ...
Wrote more information about how you should NOT mirror relationships
<nb> public class XMPPTCPConnection extends AbstractXMPPConnection { } innerloop: while ( inetAddresses . hasNext ( ) ) { final InetAddress inetAddress = inetAddresses . next ( ) ; - final String inetAddressAndPort = inetAddress + STRING0 + port ; + final String inetAddressAndPort = inetAddress + STRING1 + po...
Add missing space in log statement within XMPPTCPConnection
<nb> public class InternalEngine extends AbstractIndexShardComponent implements Engin if ( indexingBufferSize == Engine . INACTIVE_SHARD_INDEXING_BUFFER && preValue != Engine . INACTIVE_SHARD_INDEXING_BUFFER ) { logger . debug ( STRING0 , preValue , indexingBufferSize ) ; try { - flush ( new Flush ( ) . type ( ...
don t close reopen IndexWriter when changing RAM buffer size
<nb> public class StepicAdaptiveReactionsPanel extends JPanel { setLayout ( new GridBagLayout ( ) ) ; setBorder ( BorderFactory . createEtchedBorder ( ) ) ; add ( myButtonPanel ) ; - addMouseListener ( ( ) - > EduAdaptiveStepicConnector . addNextRecommendedTask ( myProject , reaction ) ) ; + addMouseListener ...
do not load next recommendation if button is not enabled
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - public class Smoothie { + public final class Smoothie { private static final int MESSAGE_UPDATE_ITEMS = NUMBER0 ; private static final int DELAY_SHOW_ITEMS = NUMBER1 ; <nb> public class Smoothie { mHandler . sendMessage ( msg ) ; } ...
library Make Smoothie a final class
<nb> public class UpdateTask extends AsyncTask < Void , Integer , UpdateResult > { message = mAppContext . getString ( R . string . update_offline ) ; length = Toast . LENGTH_LONG ; break ; + default : + break ; } if ( message != null ) {
Add default switch case
<nb> public class TextInputFormat extends DelimitedInputFormat byteWrapper = ByteBuffer . wrap ( bytes , NUMBER0 , bytes . length ) ; this . byteWrapper = byteWrapper ; } + byteWrapper . clear ( ) ; byteWrapper . position ( offset ) ; - byteWrapper . limit ( numBytes ) ; + byteWrapper . limit ( offset + n...
Fixed bug in charset decoding logic
<nb> public class ParticleEmitterBox2D extends ParticleEmitter { angle = FLOAT0 * normalAngle - angle - NUMBER0 f ; angleCos = MathUtils . cosDeg ( angle ) ; angleSin = MathUtils . sinDeg ( angle ) ; - velocityX = velocity * angleCos ; - velocityY = velocity * angleSin ; + velocityX *= angleCos ; + veloci...
Fixed perfect reflection on collision
<nb> public class ContentView extends FrameLayout { if ( mUrlTextView . getText ( ) . toString ( ) . equals ( getContext ( ) . getString ( R . string . empty_bubble_page ) ) ) { mTitleTextView . performClick ( ) ; } + else { + mWebRenderer . getView ( ) . requestFocus ( ) ; + } } @ suppresslint ( STRI...
fixed the bug with back button after collapse and expand bubble
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import static NAMESPACE ; + class CsvImporter implements Importer { - private final String [ ] args ; + private final String [ ] args = new String [ ] { } ; Csv...
Pass the store dir through via into
<nb> public class DependencyParseAnnotator extends SentenceAnnotator { DependencyTree result = results . get ( NUMBER0 ) ; IndexedWord root = new IndexedWord ( new Word ( STRING0 + ( tokens . size ( ) + NUMBER1 ) ) ) ; + root . set ( CoreAnnotations . IndexAnnotation . class , - NUMBER1 ) ; + for ( int i = ...
Add fake index for ROOT word
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Updated groovy lang Tuple javadoc
<nb> public class WalletAppKit extends AbstractIdleService { COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix old API link in comment
<nb> public class BlockGenericPipe extends BlockContainer implements IBlockPipe , ITex public static Pipe createPipe ( int key ) { try { - return pipes . get ( key ) . getConstructor ( int . class ) . newInstance ( key ) ; + Class < ? extends Pipe > pipe = pipes . get ( key ) ; + if ( pipe != null ) { + r...
Display an error message in the console when a ghost pipe is detected instead of printing the StackTrace
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Remove WTF import
<nb> public final class ActivityManagerService extends ActivityManagerNative IPackageManager pm , ProviderInfo pi , GrantUri grantUri , int uid , final int modeFlags ) { if ( DEBUG_URI_PERMISSION ) Slog . v ( TAG , STRING0 + grantUri + STRING1 + uid ) ; + if ( UserHandle . getUserId ( uid ) != grantUri . source...
Correcting a bug related to Uri permissions
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class AndroidIdlCompiler implements SourceGeneratingCompiler { } addItem ( file , facet , target , packageName , items ) ; - ...
do not generate aidl from library module in any referring app module
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> public class AtomFeedCheckerTest { @ test public void testCheckToDatabase ( ) throws IOException , SQLException { SimpleDateFormat dateForm...
make test run in any time zone
<nb> public class NavigationMenuPresenter implements MenuPresenter , AdapterView . OnIte public Bundle createInstanceState ( ) { Bundle state = new Bundle ( ) ; - state . putInt ( STATE_CHECKED_ITEM , mCheckedItem . getItemId ( ) ) ; + if ( mCheckedItem != null ) { + state . putInt ( STATE_CHECKED_ITEM , mC...
Fix NPE on orientation change
<nb> public class TypeInferenceHelper { return RecursionManager . createGuard ( STRING0 ) . doPreventingRecursion ( refExpr , new Computable < PsiType > ( ) { @ override public PsiType compute ( ) { - return CachedValuesManager . getManager ( refExpr . getProject ( ) ) . getCachedValue ( refExpr , new CachedVal...
remove unnecessary caching
<nb> public class RankableObjectWithFields implements Rankable , Serializable { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public static RankableObjectWithFields from ( Tuple tuple ) { List < Object > otherFields = Lists . newArrayList ( tuple . getValues ( ) ) ;
update Java docs
<nb> public class RenderingRuleSearchRequest { System . arraycopy ( savedFvalues , NUMBER0 , fvalues , NUMBER0 , fvalues . length ) ; } - SINGLE public void clearValue ( RenderingRuleProperty p ) { if ( p . isIntParse ( ) ) { values [ p . getId ( ) ] = savedValues [ p . getId ( ) ] ; <nb> public class R...
Fix hamlet rendering
<nb> public class ClearCommittedAction extends AnAction implements DumbAware { Project project = e . getData ( PlatformDataKeys . PROJECT ) ; if ( project != null ) { CommittedChangesPanel panel = ChangesViewContentManager . getInstance ( project ) . getActiveComponent ( CommittedChangesPanel . class ) ; - Repo...
WebStorm freezes when typing
<nb> public class LRUVertexCache implements VertexCache { } } ) ; - cache . setAlive ( false ) ; SINGLE + cache . setAlive ( true ) ; SINGLE } @ override
enabled counters in LRUCache so its actually an LRUCache i e keeps track of recency
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> class CompiledArgumentResolver { String resultSql = result . toString ( ) ; if ( ! largeArgMode ) { compiledSqlCache . put ( cacheKey , resultSql ) ; + } else { + Log . w ( S...
Add a log warning for when arguments are inlined in large SQL statements
<nb> public class ExpandWar { COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - protected static File expand ( InputStream input , File docBase , String name ) - throws IOException { - File file = new Fil...
Remove unused deprecated method
<nb> public class KNXGenericBindingProvider extends AbstractGenericBindingProvider im throw new BindingConfigParseException ( STRING0 + typeClass . getSimpleName ( ) + STRING1 ) ; } + SINGLE + if ( KNXCoreTypeMapper . toTypeClass ( dptID ) == null ) { + throw new BindingConfigParseException ( + STRING2 + ...
Added an error message if the item configuration contains an unsupported datapoint
<nb> public class IsolatedPluginTests extends ElasticsearchIntegrationTest { String [ ] hashes = Strings . delimitedListToStringArray ( prop , STRING0 ) ; SINGLE assertThat ( hashes . length , greaterThanOrEqualTo ( count + NUMBER0 ) ) ; + Arrays . sort ( hashes ) ; assertThat ( Arrays . binarySearch ( hashes...
fix incorrect array search in test by sorting it first
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; public final class ZLTextTeXHyphenator extends ZLTextHyphenator { <nb> public final class ZLTextTeXHyphenator extends ZLTextHyphenator { } public void load ( final String language ) { - if ...
fixed null language problem
<nb> final class DefaultNpmRunner extends NodeTaskExecutor implements NpmRunner { List < String > arguments = new ArrayList < String > ( ) ; arguments . add ( STRING0 ) ; if ( proxy != null ) { - arguments . add ( STRING1 + proxy . getUri ( ) . toString ( ) ) ; - arguments . add ( STRING2 + proxy . getUri ( )...
send different flags depending on whether the proxy connection is secure or not
<nb> public class JBScrollPane extends JScrollPane { } private static boolean isOverlaidScrollbar ( @ nullable JScrollBar scrollbar ) { + if ( ! ButtonlessScrollBarUI . isMacOverlayScrollbarSupported ( ) ) return false ; + ScrollBarUI vsbUI = scrollbar == null ? null : scrollbar . getUI ( ) ; return vsbUI...
returned non os x disabling logic
<nb> final class TypedScopeCreator implements ScopeCreator { Node parent ) { if ( n . getType ( ) == Token . FUNCTION || n . getType ( ) == Token . SCRIPT ) { - sourceName = ( String ) n . getProp ( Node . SOURCENAME_PROP ) ; + sourceName = NodeUtil . getSourceName ( n ) ; } SINGLE
Don t require source name properties on function nodes get it from the
<nb> public abstract class AbstractChannel implements Channel { buf . append ( STRING0 ) ; buf . append ( id . toString ( ) ) ; - if ( isConnected ( ) ) { + if ( connected ) { buf . append ( STRING1 ) ; if ( getParent ( ) == null ) { buf . append ( getLocalAddress ( ) ) ;
Reduced the number of isConnected calls in AbstractChannel toString
<nb> public class ScriptRunnerTest extends BaseDataTest { ScriptRunner runner = new ScriptRunner ( conn ) ; runner . setAutoCommit ( true ) ; runner . setStopOnError ( true ) ; + runJPetStoreScripts ( runner ) ; String resource = STRING0 ; Reader reader = Resources . getResourceAsReader ( resource ) ;
Fix failing test
<nb> public class SpecialFiles { private static void fillExcludedFiles ( ) { excludedFiles . add ( STRING0 ) ; SINGLE excludedFiles . add ( STRING1 ) ; SINGLE + excludedFiles . add ( STRING2 ) ; SINGLE + excludedFiles . add ( STRING3 ) ; SINGLE + excludedFiles . add ( STRING4 ) ; SINGLE excludedFiles . ad...
add new special files must compile java file
<nb> public class UberTestCase2 extends TestCase { suite . addTestSuite ( groovy . util . MBeanTest . class ) ; suite . addTestSuite ( groovy . util . NodeTest . class ) ; suite . addTestSuite ( groovy . util . XmlParserTest . class ) ; + suite . addTestSuite ( groovy . util . BuilderSupportTest . class ) ; s...
introduce isolated unit test for BuilderSupport
<nb> public class JBTable extends JTable implements ComponentWithEmptyText , Component return false ; } - if ( e instanceof KeyEvent && UIUtil . isReallyTypedEvent ( ( KeyEvent ) e ) ) { + if ( e instanceof KeyEvent ) { + SINGLE + if ( ! UIUtil . isReallyTypedEvent ( ( KeyEvent ) e ) ) return false ; + ...
do not start editing in autoStartsEdit mode on Ctrl Z and other non typed events
<nb> import NAMESPACE ; public class LegacyEditorFragment extends EditorFragmentAbstract implements TextWatcher , WPEditText . OnSelectionChangedListener , View . OnTouchListener { public static final int ACTIVITY_REQUEST_CODE_CREATE_LINK = NUMBER0 ; + public static final String ACTION_MEDIA_GALLERY_TOUCHED = S...
Tapping a media gallery span opens gallery editor
<nb> public class MUCRoomImpl implements MUCRoom { MUCRole senderRole = null ; JID senderAddress ; if ( message . getFrom ( ) != null && message . getFrom ( ) . getResource ( ) != null ) { - senderRole = occupants . get ( message . getFrom ( ) . getResource ( ) ) ; + senderRole = occupants . get ( message . g...
Always use lowecase version of nickname to access occupants
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - class RemoveAttributeIntentionFix implements IntentionAction { + public class RemoveAttributeIntentionFix implements IntentionAction { private final String myLocalName ; private final XmlAttribute myAttribute ;
escalate class visibility
<nb> public class AnnotationVisitor { } protected void visitConstantExpression ( String attrName , ConstantExpression constExpr , ClassNode attrType ) { - if ( ! constExpr . getType ( ) . isDerivedFrom ( attrType ) ) { + ClassNode type = ClassHelper . getWrapper ( constExpr . getType ( ) ) ; + if ( ! type ....
always compare the wrapped constant types
<nb> public class StartTimerEventTest extends PluggableActivitiTestCase { waitForJobExecutorOnCondition ( NUMBER0 , NUMBER1 , new Callable < Boolean > ( ) { public Boolean call ( ) throws Exception { SINGLE - String pi = runtimeService . createProcessInstanceQuery ( ) . processDefinitionKey ( STRING0 ) . single...
Fixing unsafe JobExecutor handling in StartTimerEventTest
<nb> public class MergingUpdateQueue implements Runnable , Disposable { private boolean myActive ; - private final Set < Update > mySheduledUpdates = new TreeSet < Update > ( ) ; + SINGLE + protected final Set < Update > mySheduledUpdates = new TreeSet < Update > ( ) ; private Alarm myWaiterForMerge = n...
Make field protected to extend in Fabrique
<nb> public class DownloadIndexesThread { warn += STRING0 + wn ; } filesToReindex . clear ( ) ; + SINGLE + indexes . updateFilesToUpdate ( ) ; ; } } } finally { <nb> public class DownloadResources extends DownloadResourceGroup { protected void updateFilesToUpdate ( ) { initAlreadyLoadedFiles ( )...
Fix update all
<nb> public enum Material { STAINED_GLASS_PANE ( NUMBER0 ) , LEAVES_2 ( NUMBER1 ) , LOG_2 ( NUMBER2 ) , - ACACIA_STAIRS ( NUMBER3 ) , - DARK_OAK_STAIRS ( NUMBER4 ) , + ACACIA_STAIRS ( NUMBER3 , Stairs . class ) , + DARK_OAK_STAIRS ( NUMBER4 , Stairs . class ) , HAY_BLOCK ( NUMBER5 ) , CARPET ( NUMBER6...
Specify MaterialData for Acacia and Dark Oak stairs
<nb> class ModeReference extends SimpleAttributeReference implements PsiPolyVariantRe public String getUnresolvedMessagePattern ( ) { final QName qName = myImplicitModeElement . getQName ( ) ; if ( qName != null && qName != QNameUtil . UNRESOLVED ) { - return STRING0 + qName . toString ( ) + STRING1 ; + retur...
drop double quotes
<nb> public class ZWaveDeviceClass { REMOTE_SWITCH ( NUMBER0 , STRING0 ) , TOGGLE_SWITCH ( NUMBER1 , STRING1 ) , Z_IP_GATEWAY ( NUMBER2 , STRING2 ) , - Z_IP_NODE ( NUMBER3 , STRING3 ) , - VENTILATION ( NUMBER4 , STRING4 ) , + Z_IP_NODE ( NUMBER3 , STRING3 ) , + VENTILATION ( NUMBER4 , STRING4 ) , + REMO...
Add second Remote Switch class reported by some ZWave me devices
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
remove unused import
<nb> public class ScissorStack { } } + COMMENT + COMMENT + public static void calculateScissors ( Camera camera , Matrix4 batchTransform , Rectangle area , Rectangle scissor ) { + calculateScissors ( camera , NUMBER0 , NUMBER0 , Gdx . graphics . getWidth ( ) , Gdx . graphics . getHeight ( ) , batchTransfo...
Added calculateScissors without viewport params
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public class BasicChaosMonkey extends ChaosMonkey { allChaosTypes . add ( new BlockAllNetworkTrafficChaosType ( cfg ) ) ; allChaosTypes . add ( new DetachVolumesChaos...
Add KillProcesses chaos type to list of chaos types
<nb> public class ConfigureMapMenu { public boolean onContextMenuClick ( final ArrayAdapter < ? > adapter , int itemId , final int pos , boolean isChecked ) { final OsmandSettings settings = ma . getMyApplication ( ) . getSettings ( ) ; if ( itemId == R . string . layer_poi ) { + settings . setPoiFilterForMap (...
Fix poi map cancel issue
<nb> public class PythonSdkType extends SdkType { if ( m . matches ( ) ) { String py_name = m . group ( NUMBER0 ) ; SINGLE py_binary = new File ( STRING0 + py_name ) ; SINGLE + if ( py_binary . exists ( ) ) { + return py_binary ; + } + } else { + py_binary = new File ( STRING1 ) ; SINGLE + } + if ( ...
Fixed python interpreter search strategy
<nb> public final class Key extends Iced implements Comparable { public static final byte USER_KEY = NUMBER0 ; COMMENT - public static final CharSequence ILLEGAL_USER_KEY_CHARS = STRING0 ; + public static final CharSequence ILLEGAL_USER_KEY_CHARS = STRING1 ; SINGLE SINGLE
Added into illegal user characters
<nb> public class Notification { OUTDATED_VERSION , EMAIL_TRANSPORT_CONFIGURATION_INVALID , EMAIL_TRANSPORT_FAILED , - STREAM_PROCESSING_DISABLED ; + STREAM_PROCESSING_DISABLED , + GC_TOO_LONG ; public static Type fromString ( String name ) { return valueOf ( name . toUpperCase ( ) ) ;
Add GC_TOO_LONG to Notification class in REST client
<nb> public final class TtlBucketList { private final ConcurrentSkipListSet < TtlBucket > mBucketList ; COMMENT - COMMENT + COMMENT COMMENT public TtlBucketList ( ) { mBucketList = new ConcurrentSkipListSet < TtlBucket > ( ) ; <nb> public final class JournalTool { COMMENT COMMENT - COMMENT +...
Incorporated PR comments
<nb> public class PluginsAdvertiser implements StartupActivity { } } catch ( IOException e ) { - LOG . error ( e ) ; + LOG . info ( e ) ; + return null ; } - return null ; } @ override
skip adverts when server doesn t accept provided info
<nb> public class AtmosphereRequest extends HttpServletRequestWrapper { } public int getPort ( ) { - return address . getPort ( ) ; + return address ( ) . getPort ( ) ; } public String getHostAddress ( ) { - return address . getAddress ( ) . getHostAddress ( ) ; + return address ( ) . getAddress ( )...
Fix stupid mistake
<nb> public class IdeaForkJoinWorkerThreadFactory implements ForkJoinPool . ForkJoinWor public static void setupForkJoinCommonPool ( ) { System . setProperty ( STRING0 , String . valueOf ( PARALLELISM ) ) ; System . setProperty ( STRING1 , IdeaForkJoinWorkerThreadFactory . class . getName ( ) ) ; - if ( ForkJoi...
fixed weird different classloaders in community
<nb> public class CCAddAnswerPlaceholder extends CCAnswerPlaceholderAction { } TaskFile taskFile = state . getTaskFile ( ) ; - int index = taskFile . getAnswerPlaceholders ( ) . size ( ) + NUMBER0 ; + int index = taskFile . getAnswerPlaceholders ( ) . size ( ) ; answerPlaceholder . setIndex ( index ) ; ta...
Use the same index for answer placeholders in student and course creator
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT COMMENT public interface Exchange < M , R , F > { COMMENT COMMENT + COMMENT + COMMENT COMMENT Object getHeader ( String name ) ; COMMENT COMMENT + COMMENT + COMMENT COMMENT void setHeader ( String n...
tided up the javadocs
<nb> public class Workbench implements BusyHandler , public void onVersionControlShowRsaKey ( ) { final ProgressIndicator indicator = new GlobalProgressDelayer ( - globalDisplay_ , NUMBER0 , STRING0 ) . getIndicator ( ) ; + globalDisplay_ , NUMBER0 , STRING1 ) . getIndicator ( ) ; SINGLE String sshDir =...
clarify view rsa public key
<nb> public class VCardConfig { ( VCARD_TYPE_V21_JAPANESE_MOBILE | FLAG_DOCOMO ) ; COMMENT - + public static int VCARD_TYPE_DEFAULT = VCARD_TYPE_V21_GENERIC_UTF8 ; private static final Map < String , Integer > sVCardTypeMap ; <nb> public class VCardConfig { final String loweredKey = vcardTypeString ...
Handle the string default and ignore it appropriately
<nb> final class SimpleConfigList extends AbstractConfigValue implements ConfigList , throws NotPossibleToResolve { return context . resolve ( v ) ; } - - } , null COMMENT ) ; + } , context . options ( ) . getAllowUnresolved ( ) ? null : ResolveStatus . RESOLVED ) ; } catch ( NotPossibleToResolve e ) { ...
If not allowing unresolved optimize resolve status computation for List
<nb> public class BottomBarBadge extends TextView { int size = Math . max ( getWidth ( ) , getHeight ( ) ) ; ViewGroup . LayoutParams params = getLayoutParams ( ) ; - params . width = size ; - params . height = size ; - setLayoutParams ( params ) ; + + if ( params . width != size || params . height != s...
Only apply new layout params if they have actually changed
<nb> public abstract class BaseAdapter implements ListAdapter , SpinnerAdapter { } COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT public void notifyDataSetChanged ( ) { mDataSetObservable . notifyChanged ( ) ; } - + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public ...
Improve docs in BaseAdapter
<nb> public final class TwitterException extends Exception implements TwitterResponse @ override public String toString ( ) { return STRING0 + - STRING1 + statusCode + + STRING2 + getMessage ( ) + + STRING3 + statusCode + STRING4 + retryAfter + STRING5 + rateLimitStatus + STRING6 ;
TwitterException doesn t use its message
<nb> public class Wallet extends BaseTaggableObject implements Serializable , BlockCha COMMENT public void setKeychainLookaheadSize ( int lookaheadSize ) { - lock . lock ( ) ; + keychainLock . lock ( ) ; try { keychain . setLookaheadSize ( lookaheadSize ) ; } finally { - lock . unlock ( ) ; + keycha...
Fix a wrong lock spotted by Andreas
<nb> public class LuceneSessionImpl implements LuceneSession { } if ( writer != null ) { - if ( writer . isLeased ( ) ) { - try { - writer . commit ( ) ; - } finally { - writer . release ( ) ; - } - } else { - writer . close ( ) ; - } + writer . close ( ) ; } if ( searcherException != nu...
Removed old code
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ExtensionDomExtender extends DomExtender < Extensions > ...
remove unnecessary getXmlElement
<nb> import NAMESPACE ; public class BooleanLiteral extends Literal { - public static BooleanLiteral TRUE_LITERAL = new BooleanLiteral ( STRING0 ) ; - public static BooleanLiteral FALSE_LITERAL = new BooleanLiteral ( STRING1 ) ; + public static final BooleanLiteral TRUE_LITERAL = new BooleanLiteral ( STRING...
Make boolean literals final
<nb> public abstract class AbstractHazelcastCacheManager } deregisterLifecycleListener ( ) ; - isClosed . set ( true ) ; for ( ICacheInternal cache : caches . values ( ) ) { cache . destroy ( ) ; } caches . clear ( ) ; + isClosed . set ( true ) ; + postDestroy ( ) ; }
Set closed flag after destroying caches while destroying cache manager
<nb> public class ScrollPaneTest extends GdxTest { } } ) ; - Slider slider = new Slider ( NUMBER0 , NUMBER1 , NUMBER1 , false , skin ) ; + Slider slider = new Slider ( NUMBER0 , NUMBER1 , NUMBER2 , false , skin ) ; slider . addListener ( stopTouchDown ) ; SINGLE table . add ( slider ) ;
increase the number of steps so we can see the Slider working smoothly
<nb> public class CppCompileAction extends AbstractAction throws ActionExecutionException , InterruptedException { Executor executor = actionExecutionContext . getExecutor ( ) ; Collection < Artifact > initialResult ; + if ( ! shouldScanIncludes ) { + return null ; + } try { initialResult = executor . g...
Do not discover inputs for an action that will not scan includes
<nb> public class GoAnnotator implements Annotator { } } else if ( o instanceof GoLiteral ) { - setHighlighting ( o , holder , GoSyntaxHighlightingColors . NUMBER ) ; + if ( ( ( GoLiteral ) o ) . getHex ( ) != null || ( ( GoLiteral ) o ) . getOct ( ) != null ) { + setHighlighting ( o , holder , GoSyntaxHigh...
only highlight oct or hex as numbers not other literals