diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ResourceModelEncoder COMMENT public ResourceSchema loadOrBuildResourceSchema ( final ResourceModel resourceModel ) { - ...
Remove leading slash in resource path because ClassLoader getResourceAsStream should not have it
<nb> public class NoSonarFilterLoader extends Bridge { public void visitClass ( SourceClass sourceClass ) { if ( sourceClass . isSuppressWarnings ( ) ) { + visitLines ( sourceClass ) ; } }
Support the annotation SuppressWarnings at class level
<nb> public class WindowManagerService extends IWindowManager . Stub } catch ( InterruptedException e ) { } } + return thr . mService ; } - - return thr . mService ; } static class WMThread extends Thread {
Fixing possible race condition
<nb> public class ZooKeeperMasterModel implements MasterModel { final byte [ ] idJson = id . toJsonBytes ( ) ; for ( final int port : staticPorts ) { final String path = Paths . configHostPort ( host , port ) ; - checkForPortConflicts ( client , host , port , id ) ; portNodes . put ( path , idJson ) ; } ...
Prevent misleading deployment group error
<nb> public class NavListAdapter extends BaseAdapter { TypedArray ta = context . obtainStyledAttributes ( new int [ ] { R . attr . stat_playlist , R . attr . ic_new , - SINGLE - R . attr . stat_playlist , + R . attr . feed , R . attr . av_download , R . attr . ic_history , R . attr . content_new } ) ;
using different icon for the All Episodes fragment
<nb> public class InputPanel extends JPanel implements ActionListener , ChangeListener STRING0 + STRING1 + STRING2 + - STRING3 + STRING4 + STRING5 + STRING6 + <nb> public class Tsurgeon { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - ...
Clarify nomenclature add PhrasePenalty to baseline feature set
<nb> class TagNameReference implements PsiReference { if ( owner . getMetaData ( ) instanceof XmlElementDescriptor ) { getElement ( ) . setName ( owner . getMetaData ( ) . getName ( getElement ( ) ) ) ; } + } else if ( element instanceof JspFile ) { + SINGLE + return getElement ( ) ; } + throw new Inc...
do not throw IOE if doing bindToElement to a file
<nb> public class RecentsRowFocusAnimationHolder { mFocusLoseAnimatorSet = new AnimatorSet ( ) ; mFocusLoseAnimatorSet . playTogether ( - ObjectAnimator . ofFloat ( mView , STRING0 , dimAlpha ) , + SINGLE + SINGLE + ObjectAnimator . ofFloat ( mView , STRING0 , FLOAT0 , dimAlpha ) , ObjectAnimator . ofFl...
Fix recents row blinking when PIP is focused
<nb> public class Grammar implements AttributeResolver { public static Map < String , AttributeDict > grammarAndLabelRefTypeToScope = new HashMap < String , AttributeDict > ( ) { { - SINGLE + put ( STRING0 , Rule . predefinedLexerRulePropertiesDict ) ; SINGLE SINGLE put ( STRING1 , Rule . predefinedRule...
Add back support for properties type text channel mode in lexer actions
<nb> public class RunManagerImpl extends RunManagerEx implements JDOMExternalizable , } catch ( Throwable e ) { LOG . error ( e ) ; + continue ; } if ( configurationSettings == null ) { if ( myUnknownElements == null ) myUnknownElements = new ArrayList < Element > ( NUMBER0 ) ;
ignore faulty configuration
<nb> public class LocalSession { private LocalConfiguration config ; - private long expirationTime = NUMBER0 ; + private long expirationTime = System . currentTimeMillis ( ) + EXPIRATION_GRACE ; private RegionSelector selector = new CuboidRegionSelector ( ) ; private boolean placeAtPos1 = false ; privat...
Set the expiration time to the current time plus the expriation grace by default
<nb> public class WordPressDB { db . execSQL ( ADD_HTTPPASSWORD ) ; db . execSQL ( ADD_LAST_BLOG_ID ) ; db . execSQL ( ADD_POST_FORMATS ) ; + db . execSQL ( ADD_SCALED_IMAGE ) ; + db . execSQL ( ADD_SCALED_IMAGE_IMG_WIDTH ) ; migratePasswords ( ctx ) ; db . setVersion ( DATABASE_VERSION ) ; SINGLE } els...
Add new image size columns for new install
<nb> public class UdpConnector implements Connector remoteAddress = new InetSocketAddress ( remote , remotePort ) ; SINGLE - sock . connect ( remoteAddress ) ; - + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + S...
Leave the client UDP connection connectionless and
<nb> public class DexFileReader { return odex ; } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public final int getClassSize ( ) { + return class_defs_size ; + } + } <nb> public class AsmVerify extends BaseCmd { usage ( ) ; return ; } - System . out . println ( STRING0 + file ...
add getClassSize to DexFileReader
<nb> public class ControllerRestApplication extends Application { } private void attachRoutesForClass ( Router router , Class < ? extends ServerResource > clazz ) { - TreeSet < String > pathsOrderedByLength = new TreeSet < String > ( ComparatorUtils . < String > chainedComparator ( new Comparator < String > ( )...
Fixing compile error on eclipse
<nb> public class FindInFilesDialog extends ModalDialog < FindInFilesDialog . State > } ) ; manageFilePattern ( ) ; + txtSearchPattern_ . getElement ( ) . setAttribute ( STRING0 , STRING1 ) ; + txtSearchPattern_ . addKeyUpHandler ( new KeyUpHandler ( ) { @ override
disable spellcheck in find in files dialog
<nb> public class Cloud extends Request { private static class NodeCellBuilder extends ArrayRowElementBuilder { @ override public String elementToString ( JsonElement element , String contextName ) { String str = element . getAsString ( ) ; - if ( str . equals ( H2O . SELF . toString ( ) ) ) + if ( str . equa...
Fix broken StoreView link on cluster status page
<nb> public class DeferredType implements JetType { @ override public boolean equals ( Object obj ) { - if ( this == obj ) return true ; - JetType actualType = getActualType ( ) ; - if ( actualType == obj ) return true ; - - if ( ! ( obj instanceof JetType ) ) return false ; - - return TypeUtils . e...
Deferred types may delegate equals to their actual implementatinos
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Changed PreStartupStoreUpgrader from AGPL to GPL license header to unbreak build
<nb> public final class TachyonFileSystemUtils { COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
SMALLFIX Fixed build error
<nb> public class DefaultServiceRegistry implements ServiceRegistry { public T getInstance ( ) { if ( instance == null ) { instance = create ( ) ; - assert instance != null ; + assert instance != null : String . format ( STRING0 , toString ( ) ) ; } return instance ; }
Improved assertion error message for a service registry create method returning null
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
removed unused import
<nb> public class DefaultConnectionProvider implements ConnectionProvider { settings . setProperty ( STRING0 , testAfterUse . toString ( ) ) ; settings . setProperty ( STRING1 , testSQL ) ; settings . setProperty ( STRING2 , getUsername ( ) ) ; - settings . setProperty ( STRING3 , getPassword ( ) ) ; + settin...
provider does not tolerate null passwords well
<nb> public class TestUserApiAddOn extends TestApiBase { } } - @ test ( enabled = true , groups = { STRING0 } ) + SINGLE + @ test ( enabled = false , groups = { STRING0 } ) public void testCancelBPWthAddon ( ) { try { <nb> public class TestUserApiAddOn extends TestApiBase { } } - @ test ( en...
Temporarily disabling a couple of tests that may have been fixed by others to be re enabled after merging
<nb> import NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> public class FieldValueAlertConditionTest extends AlertConditionTest { protected void fieldStatsShouldReturn ( Fi...
missed a different mock signature
<nb> import static NAMESPACE RCTEventEmitter . class , RCTNativeAppEventEmitter . class , AppRegistry . class , - com . facebook . react . bridge . Systrace . class , - HMRClient . class , - JSCSamplingProfiler . SamplingProfiler . class , - DebugComponentOwnershipModule . RCTDebugComponentOwnership . cla...
move some JS modules to debug only
<nb> public class PApplet extends Activity implements PConstants , Runnable { } + public void rect ( float a , float b , float c , float d , float r ) { + g . rect ( a , b , c , d , r ) ; + } + + + public void rect ( float a , float b , float c , float d , + float tl , float tr , float br , float bl...
add rounded rect to PApplet
<nb> public class MethodAnnotationAggregator { } else { SINGLE SINGLE - logger . error ( STRING0 + entry . getKey ( ) + STRING1 + c + STRING2 + entry . getValue ( ) ) ; + throw new RuntimeException ( STRING0 + entry . getKey ( ) + STRING1 + c + STRING2 + entry . getValue ( ) ) ; } } }
Change error message to an exception
<nb> public class MBeanUtils { COMMENT COMMENT private static String exceptions [ ] [ ] = { - { STRING0 , - STRING1 } , - { STRING2 , - STRING3 } , - { STRING4 , - STRING5 } , - { STRING6 , - STRING7 } , - { STRING8 , - STRING9 } , { STRING10 , STRING5 } , { STRING11 ,
Remove classes that are no longer in the source tree
<nb> public class ScriptImpl implements Script { return null ; } if ( result . getException ( ) != null ) { - throw new ScriptExecutionException ( STRING0 , result . getException ( ) ) ; + throw new ScriptExecutionException ( STRING1 , result . getException ( ) ) ; } return result . getResult ( ) ; } ca...
corrected logging message
<nb> public class SimpleHttpProtocol implements WebSocketProtocol , Serializable { } Map < String , Object > m = new HashMap < String , Object > ( ) ; m . put ( FrameworkConfig . WEBSOCKET_SUBPROTOCOL , FrameworkConfig . SIMPLE_HTTP_OVER_WEBSOCKET ) ; + SINGLE + m . putAll ( resource . getRequest ( ) . attrib...
Propagate the original attributes
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; public class JmsExchange extends DefaultExchange { private JmsBinding binding ; - public JmsExchange ( JmsEndpoint endpoint , ExchangePattern pattern ,...
revert change from context to JmsEndpoint an Endpoint is sufficient and allows resue from activemq camel component
<nb> import NAMESPACE ; public final class FileSystemMaster extends AbstractMaster { private static final Logger LOG = LoggerFactory . getLogger ( Constants . LOGGER_TYPE ) ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COM...
Add javadoc for fsm conventions
<nb> public class TerasologyEngine implements GameEngine { moduleSecurityManager . addAPIPackage ( STRING0 ) ; moduleSecurityManager . addAPIPackage ( STRING1 ) ; moduleSecurityManager . addAPIPackage ( STRING2 ) ; + moduleSecurityManager . addAPIClass ( com . esotericsoftware . reflectasm . MethodAccess . clas...
Added api access to ReflectASM s MethodAccess for event handling
<nb> import NAMESPACE import NAMESPACE ; public class FizzBuzz { - public void fizzbuzz ( int nFizzBuzzUpperLimit ) { + public void fizzBuzz ( int nFizzBuzzUpperLimit ) { final FizzBuzzSolutionStrategyFactory mySolutionStrategyFactory = new EnterpriseGradeFizzBuzzSolutionStrategyFactory ( ) ; final Fizz...
Better naming convention
<nb> public class Daemon implements Runnable , Stoppable { COMMENT COMMENT public void start ( ) { - SINGLE lifecycleLock . lock ( ) ; try { if ( started ) {
Removing Szczepan s comment about explicit lock vs synchronised after discussion
<nb> import NAMESPACE ; public class TaskInternalServiceRegistry extends DefaultServiceRegistry implements ServiceRegistryFactory { private final ProjectInternal project ; private final TaskInternal taskInternal ; - private TaskStatusNagger taskStatusNagger ; public TaskInternalServiceRegistry ( ServiceRegi...
remove unused field
<nb> public abstract class MLUpdate < M > implements BatchLayerUpdate < Object , M , String > { SINGLE Path bestModelPath = new Path ( finalPath , MODEL_FILE_NAME ) ; - FileStatus bestModelPathFS = fs . getFileStatus ( bestModelPath ) ; - if ( bestModelPathFS != null ) { SINGLE + if ( fs . exists ( bestMode...
Can t use getFileStatus null to determine file existence use exists
<nb> abstract class DnsNameResolverContext < T > { return null ; } - return name . substring ( NUMBER0 , name . length ( ) - NUMBER1 ) ; + return name . toString ( ) ; } finally { buf . resetReaderIndex ( ) ; }
Fix dns A CNAME resolution bug
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; public class TagViewFragment extends TaskListFragment { <nb> public class TagViewFragment extends TaskListFragment { } private void showListSettingsPopover ( ) { + if ( ! Astr...
Fixed a potential double popup
<nb> public class Activity extends ContextThemeWrapper COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix a variable name reference in Activity docs
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT COMMENT COMMENT public class DirectComponent < E extends Exchange > implements Component < E > { <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT COMMENT COMMENT public class DirectEndpoint < E exten...
removed old XBean references
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Fix import after okhttp update
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import static NAMESPACE ; import static NAMESPACE ; @ clusterscope ( scope = Scope . TEST , numDataNodes = NUMBER0 ) + @ lucenetestcase.awaitsfix ( bu...
add an awaitFix to IndicesLifecycleListenerTests
<nb> public class SimpleSecurityManager implements ServerSecurityManager { private void audit ( String level , AuditManager auditManager , Principal userPrincipal ) { AuditEvent auditEvent = new AuditEvent ( AuditLevel . SUCCESS ) ; Map < String , Object > ctxMap = new HashMap < String , Object > ( ) ; - ctxMap...
Use the getName method of Principal rather than relying in toString
<nb> public class TableInputFormat implements InputFormat < PactRecord , TableInputSplit this . hbaseKey = new HBaseKey ( ) ; this . hbaseResult = new HBaseResult ( ) ; + + endReached = false ; } COMMENT
fixed TableInputFormat returns no records when re opened with a new split
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ConstantPoolTest { TestConstant [ ] array = set . toArray ( new TestConstant [ NUMBER0 ] ) ; assertThat ( array . length , is ( NUMBER0 ) ) ; + + SING...
Fix a ConstantPoolTest failure
<nb> package NAMESPACE ; import NAMESPACE ; +
fix missing line return at EOF
<nb> import NAMESPACE ; public class StringToolsTest extends TestCase { public void testAssureSet ( ) { + + fail ( STRING0 ) ; + String s = STRING1 ; try { StringTools . assureSet ( s , STRING2 ) ;
adding a fake failure for testing CI
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SessionManager extends BasicModule { return false ; } - boolean anonymous = session . getAuthToken ( ) . isAnonymous ( ) ; + AuthToken authToken = session...
Fixed NPE when closing session that never authenticated
<nb> import NAMESPACE ; COMMENT COMMENT @ runwith ( Suite . class ) - @ suite.suiteclasses ( { VanillaRegistryTests . class , FreezingTests . class , SubstitutionRemoveRestoreTest . class , SubstitutionInjectionTest . class } ) + @ suite.suiteclasses ( { VanillaRegistryTests . class , FreezingTests . class , ...
Add the new tests into the suite
<nb> public class ChangesViewManager implements ChangesViewI , JDOMExternalizable , Pro } public void projectClosed ( ) { + PropertiesComponent . getInstance ( ) . setValue ( DETAILS_SPLITTER_PROPORTION , String . valueOf ( mySplitter . getProportion ( ) ) ) ; if ( myToggleDetailsAction . isSelected ( null ) ...
save splitter proportion in projectClosed not in dispose
<nb> public class CipherReadBenchmark extends SimpleBenchmark { private byte [ ] generateCipherText ( NativeGCMCipherHelper gcmHelper ) throws Exception { ByteArrayOutputStream cipherText = new ByteArrayOutputStream ( ) ; - OutputStream out = gcmHelper . getOutputStream ( cipherText ) ; + OutputStream out = g...
Fix benchmark app code
<nb> public class ConfigureMapMenu { } static String [ ] mapNamesIds = new String [ ] { STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 , STRING7 , STRING8 , STRING9 , STRING10 , STRING11 , STRING12 , STRING13 , - STRING14 , STRING15 , STRING16 , STRING17 , STRING18 , STRING19 , STRING20 , S...
Add lt to configure map menu
<nb> public enum DoubleConstant implements StackManipulation { ZERO ( Opcodes . DCONST_0 ) , ONE ( Opcodes . DCONST_1 ) ; - private static final StackManipulation . Size SIZE = StackSize . SINGLE . toIncreasingSize ( ) ; + private static final StackManipulation . Size SIZE = StackSize . DOUBLE . toIncreasingS...
Fixed compilation error in test case and fixed size of double typed constants
<nb> public class ControllerActionTransformer implements GrailsArtefactClassInjector , @ override public void performInjectionOnAnnotatedClass ( SourceUnit source , ClassNode classNode ) { - performInjection ( source , classNode ) ; + performInjectionOnAnnotatedClass ( source , null , classNode ) ; } pr...
fix failing tests
<nb> import NAMESPACE ; public class YammerMessagesConsumerOptionTest extends YammerComponentTestSupport { - private static final String YAMMER_MESSAGES_CONSUMER = STRING0 ; + private static final String YAMMER_MESSAGES_CONSUMER = STRING1 + + STRING2 ; @ test public void testOptions ( ) throws Excepti...
fixed CS error
<nb> public class SemanticGraph implements Serializable { return CollectionUtils . toList ( outgoingEdgeIterable ( v ) ) ; } - private List < SemanticGraphEdge > incomingEdgeList ( IndexedWord v ) { + public List < SemanticGraphEdge > incomingEdgeList ( IndexedWord v ) { return CollectionUtils . toList ( in...
Fix private public
<nb> public class TargetMethodAnnotationDrivenBinder implements MethodDelegationBinde COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT Iterator < T > makeIterator ( TypeDescription typeDescription , MethodDescription source , MethodDescription t...
Added missing javadoc for parameters
<nb> public final class BlockIdTest { COMMENT COMMENT - COMMENT + COMMENT COMMENT @ test public void createBlockIdWithMaxSequenceNumberTest ( ) { <nb> public class GlusterFSUnderFileSystem extends HdfsUnderFileSystem { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public GlusterFSU...
Incorporated PR comments
<nb> public class PrimitiveValue } COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT public String toString ( ) { <nb> public class PrimitiveValue throw new IllegalArgumentException ( STRING0 ) ; } } - + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + CO...
added some incomplere javadoc for PrimitiveValue methods
<nb> final class TreeSync extends Thread { LOG . debug ( STRING0 + thread_id + STRING1 + UniqueId . uidToString ( start_row ) ) ; LOG . debug ( STRING0 + thread_id + STRING2 + UniqueId . uidToString ( end_row ) ) ; - final Scanner scanner = tsdb . getClient ( ) . newScanner ( tsdb . uidTable ( ) ) ; + final S...
Fix scanner table name in TreeSync java so that it s looking at the meta data
<nb> public class DaemonRegistryServices extends DefaultServiceRegistry { private final Cache < File , DaemonRegistry > daemonRegistryCache ; private static final Map < File , DaemonRegistry > REGISTRY_STORAGE = new HashMap < File , DaemonRegistry > ( ) ; + private static final Cache < File , DaemonRegistry > R...
Share the daemon registry cache across daemon registry services instances to ensure serialised access to the cache storage
<nb> class ConnectionPageGeneral extends ActiveWizardPage < ConnectionWizard > { isolationLevel . setEnabled ( ! autocommit . getSelection ( ) ) ; supportedLevels . clear ( ) ; DBPTransactionIsolation defaultLevel = dataSourceDescriptor . getDefaultTransactionsIsolation ( ) ; - for ( DBPTransactionIsolation lev...
MongoDB secured connections
<nb> import NAMESPACE ; COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT public class FileUtils { <nb> public class FileUtils { COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT - public static void createDir ( File file ) throws IOException { - file . mkdi...
Change FileUtils to be consistent with convention
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public class ReactiveDialog < T > extends DialogFragment { + public class ReactiveDialog < T > extends RxDialogFragment { private static final String REACTIVE_DIALOG_KEY = STRING0 ;
Add Rx utilities to ReactiveDialog
<nb> public class XPrivacy implements IXposedHookLoadPackage , IXposedHookZygoteInit { SINGLE hookAll ( XCamera . getInstances ( ) ) ; - SINGLE - hookAll ( XClipboardManager . getInstances ( null ) ) ; - SINGLE hookAll ( XConnectivityManager . getInstances ( ) ) ;
Remove static hooking of clipboard manager again
<nb> public class JedisSlotBasedConnectionHandler extends @ override public void assignSlotToNode ( int slot , HostAndPort targetNode ) { super . assignSlotToNode ( slot , targetNode ) ; - getConnectionFromSlot ( slot ) ; } @ override <nb> public class JedisSlotBasedConnectionHandler extends if ( conn...
Remove unnecessary connection allocation
<nb> public class SpongeWorldEdit { WorldEdit . getInstance ( ) . getEventBus ( ) . post ( new PlatformReadyEvent ( ) ) ; } - private boolean ignoreLeftClickAir = false ; - @ listener public void onPlayerInteract ( InteractBlockEvent event , @ root Player spongePlayer ) { if ( platform == null ) { <nb...
Disable left click air task creation in Sponge
<nb> public class UberRDotJava extends AbstractBuildRule implements @ override public ImmutableList < Step > getBuildSteps ( BuildContext context , - final BuildableContext buildableContext - ) { + final BuildableContext buildableContext ) { ImmutableList . Builder < Step > steps = ImmutableList . builder...
super easy Fix a style nit
<nb> public abstract class AbstractAuthenticationProcessingFilter extends GenericFilt Assert . notNull ( failureHandler , STRING0 ) ; this . failureHandler = failureHandler ; } + + public AuthenticationSuccessHandler getSuccessHandler ( ) { + return successHandler ; + } + + public AuthenticationFailur...
Added getters for success and failure handlers to AbstractAuthenticationProcessingFilter
<nb> public class BootStrapper COMMENT COMMENT COMMENT - public static Collection < Token > getBootstrapTokens ( final TokenMetadata metadata , Map < InetAddress , Double > load ) throws ConfigurationException + public static Collection < Token > getBootstrapTokens ( final TokenMetadata metadata ) throws Conf...
remove dead load parm to getBootstrapTokens
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ExpressionScriptEngineService extends AbstractComponent implements @ override public Expression run ( ) { try { + SINGLE + AccessControl...
do expressions consistently with other engines
<nb> public class FillableLoaderPage extends Fragment implements OnStateChangeListene fillableLoader . setPercentage ( progress ) ; } - public void onStartTrackingTouch ( SeekBar seekBar ) { } + public void onStartTrackingTouch ( SeekBar seekBar ) { } - public void onStopTrackingTouch ( SeekBar seekBar ) ...
Fixed minor checkstyle warnings
<nb> public class TachyonFileSystem extends AbstractTachyonFileSystem { public long createEmptyFile ( TachyonURI path ) throws IOException , InvalidPathException , FileAlreadyExistException , BlockInfoException { ClientOptions options = ClientOptions . defaults ( ) ; - long fileId = super . create ( path , opti...
Reuse logic in overloaded methods
<nb> public class OFunctionManagerImpl implements OFunctionManager { } public void load ( ) { - SINGLE - final ODatabaseRecord db = ODatabaseRecordThreadLocal . INSTANCE . get ( ) ; - if ( db . getMetadata ( ) . getSchema ( ) . existsClass ( STRING0 ) ) { - List < ODocument > result = db . query ( new OSQ...
removed auto reload of functions at every db open
<nb> public class MapperQueryParser extends QueryParser { if ( termStr . equals ( STRING0 ) ) { SINGLE if ( STRING0 . equals ( field ) || Objects . equal ( field , this . field ) ) { - return newMatchAllDocsQuery ( ) ; + String actualField = field ; + if ( actualField == null ) { + actualField = this . fi...
Wildcard query on non existent field matches all documents
<nb> public class TextEditingTargetNotebook { SINGLE int row = chunk . getEnd ( ) . getRow ( ) ; + + SINGLE + if ( ! maximizedPane_ ) + { + pSourceWindowManager_ . get ( ) . maximizeSourcePaneIfNecessary ( ) ; + maximizedPane_ = true ; + } String chunkId = STRING0 ; String setupCrc32 = STRING0...
maximize pane on chunk execution once per session
<nb> public class DrawableContainer extends Drawable implements Drawable . Callback { } if ( mCurrDrawable != null ) { mCurrDrawable . jumpToCurrentState ( ) ; + mCurrDrawable . setAlpha ( mAlpha ) ; } if ( mExitAnimationEnd != NUMBER0 ) { mExitAnimationEnd = NUMBER0 ;
Finish any enter animation when jumping to state
<nb> public class SignInFragment extends AbstractFragment implements TextWatcher { } protected void showSelfHostedSignInForm ( ) { + endProgress ( ) ; mUrlButtonLayout . setVisibility ( View . VISIBLE ) ; mAddSelfHostedButton . setText ( getString ( R . string . nux_oops_not_selfhosted_blog ) ) ; showPass...
Showing selfhosted if the email is not in wordpress com
<nb> public class GeneratedMethodBinding extends AbstractBinding implements IMethodBi @ override public String getKey ( ) { - throw new AssertionError ( STRING0 ) ; + StringBuilder sb = new StringBuilder ( STRING1 ) ; + sb . append ( declaringClass == null ? STRING2 : declaringClass . getKey ( ) ) ; + sb ...
Adds a useful getKey implementation to GeneratedMethodBinding
<nb> public class RealmObjectTests { } } - SINGLE + SINGLE + SINGLE @ test public void invalidSurrogates ( ) { String high = STRING0 ; <nb> public class RealmObjectTests { AllTypes highSurrogate = realm . createObject ( AllTypes . class ) ; highSurrogate . setColumnString ( high ) ; fail ( ) ;...
Don t use C style in Java
<nb> import NAMESPACE ; import NAMESPACE ; public class CommonToken implements WritableToken , Serializable { + protected static final Pair < TokenSource , CharStream > EMPTY_SOURCE = + new Pair < TokenSource , CharStream > ( null , null ) ; + protected int type ; protected int line ; protected int ch...
Add a non null default source Pair for CommonToken
<nb> public final class BluetoothDevice implements Parcelable { try { return sService . getBondState ( this ) ; } catch ( RemoteException e ) { Log . e ( TAG , STRING0 , e ) ; } + catch ( NullPointerException npe ) { + SINGLE + SINGLE + Log . e ( TAG , STRING1 + + getAddress ( ) + STRING2 , npe ) ; + ...
handle NullPointerException in cases where a proxy
<nb> public abstract class FilterBase implements Filter { } } - @ override - public void destroy ( ) { - SINGLE - } - COMMENT COMMENT COMMENT
Remove unnecessary code
<nb> final class GraphHandler implements HttpRpc { private static final Logger LOG = LoggerFactory . getLogger ( GraphHandler . class ) ; - private static final boolean IS_WINDOWS = - System . getProperty ( STRING0 ) . contains ( STRING1 ) ; - + private static final boolean IS_WINDOWS = + System . getPr...
Provide a default value for os name to avoid NPE in some cases
<nb> public class LightNode extends Node { lightControl . setControlDir ( controlDir ) ; } - public void setCamera ( Light light ) { + public void setLight ( Light light ) { lightControl . setLight ( light ) ; } <nb> public class LightNode extends Node { return lightControl . getControlDir ( ) ; }...
Fixed silly copy paste mistake in LightNode
<nb> public class JoglGL implements GL , GL2 , GL3 , GL4 { @ override public int glGetAttribLocation ( int param1 , String param2 ) { - SINGLE - return GLContext . getCurrentGL ( ) . getGL2ES2 ( ) . glGetAttribLocation ( param1 , param2 + STRING0 ) ; + SINGLE + return GLContext . getCurrentGL ( ) . getGL2...
The JOGL backend doesn t need null terminated strings for the attributes and the uniforms
<nb> public class JarFileSystemImpl extends JarFileSystem implements ApplicationCompo } public String extractRootPath ( @ notnull final String path ) { - return path . substring ( NUMBER0 , path . indexOf ( JAR_SEPARATOR ) + JAR_SEPARATOR . length ( ) ) ; + final int jarSeparatorIndex = path . indexOf ( JAR_S...
jar file find assertion
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> class FormatProcessor { @ notnull final CommonCodeStyleSettings . IndentOptions options ) { if ( oldIndent . equals ( newIndent ) ) return NUMBER0 ; - if ( options . USE_TAB_CHARACTER ) { - return ( newIndent . tabs - oldIndent . getT...
Use tabs option support
<nb> public class Style { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT - public Builder setTextColor ( int textColor ) { - this . textColorResourceId = textColor ; + public Builder setTextColor ( int textColorResourceId ) { + this . textColorResourceId = textColorResourceId ; re...
Fix style builder parameter name
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class UIDisplayElement { return unitPositionY ; } + public Vector2i getDisplaySize ( ) { + return new Vector2i ( D...
Add getDisplaySize to UIDisplayElement to remove lwjgl dependency
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class FormAuthModule extends TomcatAuthModule { } SINGLE - MessageBytes uriMB = MessageBytes . newInstance ( ) ; - CharChun...
Remove unnecessary code
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; public class Particle { <nb> public class Particle { mMatrix . postRotate ( mRotation , mBitmapHalfWidth , mBitmapHalfHeight ) ; mMatrix . postScale ( mScale , mScale , mBitmapHalfWidth , mBitmapHal...
removed debug log
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT public class SlidingTimeWindows extends WindowAssigner < Object , TimeWindow > { <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT ...
javaDocs Fix JavaDoc examples in tumbling and sliding time windows
<nb> public final class Ops { public static final Operator < Number > NUMCAST = new OperatorImpl < Number > ( NS , STRING0 ) ; - public static final Operator < String > STRING_CAST = new OperatorImpl < String > ( NS , STRING1 ) ; + public static final Operator < String > STRING_CAST = new OperatorImpl < Strin...
Fix typo in STRING_CAST operator
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class PipeItemsWood extends Pipe < PipeTransportItems > implements I...
Missed a line
<nb> final class PartitionStateGeneratorImpl implements PartitionStateGenerator { void initialize ( Address [ ] [ ] state ) ; } - private class EmptyStateInitializer implements StateInitializer { + private static class EmptyStateInitializer implements StateInitializer { @ override public void initialize (...
Made inner classes of PartitionGenerateImpl static where possible
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT public class SSLContextParametersSecureP...
Fixed CS errors in camel http
<nb> public class Searches { public static final String AGG_HISTOGRAM = STRING0 ; public static final String AGG_EXTENDED_STATS = STRING1 ; - public static enum TermsStatsOrder { + public enum TermsStatsOrder { TERM , REVERSE_TERM , COUNT , <nb> public class Searches { REVERSE_MEAN } - public ...
Remove unnecessary static qualifiers from enums