diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public abstract class BaseRunConfigurationAction extends ActionGroup { final String actionName = configuration instanceof LocatableConfiguration ? StringUtil . unquoteString ( suggestRunActionName ( ( LocatableConfiguration ) configuration ) ) : configurationType . getDisplayName ( ) ; - final AnAction anA...
more specific run configuration icon used in sub menu
<nb> public interface UserDetails extends Serializable { Collection < ? extends GrantedAuthority > getAuthorities ( ) ; COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Remove additional incorrect javadoc from UserDetails getPassword
<nb> public class CAnalyzerFactory extends FileAnalyzerFactory { STRING0 , SINGLE STRING1 , SINGLE STRING2 , + STRING3 , } ; public CAnalyzerFactory ( ) { <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE...
add hxx as filename extension for c headers allow to configure extensions
<nb> public class ConnectTraktTask extends AsyncTask < String , Void , Integer > { SINGLE trakt . setAuthentication ( username , password ) ; - SINGLE + SINGLE + SINGLE + SINGLE PreferenceManager . getDefaultSharedPreferences ( mContext ) . edit ( ) - . putBoolean ( TraktSettings . KEY_HAS_MERGED_MOVI...
Reset next full trakt sync when connecting to trakt
<nb> package NAMESPACE ; COMMENT COMMENT COMMENT - abstract class EntityIndex implements Comparable < EntityIndex > { + abstract class EntityIndex implements Comparable < EntityIndex > , java . io . Serializable { + private static final long serialVersionUID = NUMBER0 ; private int start = - NUMBER1 ; p...
fixed deserialization problem
<nb> public abstract class ViewGroup extends View implements ViewParent , ViewManager COMMENT COMMENT COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Fully qualify javadoc links and make the tools happy
<nb> public class SystemPublicMetrics implements PublicMetrics , Ordered { ( long ) threadMxBean . getPeakThreadCount ( ) ) ) ; result . add ( new Metric < Long > ( STRING0 , ( long ) threadMxBean . getDaemonThreadCount ( ) ) ) ; + result . add ( new Metric < Long > ( STRING1 , + threadMxBean . getTotalStarte...
Add thread total started count to SystemPublicMetrics
<nb> public class PyParameterInfoHandler implements ParameterInfoHandler < PyArgumentLi public PyArgumentList findElementForParameterInfo ( final CreateParameterInfoContext context ) { PyArgumentList arglist = findArgumentList ( context ) ; if ( arglist != null ) { - CallArgumentsMapping result = arglist . anal...
use proper type eval context for parameter info popup
<nb> public class FileComponentTest extends OSGiIntegrationTestSupport { protected RouteBuilder createRouteBuilder ( ) { return new RouteBuilder ( ) { public void configure ( ) { - from ( STRING0 ) . to ( STRING1 ) ; - from ( STRING1 ) . to ( STRING2 ) ; + from ( STRING0 ) . to ( STRING3 ) ; + from ( STRI...
Fix the typo of the FileComponentTest
<nb> package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; COMMENT COMMENT COMMENT public class ProxyHandlerSSLTest extends TestCase { + COMMENT private Server server ; ...
Commented out test until passes
<nb> public class DeleteHandler extends DataHandler { return mDatabase . delete ( tableName , getWhereClause ( conditions ) , getWhereArgs ( conditions ) ) ; } - + + @ suppresswarnings ( STRING0 ) int onDeleteAll ( Class < ? > modelClass , String . . . conditions ) { BaseUtility . checkConditionsCorrect...
Uncheck the generic converting
<nb> public final class GlideExecutor extends ThreadPoolExecutor { COMMENT COMMENT public static int calculateBestThreadCount ( ) { + SINGLE + SINGLE + SINGLE + ThreadPolicy originalPolicy = StrictMode . allowThreadDiskReads ( ) ; File [ ] cpus = null ; try { File cpuInfo = new File ( CPU_LOCATION )...
Suppress strict mode from calculateBestThreadCount
<nb> public interface TelephonyProperties COMMENT COMMENT static final String PROPERTY_TEST_CSIM = STRING0 ; - - COMMENT - COMMENT - COMMENT - static final String PROPERTY_IMS_REG_REQUIRED = STRING1 ; }
Remove unused persist radio imsregrequired
<nb> public class Table implements TableOrView , TableSchema { } } + @ override public void pivot ( long stringCol , long intCol , PivotType pivotType , Table result ) { nativePivot ( nativePtr , stringCol , intCol , pivotType . value , result . nativePtr ) ; } <nb> package NAMESPACE ; import NAMESPAC...
added pivot method to TableOrView interface
<nb> public class FavoritesTreeFragment extends OsmandExpandableListFragment { MenuItem mi = createMenuItem ( menu , SEARCH_ID , R . string . search_poi_filter , R . drawable . ic_action_search_dark , R . drawable . ic_action_search_dark , MenuItemCompat . SHOW_AS_ACTION_ALWAYS | MenuItemCompat . SHOW_AS_ACTION_COL...
Added method to customize search view for light theme
<nb> public class AdHocChatRoomYahooImpl } COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - public Message createMessage ( byte [ ] content , String contentType , - String contentEncoding , String subject ...
Remove unused method
<nb> public final class HttpServletRequestImpl implements HttpServletRequest { @ override public void login ( final String username , final String password ) throws ServletException { + if ( username == null || password == null ) { + throw UndertowServletMessages . MESSAGES . loginFailed ( ) ; + } Securit...
Prevent NPE in login with null username pw
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT COMMENT COMMENT public abstract class AbstractFrame extends JFrame {
added more javadoc
<nb> public class NioClientManager extends AbstractExecutionThreadService implements SINGLE SINGLE SINGLE - log . error ( STRING0 , Throwables . getRootCause ( e ) . getMessage ( ) ) ; + Throwable cause = Throwables . getRootCause ( e ) ; + log . error ( STRING1 , cause . getClass ( ) . getName ( ) , cause ...
Try slightly more useful error log in NioClientManager handleKey whilst still keeping it concise
<nb> public class WalletTest extends TestWithWallet { Address output = txns . get ( NUMBER0 ) . getOutput ( NUMBER0 ) . getAddressFromP2PKHScript ( params ) ; ECKey usedKey = wallet . findKeyFromPubHash ( output . getHash160 ( ) ) ; assertEquals ( goodKey . getCreationTimeSeconds ( ) , usedKey . getCreationTimeSe...
also unit test the creation time of a fresh key
<nb> public class SignalStrength implements Parcelable { int levelLteRsrp = NUMBER0 ; if ( mLteRsrp == - NUMBER1 ) levelLteRsrp = NUMBER0 ; - else if ( mLteRsrp >= - NUMBER2 ) levelLteRsrp = SIGNAL_STRENGTH_GREAT ; - else if ( mLteRsrp >= - NUMBER3 ) levelLteRsrp = SIGNAL_STRENGTH_GOOD ; - else if ( mLteRsr...
Adjust the mapping of LTE signal bars
<nb> class ServerThread extends Thread { } try { + lockSettings . systemReady ( ) ; + } catch ( Throwable e ) { + reportWtf ( STRING0 , e ) ; + } + + try { wm . systemReady ( ) ; } catch ( Throwable e ) { reportWtf ( STRING1 , e ) ; <nb> class ServerThread extends Thread { } catch ( Throwabl...
Call systemReady on the lock settings before doing so on the window manager
<nb> public class UnversionedViewDialog extends DialogWrapper { public UnversionedViewDialog ( final Project project ) { super ( project , true ) ; - setTitle ( STRING0 ) ; + setTitle ( STRING1 ) ; myProject = project ; final Runnable closer = new Runnable ( ) { public void run ( ) {
capitalize dialog title
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; public class StartDbWithShell { public static void main ( String [ ] args ) throws Exception { + String path = args . length > NUMBER0 ? args [ NUMBER0 ] : STRING0 ; GraphDatabaseService db = new...
Can take a path argument
<nb> public class ThreadProcessor implements AsyncProcessor , Service { } public boolean process ( final Exchange exchange , final AsyncCallback callback ) { + if ( shutdown . get ( ) ) { + throw new IllegalStateException ( STRING0 ) ; + } ProcessCall call = new ProcessCall ( exchange , callback ) ; exe...
Provide a better error message if process is called without the processor being started
<nb> public abstract class ContentProvider implements ComponentCallbacks2 { } SINGLE - if ( context . checkUriPermission ( uri , pid , uid , Intent . FLAG_GRANT_READ_URI_PERMISSION ) + final int callingUserId = UserHandle . getUserId ( uid ) ; + final Uri userUri = ( mSingleUser && ! UserHandle . isSameUser...
Fix singleUser provider grants
<nb> import NAMESPACE ; public class SpanishPronounDisambiguatorTest extends TestCase { - private void runTest ( SpanishPronounDisambiguator . PersonalPronounType expected , String verb , int i ) { + private void runTest ( SpanishPronounDisambiguator . PersonalPronounType expected , String verb , + int i ) ...
Fix outdated pronoun disambiguator test
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class PsiPackageImplementationHelperImpl extends PsiPackageImplementation final ProjectView projectView = ProjectView . getInstance ( project ) ; PsiDirectory [ ] dir...
do not switch view during package navigation
<nb> public class Select { Index index = null ; for ( int i = NUMBER0 ; i < indexs . size ( ) ; i ++ ) { index = indexs . get ( i ) ; - if ( index . getType ( ) != null ) { + if ( index . getType ( ) != null && index . getType ( ) . trim ( ) . length ( ) > NUMBER0 ) { list . add ( index . getType ( ) ) ; ...
fix no type to search
<nb> public class PhoneWindowManager implements WindowManagerPolicy { } final boolean showWhenLocked = ( attrs . flags & FLAG_SHOW_WHEN_LOCKED ) != NUMBER0 ; + final boolean dismissKeyguard = ( attrs . flags & FLAG_DISMISS_KEYGUARD ) != NUMBER0 ; if ( appWindow ) { - if ( showWhenLocked ) { + if ( showWhe...
Fix FLAG_DISMISS_KEYGUARD not working
<nb> public class JmsMessage extends DefaultMessage { } } - @ override - public JmsExchange getExchange ( ) { - return ( JmsExchange ) super . getExchange ( ) ; - } - + COMMENT COMMENT COMMENT <nb> public class JmsMessage extends DefaultMessage { @ override protected Object createBody ( ...
can t make assumptions about the Exchange anymore
<nb> public class SSBasedInspection extends BaseJavaLocalInspectionTool { } ) ; } + @ override + public void projectClosed ( Project project ) { + super . projectClosed ( project ) ; + compiledConfigurations = null ; + } + @ testonly public void setConfigurations ( final List < Configuration > con...
cleanup compiled configurations on project close
<nb> public class NetworkOwnershipTest extends TerasologyTestingEnvironment { clientNetComp . replicateMode = NetworkComponent . ReplicateMode . OWNER ; clientEntity = entityManager . create ( clientNetComp ) ; when ( client . getEntity ( ) ) . thenReturn ( clientEntity ) ; + when ( client . getId ( ) ) . thenR...
Fix NetworkOwnershipTest unit tests
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class FileAppenderFactory extends Abstract...
Removing maximum limit on archivedFileCount for file logging
<nb> public class DefaultUserProvider implements UserProvider { private static final String INSERT_USER = STRING0 + STRING1 ; + private static final String DELETE_USER_FLAGS = + STRING2 ; private static final String DELETE_USER_PROPS = STRING3 ; private static final String DELETE_USER = <nb> public cl...
Delete enries from ofUserProp when user is deleted patch by Peter Johnson
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SQLSerializer extends SerializerBase < SQLSerializer > { @ override public Void visit ( TemplateExpression < ? > expr , Void context ) { - if ( inJoin && expr instanceof RelationalFuncti...
Serialize Expressions TRUE and Expressions FALSE as boolean literals
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class TaskClassValidator implements TaskValidator , Action < Task > { new NestedBeanPropertyAnnotationHandler ( ) , new NoOpPrope...
Accept OptionValues as task property annotation
<nb> final class ClosureCodeRemoval implements CompilerPass { if ( firstArg == null ) { parent . replaceChild ( call , NodeUtil . newUndefinedNode ( call ) ) ; } else { - parent . replaceChild ( call , firstArg . detachFromParent ( ) ) ; + Node replacement = firstArg . detachFromParent ( ) ; + replacement ....
When removing asserts preserve the assert tightened type on the remaining expression
<nb> public class DbSupportFactory { } SINGLE - if ( databaseProductName . startsWith ( STRING0 ) ) { + if ( databaseProductName . startsWith ( STRING1 ) || databaseProductName . startsWith ( STRING2 ) ) { return new SybaseASEDbSupport ( connection ) ; } if ( databaseProductName . startsWith ( STRING3 )...
Fixed SAP Sybase ASE identification string
<nb> class TestModelControllerService extends ModelTestModelControllerService { null COMMENT , new ExtensionRegistry ( ProcessType . STANDALONE_SERVER , runningModeControl ) , false COMMENT , - null COMMENT , pathManagerService ) ; SINGLE <nb> class TestModelControllerService extends ModelTestModelContr...
Fix problems following rebase onto master
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class StudyCheckAction extends StudyActionWithShortcut { StudyCheckUtils . showTestResultPopUp ( STRING0 , MessageType . W...
save files before check
<nb> public class WindowManagerService extends IWindowManager . Stub } } - winAnimator . setSurfaceBoundariesLocked ( recoveringMemory ) ; + winAnimator . prepareSurfaceLocked ( recoveringMemory ) ; final AppWindowToken atoken = w . mAppToken ; if ( DEBUG_STARTING_WINDOW && atoken != null <nb> class W...
fix the flash caused by missing setMatrix when surface size changes
<nb> public class Http2UpgradeHandler extends AbstractStream implements InternalHttpU private static final byte [ ] SETTINGS_EMPTY = { NUMBER0 , NUMBER0 , NUMBER0 , NUMBER1 , NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 } ; private static final byte [ ] SETTINGS_ACK = { NUMBER0 , NUMBER0 , NUMBER0 , NUMBER1 , NU...
Add missing flags field from GOAWAY constant
<nb> public class MasterPasswordInputDialog currentPasswdField . getPassword ( ) ) ; } SINGLE - dialog . setVisible ( false ) ; + dialog . dispose ( ) ; } COMMENT
Closes completely the master password dialog when finished instead of just hiding it
<nb> public class FlickScrollPane extends Group implements Layout { boolean tap ( int x , int y ) { focus ( null , NUMBER0 ) ; if ( ! super . touchDown ( x , y , NUMBER0 ) ) return false ; + Actor actor = focusedActor [ NUMBER0 ] ; + toLocalCoordinates ( actor , point ) ; + actor . touchUp ( point . x , poi...
fixed FlickScrollPane tap yeah my previous fix was wrong
<nb> public class AdapterUtils { if ( parent instanceof RecyclerView ) { SINGLE return v ; - } else if ( v instanceof View ) { + } else if ( parent instanceof View ) { SINGLE return findParentViewHolderItemView ( ( View ) parent ) ; } else {
Fix a lint warned bug
<nb> public class UserService { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT - protected void afterLogin ( User user ) { + void afterLogin ( User user ) { Date lastLogin = user . getLastLogin ( ) ; Date now = new Date ( ) ;
Change visibility to package private
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; COMMENT COMMENT COMMENT public interface CommandCallable { - - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - Set < Character > getValueFlags ( ) ; COMMENT COMMENT <nb> public class SimpleDispat...
Removed CommandCallable getValueFlags
<nb> class SipWakeupTimer extends BroadcastReceiver { mEventQueue = null ; } - private synchronized boolean stopped ( ) { + private boolean stopped ( ) { if ( mEventQueue == null ) { Log . w ( TAG , STRING0 ) ; return true ; <nb> class SipWakeupTimer extends BroadcastReceiver { } @ override - ...
Synchronize SipWakeupTimer onReceive
<nb> public class ShadedJar extends DefaultTask { } COMMENT - COMMENT + COMMENT COMMENT @ input public Set < String > getKeepPackages ( ) {
Just fix a typo
<nb> public class EnterHandler extends EditorWriteActionHandler { return false ; } - iterator = highlighter . createIterator ( NUMBER0 ) ; Language language = iterator . getTokenType ( ) . getLanguage ( ) ; + iterator = highlighter . createIterator ( NUMBER0 ) ; int balance = NUMBER0 ; while ( ! itera...
enter handler fixed
<nb> public interface Future < T > extends Value < T > { static < T > Future < T > fromTry ( ExecutorService executorService , Try < ? extends T > result ) { Objects . requireNonNull ( executorService , STRING0 ) ; Objects . requireNonNull ( result , STRING1 ) ; - return Promise . fromTry ( executorService , re...
Added two type hints to make Eclipse ECJ happy
<nb> public class RequestDispatcherImpl implements RequestDispatcher { for ( Map . Entry < String , Deque < String > > entry : queryParameters . entrySet ( ) ) { if ( ! newQueryParameters . containsKey ( entry . getKey ( ) ) ) { newQueryParameters . put ( entry . getKey ( ) , new ArrayDeque < String > ( entry . g...
Don t overwite query parameters in RequestDispatcher
<nb> public class CommitHelper { } ) ; processor . doBeforeRefresh ( ) ; - SINGLE - SINGLE - processor . doVcsRefresh ( ) ; VirtualFileManager . getInstance ( ) . refresh ( true , processor . postRefresh ( ) ) ; AbstractVcsHelper . getInstanceChecked ( myProject ) . showErrors ( processor . getVcsExce...
commit no extra vcs refresh
<nb> public class AggregatorTest extends ContextTestSupport { protected RouteBuilder createRouteBuilder ( ) { return new RouteBuilder ( ) { public void configure ( ) { - SINGLE + SINGLE from ( STRING0 ) . aggregator ( header ( STRING1 ) ) . to ( STRING2 ) ; - SINGLE + SINGLE } } ; }
added snippet macros
<nb> public class DeadLetterChannelBuilder extends ErrorHandlerBuilderSupport { return this ; } + public DeadLetterChannelBuilder retriesExhaustedLogLevel ( LoggingLevel retriesExhaustedLogLevel ) { + getRedeliveryPolicy ( ) . setRetriesExhaustedLogLevel ( retriesExhaustedLogLevel ) ; + return this ; + } ...
Added missing fluent builders to DLC for Java DSL
<nb> public interface Constants { public static final long DEFAULT_TIMEOUT = NUMBER0 * NUMBER0 ; } - interface MapTypes { - - public final static byte MAP_TYPE_MAP = NUMBER1 ; - - public final static byte MAP_TYPE_SET = NUMBER2 ; - - public final static byte MAP_TYPE_LIST = NUMBER3 ; - - public ...
removed unused interface
<nb> public class LZFCompressor implements Compressor { public LZFCompressor ( ) { this . decoder = ChunkDecoderFactory . safeInstance ( ) ; - Loggers . getLogger ( LZFCompressor . class ) . debug ( STRING0 , - this . decoder . getClass ( ) . getSimpleName ( ) ) ; + Loggers . getLogger ( LZFCompressor . cla...
Fix logging statement
<nb> import static NAMESPACE ; public class RWLockTest { - private static ExecutorService executor ; @ beforeclass <nb> public class RWLockTest SINGLE Assert . assertTrue ( STRING0 , deadLockDetector . await ( NUMBER0 , TimeUnit . MILLISECONDS ) ) ; + + lockNode3 . releaseWriteLock ( client3Tr...
Cleans up threads after RWLockTest
<nb> public class NotebookServer extends WebSocketServer implements JobListenerFactor } private void updateNote ( WebSocket conn , Notebook notebook , Message fromMessage ) - throws SchedulerException { + throws SchedulerException , IOException { String noteId = ( String ) fromMessage . get ( STRING0 ) ; ...
persist note on update
<nb> public class PydevConsoleRunner extends AbstractConsoleRunnerWithHistory < PythonC public PydevConsoleRunner ( @ notnull final Project project , @ notnull Sdk sdk , @ notnull final PyConsoleType consoleType , @ nullable final String workingDir , - Map < String , String > environmentVariables , String [ ] s...
Restore console default statements exec
<nb> public class SystemTest extends TestCase { public void testGetEnv ( ) { Map < String , String > variables = System . getenv ( ) ; assertNotNull ( variables ) ; - assertFalse ( variables . keySet ( ) . isEmpty ( ) ) ; + if ( onMac ( ) ) { + assertFalse ( variables . keySet ( ) . isEmpty ( ) ) ; + } el...
Fixed System getEnv test on iOS
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Fixed some Javadoc formatting
<nb> public class KdTree < T extends KdTree . XYZPoint > implements Iterable < T > { } } - if ( ( medianIndex - NUMBER0 ) >= NUMBER1 && less . size ( ) > NUMBER1 ) { + if ( ( medianIndex - NUMBER0 >= NUMBER1 ) && less . size ( ) > NUMBER1 ) { node . lesser = createNode ( less , k , depth + NUMBER0 ) ; nod...
Found a small bug in KdTree
<nb> public class TicketIndexer { private String escape ( String value ) { if ( value . charAt ( NUMBER0 ) != STRING0 ) { - if ( value . indexOf ( STRING1 ) > - NUMBER1 || value . indexOf ( STRING2 ) > - NUMBER1 ) { - return STRING3 + value + STRING3 ; + for ( char c : value . toCharArray ( ) ) { + if ( !...
Quote all Lucene query args that have non alphanumeric characters
<nb> public class CreateVirtualEnvDialog extends IdeaDialog { ApplicationManager . getApplication ( ) . invokeLater ( new Runnable ( ) { @ override public void run ( ) { - packageManager . showInstallationError ( myMainPanel , STRING0 , e . toString ( ) ) ; + packageManager . showInstallationError ( getOwner ...
do not pass panel of already closed dialog as owner
<nb> public final class Bukkit { public static boolean getAllowFlight ( ) { return server . getAllowFlight ( ) ; } + + public static void shutdown ( ) { + server . shutdown ( ) ; + } } <nb> public interface Server { COMMENT COMMENT public boolean getAllowFlight ( ) ; + + COMMENT + COMMENT ...
Added method to shutdown the server
<nb> public abstract class BaseDirFinder { @ override public String toString ( ) { - return STRING0 + - STRING1 + baseDir + - STRING2 + resource + - STRING3 ; + return STRING0 + + STRING1 + baseDir + + STRING2 + resource + + STRING3 ; } @ override
appeasing the check style gods
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SignInFragment extends AbstractFragment implements TextWatcher { COMMENT COMMENT COMMENT - public void forceSelfHostedM...
Stop prefilling self hosted URL field with empty string
<nb> public class StaggeredGridView extends ExtendableListView { private static final String TAG = STRING0 ; private static final boolean DBG = false ; - private static final int DEFAUlT_COLUMNS_PORTRAIT = NUMBER0 ; + private static final int DEFAULT_COLUMNS_PORTRAIT = NUMBER0 ; private static final int DEF...
Fix constant typo
<nb> class QueryCacheConfigReadOnly extends QueryCacheConfig { } @ override - public void setCoalesce ( boolean coalesce ) { + public QueryCacheConfig setCoalesce ( boolean coalesce ) { throw new UnsupportedOperationException ( STRING0 + getName ( ) ) ; } }
Fixed return type of QueryCacheConfigReadOnly setCoalesce
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ;
Fix unused import
<nb> public class WifiStateMachine extends HierarchicalStateMachine { Log . d ( TAG , STRING0 + band ) ; if ( WifiNative . setBandCommand ( band ) ) { mFrequencyBand . set ( band ) ; + SINGLE + startScan ( true ) ; } else { Log . e ( TAG , STRING1 + band ) ; }
Update scan results when frequency band is set
<nb> public class BenchmarkRunner int headerSize = NUMBER0 ; int maxPixels = NUMBER1 * NUMBER2 ; SINGLE - int width = NUMBER3 ; - int maxHeight = maxPixels / width ; + + int maxHeight = NUMBER4 ; + int width = maxPixels / maxHeight ; int barThickness = NUMBER5 ; int barSpacing = NUMBER5 ;
adjust chart height to accomodate the newly added serializers
<nb> public class Job < T extends Keyed > extends Keyed { COMMENT COMMENT COMMENT - public Job < T > start ( final H2OCountedCompleter fjtask , long work , boolean restartTimer ) { + protected Job < T > start ( final H2OCountedCompleter fjtask , long work , boolean restartTimer ) { if ( work >= NUMBER0 ) ...
Make one more method protected
<nb> public class MessageSummary { public Object getField ( String key ) { return message . getField ( key ) ; } + + @ jsonignore + public Message getRawMessage ( ) { return message ; } }
Adding method to return raw message object
<nb> public class IQRouter extends BasicModule { Log . error ( STRING0 + originalPacket . toXML ( ) ) ; return ; } + if ( originalPacket . getFrom ( ) == null ) { + if ( Log . isDebugEnabled ( ) ) { + Log . debug ( STRING1 + originalPacket . toXML ( ) ) ; + } + return ; + } IQ reply = IQ . createRes...
Fix NPE when handling routing failures
<nb> public abstract class AbstractTicketRegistry implements TicketRegistry , TicketRe COMMENT COMMENT COMMENT - protected void cleanupTickets ( Stream < Ticket > ticketStream , LogoutManager logoutManager ) { + protected void cleanupTickets ( final Stream < Ticket > ticketStream , final LogoutManager logoutM...
Fix checkstyle errors
<nb> class TaskPositioner implements DimLayer . DimLayerUser { SINGLE SINGLE - private static final int SIDE_MARGIN_DIP = NUMBER0 ; + private static final int SIDE_MARGIN_DIP = NUMBER1 ; @ intdef ( flag = true , value = {
Increased side margin for showing docked stack dim layer
<nb> public final class TelecommConstants { STRING0 ; COMMENT - COMMENT + COMMENT COMMENT COMMENT public static final String EXTRA_CALL_ID = STRING1 ;
Fix the SDK build
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> COMMENT package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; public class ContentsUtil { - private ContentsUtil ( ) { - } - public static void addOrReplaceContent ( ContentManager manager , Co...
remove private constructor
<nb> public class ScalpelFrameLayout extends FrameLayout { SINGLE pointerTwo = INVALID_POINTER_ID ; multiTouchTracking = TRACKING_UNKNOWN ; - break ; } else if ( pointerTwo == pointerId ) { if ( DEBUG ) log ( STRING0 , pointerTwo ) ; pointerTwo = INVALID_POINTER_ID ;
Remove extra break statement
<nb> public class InMemoryGraphTest extends TitanGraphTest { } @ override + public void testConfiguration ( ) { } + + @ override public void testDataTypes ( ) { } @ override
exclude incompatible test case
<nb> import NAMESPACE ; 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 AgentControllerTest { } @ tes...
Ignore flaky test
<nb> public class PagesIndex int leftOffset = ( int ) leftSliceAddress ; long rightSliceAddress = sliceAddresses [ rightPosition ] ; - Slice : rightSlice = slices [ ( ( int ) ( rightSliceAddress > > NUMBER0 ) ) ] ; + Slice rightSlice = slices [ ( ( int ) ( rightSliceAddress > > NUMBER0 ) ) ] ; int rightOffs...
Fix random typo
<nb> public class Object { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class Object { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class Object { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT C...
Fixed incorrect param names
<nb> public class DefaultScriptPluginFactory implements ScriptPluginFactory { StatementExtractingScriptTransformer classpathScriptTransformer = new StatementExtractingScriptTransformer ( classpathClosureName , - new IsScriptBlockWithNameSpec ( classpathClosureName , PluginHandler . BLOCK_NAME ) + new IsScript...
Remove unnecessary constant
<nb> public class OAuthSignatureCalculator long timestamp = System . currentTimeMillis ( ) / NUMBER0 ; String signature = calculateSignature ( method , baseURL , timestamp , nonce , request . getParams ( ) , request . getQueryParams ( ) ) ; String headerValue = constructAuthHeader ( signature , nonce , timestamp ...
set auth header to make updating sig on replayed req easier
<nb> public class ActFmSyncThread { if ( serverMessageJson != null ) { ServerToClientMessage serverMessage = ServerToClientMessage . instantiateMessage ( serverMessageJson ) ; if ( serverMessage != null ) { - syncLog ( STRING0 + serverMessage . getClass ( ) . getSimpleName ( ) ) ; serverMessage . processMessa...
Made sync logging slightly more readable
<nb> public abstract class Neurons { final int w = idx + col ; if ( have_ada ) { - assert ( ! have_momenta ) ; final float grad2 = grad * grad ; avg_grad2 += grad2 ; float brate = computeAdaDeltaRateForWeight ( grad , w , adaxg , rho , eps ) ;
Remove assertion in hot loop
<nb> public class ImmediateAuthenticationMechanismFactory implements AuthenticationMe @ override public AuthenticationMechanism create ( String mechanismName , FormParserFactory formParserFactory , Map < String , String > properties ) { - return null ; + return authenticationMechanism ; } }
Fixed NPE and problem in which custom AuthenticationMechanisms aren t used
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class GallerySettingsActivity extends AppCompatActivity } } ; - @ targetapi ( Build . VERSION_CODES . KITKAT ) private voi...
Remove no longer needed TargetApi annotation
<nb> public class DefaultWayPropertySetSource implements WayPropertySetSource { setProperties ( props , STRING0 , StreetTraversalPermission . PEDESTRIAN_AND_BICYCLE , FLOAT0 , FLOAT0 ) ; setProperties ( props , STRING1 ) , - StreetTraversalPermission . PEDESTRAIN_AND_BICYCLE , FLOAT1 , FLOAT1 ) ; + StreetTrav...
Fixed misspelling of in last commit
<nb> public class CountryDetectorServiceTest extends AndroidTestCase { public void testAddRemoveListener ( ) throws RemoteException { CountryDetectorServiceTester serviceTester = new CountryDetectorServiceTester ( getContext ( ) ) ; - serviceTester . systemReady ( ) ; + serviceTester . systemRunning ( ) ; w...
Fix the build missed a renaming
<nb> public class PartitionManager { MemberImpl ownerMember = concurrentMapManager . getMember ( newOwner ) ; if ( ownerMember == null ) return ; partition . setReplicaAddress ( replicaIndex , newOwner ) ; - if ( replicaIndex == NUMBER0 ) { - concurrentMapManager . sendMigrationEvent ( false , migrationReques...
Send migration completed event after sending partition runtime state
<nb> public final class SamlService extends AbstractWebApplicationService { } LOGGER . debug ( STRING0 ) ; - LOGGER . debug ( String . format ( STRING1 , requestBody ) ) ; - LOGGER . debug ( String . format ( STRING2 , artifactId ) ) ; - LOGGER . debug ( String . format ( STRING3 , requestId ) ) ; + LOGGE...
Fixed saml tests with matching issue
<nb> public class MainActivity extends AppCompatActivity { } private void setupBlurView ( ) { - final float radius = NUMBER0 ; + final float radius = NUMBER0 f ; final View decorView = getWindow ( ) . getDecorView ( ) ; SINGLE
Add float symbol
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public interface HashArrayMappedTrie < K , V > extends java . lang . Iterable < Tuple2 < K , V > > { + interface HashArrayMappedTrie < K , V > extends java . lang . Iterable < Tuple2 < K , V > > { static < K , V > HashArrayMappedTrie < K , V > empty ( ) { ...
Made RedBlackTree and HashArrayMappedTrie package private
<nb> COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT package NAMESPACE ;
change period to semicolon show javadoc shows it in the one liner for package infos
<nb> public class LoggingWebSocketHandlerDecorator extends WebSocketHandlerDecorator @ override public void handleTransportError ( WebSocketSession session , Throwable exception ) throws Exception { - if ( logger . isDebugEnabled ( ) ) { - logger . debug ( STRING0 + session + STRING1 + exception ) ; - } -...
Adjust log level in LoggingWebSocketHandlerDecorator