diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public abstract class ChannelInboundMessageHandlerAdapter < I > } messageReceived ( ctx , ( I ) msg ) ; } catch ( Throwable t ) { - ctx . fireExceptionCaught ( t ) ; + exceptionCaught ( ctx , t ) ; } } } finally {
Fixed exception handling to call the exceptionCaught method in the current handler
<nb> public class JobProxy21 implements JobProxy { @ override public boolean isPlatformJobScheduled ( JobRequest request ) { - List < JobInfo > pendingJobs = mJobScheduler . getAllPendingJobs ( ) ; + List < JobInfo > pendingJobs ; + try { + pendingJobs = mJobScheduler . getAllPendingJobs ( ) ; + } catch...
Catch system NPE while getting all pending jobs
<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 ; import NAMESPACE ; import NAMESPACE ; import NAMESP...
Fix compilation of perf test
<nb> public class ShadowCookieSyncManager { public boolean synced ( ) { return synced ; } + + public void reset ( ) { + synced = false ; + } } <nb> public class CookieSyncManagerTest { } @ test - public void testSync ( ) { + public void testSyncAndReset ( ) { CookieSyncManager . createInst...
Added CookieSyncManager reset
<nb> COMMENT COMMENT COMMENT - package NAMESPACE ; + package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ;
Move ProtoType s test to its package
<nb> public class CommitListTable extends MultiSelectCellTable < CommitInfo > } } + @ suppresswarnings ( STRING0 ) private class GraphAndSubjectRenderer implements SafeHtmlRenderer < CommitInfo > { private GraphAndSubjectRenderer ( GraphTheme theme )
eliminate eclipse warnings
<nb> public class Roster implements Cacheable , Externalizable { if ( group . isUser ( jid ) ) { item . addSharedGroup ( group ) ; itemGroups . add ( group ) ; - item . setNickname ( UserNameManager . getUserName ( jid ) ) ; - broadcast ( item , true ) ; } else { item . addInvisibleSharedGroup ( group ) ;...
Revert original patch
<nb> public class AtlasTiledMapLoader extends atlas = resolver . getAtlas ( atlasHandle . path ( ) ) ; regionsName = atlasHandle . nameWithoutExtension ( ) ; - if ( parameter . forceTextureFilters ) { + if ( parameter != null && parameter . forceTextureFilters ) { for ( Texture texture : atlas . getTextures...
Add null parameter check before use
<nb> public class JsonFastParser extends JsonParserCharArray { int index = __index ; char currentChar ; boolean doubleFloat = false ; + boolean foundDot = false ; if ( minus && index + NUMBER0 < array . length ) { index ++ ; <nb> public class JsonFastParser extends JsonParserCharArray { break ; } el...
Ensure multiple decimal points caught when numbers lazily evaluated in the JsonFastParser
<nb> public class LinearLayoutManagerResizeTest extends BaseLinearLayoutManagerTest { if ( config . mOrientation == HORIZONTAL ) { container . setPadding ( NUMBER0 , NUMBER0 , container . getWidth ( ) / NUMBER1 , NUMBER0 ) ; } else { - container . setPadding ( NUMBER0 , NUMBER0 , NUMBER0 , container . getWidth ...
Fix LinearLayoutManagerResizeTest in landscape mode
<nb> public class ZooKeeperMasterModel implements MasterModel { final Map < String , Object > metadata = Maps . newHashMap ( ) ; metadata . put ( STRING0 , taskStatus . getState ( ) ) ; metadata . put ( STRING1 , previousJobStates ) ; + metadata . put ( STRING2 , taskStatus . getThrottled ( ) ) ; return opFac...
Include ThrottleState in deployment group metrics
<nb> public class MavenImportBuilder extends ProjectImportBuilder < MavenProjectModel . N } private void createImportProcessor ( ) { - myImportProcessor = new MavenImportProcessor ( getProjectToUpdate ( ) , getCoreState ( ) , getImporterPreferences ( ) , getArtifactPreferences ( ) ) ; + myImportProcessor = ne...
do not add maven modules to open project if it is not update
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SourceTask extends ConventionTask implements PatternFilterable { @ inputfiles @ skipwhenempty public FileTree getSource ( ) { - FileTree src = getProject ( ...
Undo use of Collections singletonList
<nb> public class LocalWebSocketConnection implements WebSocketConnection , LogicalCon private WebSocketPolicy policy = WebSocketPolicy . newServerPolicy ( ) ; private boolean open = false ; private IncomingFrames incoming ; + private IOState ioState = new IOState ( ) ; public LocalWebSocketConnection ( ) ...
Fixing harmless NPE seen during testing
<nb> public class AWSClient implements CloudClient { LOGGER . info ( String . format ( STRING0 , instanceId , region ) ) ; try { ModifyInstanceAttributeRequest request = new ModifyInstanceAttributeRequest ( ) ; + request . setInstanceId ( instanceId ) ; request . setGroups ( groups ) ; ec2Client ( ) . modif...
Set instance id in ModifyInstanceRequest
<nb> public class RenderScript { static File mCacheDir ; + SINGLE + SINGLE + static final long sMinorID = NUMBER0 ; + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public static long getMinorID ( ) { + return sMinorID ; + } + COMMENT COMMENT COMMENT
Add hidden minor version ID for support lib workarounds
<nb> public class KernelTransactionImplementation implements KernelTransaction , TxSta @ override public void markForTermination ( Status reason ) { + terminationReleaseLock . lock ( ) ; if ( ! canBeTerminated ( ) ) { return ; } int initialReuseCount = reuseCount ; - terminationReleaseLock . lock ...
Grab tx termination lock in beginning of markForTermination
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; COMMENT COMMENT
Removed unused import
<nb> public abstract class Metadata { return authority ; } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public void setAuthority ( String authority ) { this . authority = authority ; }
Add scary JavaDoc to Metadata setAuthority
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; COMMENT - @ tostring @ requiredargsconstructor + @ tostring public class Individual { - public final String label ; - public final double lon ; - public final double ...
make it possible to construct populations directly in Spring XML
<nb> public class WordCountTest extends TestUtil { private static class WordCount extends MRTask < WordCount > { static NonBlockingHashMap < VStr , VStr > WORDS ; - NonBlockingHashMap < VStr , VStr > _words ; static AtomicLong PROGRESS ; + transient NonBlockingHashMap < VStr , VStr > _words ; @ override...
Remove need for Java Serialization
<nb> public class EnglishGrammaticalRelations { STRING0 , SINGLE SINGLE - SINGLE + SINGLE STRING1 , STRING2 , STRING3 ,
Fix a comment
<nb> public class ORemoteConnectionManager implements OChannelListener { public void close ( ) { for ( Map . Entry < String , OResourcePool < String , OChannelBinaryAsynchClient > > entry : connections . entrySet ( ) ) { - entry . getValue ( ) . close ( ) ; + closePool ( entry . getValue ( ) ) ; } conne...
fixed wrong pool close that not properly clean the connections
<nb> COMMENT package NAMESPACE ; - enum HeadersMode { + public enum HeadersMode { SPDY_SYN_STREAM , SPDY_REPLY , SPDY_HEADERS , <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - final class Settings { + public final class Settings { COMMENT COMMENT COMMENT <nb> import NAMESPACE ; C...
Making a few classes interfaces within SPDY public so that the framing
<nb> import static NAMESPACE ; @ runwith ( Parameterized . class ) public class CrashTest { - static final int MIN_RUNTIME = NUMBER0 * NUMBER1 ; - static final int MAX_RUNTIME = NUMBER0 * NUMBER2 ; + static final int MIN_RUNTIME = NUMBER0 * NUMBER3 ; + static final int MAX_RUNTIME = NUMBER0 * NUMBER4 ; ...
make interval shorter
<nb> public abstract class AbstractTestQueries } @ test + public void testCorrelatedExistsSubqueries ( ) + { + String errorMsg = STRING0 ; + + assertQueryFails ( STRING1 , errorMsg ) ; + assertQueryFails ( STRING2 , errorMsg ) ; + assertQueryFails ( STRING3 , errorMsg ) ; + + SINGLE + assertQu...
Add unit tests for correlated EXISTS subquery
<nb> import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; - COMMENT - COMMENT - COMMENT public class LineStatusTrackerDrawing { private LineStatusTrackerDrawing ( ) { } <nb> public class LineStatusTrackerDrawing { } public int getEditorTextOffset ( ) { - return NUMBE...
do not use hardcoded constant
<nb> public class GitActionHandlerImpl implements GitActionHandler { new Task . Backgroundable ( myProject , STRING0 , false ) { @ override public void run ( @ notnull ProgressIndicator indicator ) { + callback . disableModifications ( ) ; GitLocalBranch currentBranch = myRepository . getCurrentBranch ( ) ; ...
disable modifications on the start of cherry pick
<nb> public final class SQLiteUtils { } } + catch ( NoSuchMethodException e ) { + throw new RuntimeException ( + STRING0 + type . getName ( ) + STRING1 + + STRING2 + + STRING3 + + STRING4 + + STRING5 + + STRING6 + ) ; + } catch ( Exception e ) { Log . e ( STRING7 , e ) ; }
Throw a runtime exception instead of silently failing when the
<nb> public final class AndroidExtension COMMENT COMMENT + COMMENT COMMENT + @ deprecated public static final String APKLIB = STRING0 ; COMMENT <nb> public class Apk private String [ ] metaIncludes ; COMMENT - COMMENT + COMMENT COMMENT private MetaInf metaInf ; <nb> import static N...
Deprecate APKLIB Replaced by AAR
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> abstract class SelectedValueComparator { PropertyEditor editor , Map < PropertyEditor , Object > convertedValueCache ) { String candidateDisplayString = ValueFormatter . getDisplayString ( candidate , editor , false ) ; - if ( boundValu...
SelectedValueComparator defensively handles null values in exhaustiveCompare
<nb> public class BottomSheetLayout extends FrameLayout { this . onSheetStateChangeListener = onSheetStateChangeListener ; } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public static boolean isTablet ( Context context ) { + return context . getResources ( ) . getBoolean ( R . boo...
Add public helper methods for retrieving BottomSheetLayout configs
<nb> import NAMESPACE COMMENT COMMENT public interface GrLiteral extends GrExpression , PsiLiteral { - void setStringValue ( String value ) ; } <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; public abstract class GrAbstractLiteral extends ...
remove unused method
<nb> public class Groupers public static int hash ( final Object obj ) { SINGLE - return obj . hashCode ( ) & NUMBER0 ; + SINGLE + final int code = obj . hashCode ( ) ; + return ( code ^ ( code > > > NUMBER1 ) ) & NUMBER0 ; } public static < KeyType extends Comparable < KeyType > > Iterator < Groupe...
Improve hash code distribution
<nb> public class RepositoriesPanel extends BasePanel { row . add ( new Label ( STRING0 , getString ( STRING1 ) ) ) ; } else { SINGLE - row . add ( new LinkPanel ( STRING2 , null , name , ProjectPage . class , WicketUtils . newProjectParameter ( name ) ) ) ; + row . add ( new LinkPanel ( STRING2 , null , name...
Fix broken project links
<nb> public class OperationRequestHandler implements CommandHandler , OperationCommand COMMENT COMMENT @ override - public void handle ( CommandContext ctx ) throws CommandFormatException { + public void handle ( CommandContext ctx ) { ModelControllerClient client = ctx . getModelControllerClient ( ) ; ...
remove useless throws clause from the method declaration
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - public class HarUtils { + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public final class HarUtils { private static final Logger LOGGER = Logger . getLogger ( HarUtils . class ) ;
Tidy up added JavaDoc to HarUtils and added final modifier
<nb> public class PyPackagingTest extends PyEnvTestCase { return null ; } - @ safevarargs private static < T > List < T > list ( T . . . xs ) { return Arrays . asList ( xs ) ; }
reverted SafeVarargs because of Oracle license restrictions
<nb> public class NotificationsSettings { getOtherSettings ( ) . put ( typeName , otherSetting ) ; break ; case DOTCOM : - JSONObject dotcomSetting = JSONUtils . queryJSON ( getDotcomSettings ( ) , typeName , new JSONObject ( ) ) ; - dotcomSetting . put ( settingName , newValue ) ; - getDotcomSettings ( ) ....
Fixed bug where DOTCOM json wasn t being update properly
<nb> public class ShibbolethPersonAttributeDao implements IPersonAttributeDao { COMMENT COMMENT - COMMENT - COMMENT COMMENT @ postconstruct public void init ( ) {
removed unneeded javadoc note
<nb> public class SqliteAndroidDatabaseType extends BaseSqliteDatabaseType implements SINGLE } - public String getDriverUrlPart ( ) { + public boolean isDatabaseUrlThisType ( String url , String dbTypePart ) { SINGLE - return null ; + return true ; } public String getDriverClassName ( ) {
Added better detection of JDBC database URLs
<nb> public class DrmInitDataTest extends TestCase { MoreAsserts . assertNotEqual ( drmInitData , testInitData ) ; SINGLE - testInitData = new DrmInitData ( DATA_1 , DATA_1 ) ; + testInitData = new DrmInitData ( DATA_1 , DATA_UNIVERSAL ) ; MoreAsserts . assertNotEqual ( drmInitData , testInitData ) ; }
Fix broken test
<nb> public class TestInvocationLog implements PipelineExtension , PeerExtension private TestLogger logger ; private String name ; + public TestInvocationLog ( final TestLogger logger ) + { + this ( logger , STRING0 ) ; + } + public TestInvocationLog ( final TestLogger logger , String name ) { thi...
Keeping old constructor
<nb> public abstract class DaemonAnalyzerTestCase extends CodeInsightTestCase { private static void appendHighlightInfosFromLineMarkers ( final List < HighlightInfo > result , final Collection < LineMarkerInfo > infoCollection ) { for ( LineMarkerInfo lineMarkerInfo : infoCollection ) { GutterIconRenderer gutterI...
provide overriden marker for javascript
<nb> public class MapActivity extends AccessibleActivity implements IMapLocationListe if ( mapLayers . getNavigationLayer ( ) . getPointToNavigate ( ) != null ) { if ( routingHelper . isRouteCalculated ( ) || routingHelper . isFollowingMode ( ) || routingHelper . isRouteBeingCalculated ( ) ) { routingHelper . set...
Fix usability issue
<nb> public abstract class HttpMessageDecoder extends ReplayingDecoder < HttpMessageDec } finally { checkpoint ( ) ; } - return null ; } case READ_INITIAL : { readInitial ( buffer ) ; - return null ; } case READ_HEADER : { readHeaders ( buffer ) ; <nb> public abstract class HttpMessageDecoder ex...
Reverted the unnecessary changes related with shutting FindBug up
<nb> public class EditorTextField extends JPanel implements DocumentListener , TextCom private final ArrayList < DocumentListener > myDocumentListeners = new ArrayList < DocumentListener > ( ) ; private boolean myIsListenerInstalled = false ; private boolean myIsViewer ; - private boolean myOneLineMode ; priv...
fixed after unsuccessful merge
<nb> public class PerforceHistoryParser implements HistoryParser { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fixed JavaDoc warning
<nb> import NAMESPACE ; public class DiffResult { - private Long idRoot = new Date ( ) . getTime ( ) ; + private String idRoot = String . valueOf ( new Date ( ) . getTime ( ) ) ; private int changeNumber = NUMBER0 ; private DatabaseSnapshot referenceSnapshot ; <nb> public class DiffResult { this . c...
allow settign of idRoot and overriding of id generation method
<nb> public class MasterInfo implements ImageWriter { if ( delInode . equals ( mRoot ) ) { continue ; } - InodeFolder parent = ( InodeFolder ) mInodes . get ( delInode . getParentId ( ) ) ; - parent . removeChild ( delInode ) ; + if ( delInode . isFile ( ) ) { String checkpointPath = ( ( InodeFile ) del...
Moved checkpoint deletion before InodeFolder deletion
<nb> public class WordPressDB { return id ; } + public void clearComments ( int blogID ) { + + db . delete ( COMMENTS_TABLE , STRING0 + blogID , null ) ; + + } + }
adding new method forgot it in last commit
<nb> import NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ;
added missing import from Hamcrest for containsString
<nb> public class ResolveImportUtil { COMMENT @ nullable public static PsiElement findImportedNameInsideModule ( @ notnull PyImportElement where , String name ) { - COMMENT - PointInImport point = getPointInImport ( where ) ; - if ( point . role == AS_NAME ) { - final PyReferenceExpression source = point ...
delete commented out code
<nb> public class DiffUtil { @ notnull private static JComponent createTitlePanel ( @ notnull String title ) { + if ( title . isEmpty ( ) ) title = STRING0 ; SINGLE return new JLabel ( title ) ; }
do not collapse title panel on empty title
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public abstract class AbstractPollingMessageListenerContainer extends AbstractMe this . receiveTimeout = receiveTimeout ; } + COMMENT + COMMENT + COMMENT + COMMENT + protected long getReceiveTimeout ( ) { + return this . recei...
DefaultMessageListenerContainer uses receiveTimeout for wait call on shutdown
<nb> public class OMultiCollectionIterator < T > implements Iterator < T > , Iterable < T > , OR @ override public boolean hasNext ( ) { if ( iteratorOfInternalCollections == null ) { - if ( sources . isEmpty ( ) ) + if ( sources == null || sources . isEmpty ( ) ) return false ; SINGLE
Fixed bug on empty results
<nb> public class ConnectivityManager { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix javadoc for the NetworkRequest version of requestNetwork
<nb> public class WorkDuration implements Serializable { static final int HOUR_POSITION_IN_LONG = NUMBER0 ; static final int MINUTE_POSITION_IN_LONG = NUMBER1 ; - public static enum UNIT { DAYS , HOURS , MINUTES } + public static enum UNIT { + DAYS , HOURS , MINUTES + } private int hoursInDay ;
Fix quality flaws
<nb> class OpenSearchXMLReader extends ZLXMLReaderAdapter { final OpenSearchDescription descr = new OpenSearchDescription ( template , indexOffset , pageOffset ) ; if ( descr . isValid ( ) ) { - myDescriptions . add ( descr ) ; + myDescriptions . add ( NUMBER0 , descr ) ; } } }
prefer opensearch xml
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT public class FileUtils { private static final Logger LOG = LoggerFactory . getLogger ( STRING0 ) ; <nb> public class FileUtils { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT public static void cr...
fix comments from gpang
<nb> public class RootConnector implements RepositoryConnector { private String getIdWithRepoName ( RepositoryConnector connector , RepositoryNode repositoryNode ) { String repositoryName = connector . getConfiguration ( ) . getName ( ) ; if ( ! repositoryNode . getId ( ) . startsWith ( STRING0 ) ) { - throw ne...
just fixed a typo
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MapInputRowPars...
use ImmutableList s factory method to build a defensive copy of dimensions
<nb> public class ProcessBuffer extends Buffer { private final Meter rejectedMessages ; private final Meter cachedMessages ; - private final MetricRegistry metricRegistry ; private final ServerStatus serverStatus ; @ assistedinject <nb> public class ProcessBuffer extends Buffer { BaseConfiguration con...
Record rejected messages due to reached input cache size
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class Project { } } ; - int exitCode = command . execute ( executionContext ) ; ...
Fix red background issue with buck project output
<nb> public class SchemaTableName { return schemaName + STRING0 + tableName ; } + + public SchemaTablePrefix toSchemaTablePrefix ( ) + { + return new SchemaTablePrefix ( schemaName , tableName ) ; + } }
Add SchemaTableName toSchemaTablePrefix method
<nb> public final class SloppyMath { COMMENT COMMENT COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Add comment on performance
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; COMMENT
Add missing headers
<nb> public class QueryParamsMap { private static final QueryParamsMap NULL = new NullQueryParamsMap ( ) ; + COMMENT + COMMENT + COMMENT private static final Pattern KEY_PATTERN = Pattern . compile ( STRING0 ) ; COMMENT
Add a doc comment
<nb> public class TempFileSystem extends NewVirtualFileSystem { } protected String extractRootPath ( @ notnull final String path ) { - return path . startsWith ( STRING0 ) ? STRING0 : STRING1 ; + SINGLE + return STRING0 ; } public int getRank ( ) {
allow findFileByPath to work correctly for TempFS
<nb> public class DebugLogs extends Activity { public void run ( ) { while ( updateLogs ) { try { - Log . d ( STRING0 , STRING1 ) ; + SINGLE final String logs = getLogs ( ) ; runOnUiThread ( new Runnable ( ) { @ override
removed debug log
<nb> public class CliHadoopIndexer implements Runnable description = STRING0 ) private String hadoopCoordinates = STRING1 ; + @ option ( name = STRING2 , + description = STRING3 ) + private List < String > hadoopDependencyCoordinates = Arrays . < String > asList ( STRING1 ) ; + @ inject private Extens...
update some comments on standalone hadoop indexer
<nb> public class MenuBar extends Widget implements PopupListener , HasAnimation , } } - if ( shownChildMenu != null + if ( vertical + && shownChildMenu != null && shownChildMenu == selectedItem . getSubMenu ( ) ) { shownChildMenu . onHide ( false ) ;
Fix menu popup suppression bug
<nb> public abstract class DataSet < T extends Entry > { private Typeface mValueTypeface ; COMMENT - protected ValueFormatter mValueFormatter ; + protected transient ValueFormatter mValueFormatter ; COMMENT protected AxisDependency mAxisDependency = AxisDependency . LEFT ;
Do not serialize ValueFormetter interface member variable
<nb> public class BridgePowerManager implements IPowerManager { } @ override + public void powerHint ( int hintId , int data ) { + SINGLE + } + + @ override public void crash ( String arg0 ) throws RemoteException { SINGLE }
Fix sdk build
<nb> package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Remove unused import from o e e Environment
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> abstract class AbstractTFS extends FileSystem { private Statistics mStatistics = null ; private TachyonFS mTFS = null ; private String mTachyonHeader = n...
Use the client context to get the conf
<nb> public class Favorite implements WebItem { url = source . readString ( ) ; title = source . readString ( ) ; favorite = source . readInt ( ) != NUMBER0 ; + time = source . readLong ( ) ; } @ override <nb> public class Favorite implements WebItem { dest . writeString ( url ) ; dest . writeString...
Persist favorite saved time
<nb> package NAMESPACE ; COMMENT class InputLeftCurlyOther { - COMMENT - void foo ( ) + COMMENT + void foo ( ) throws InterruptedException { int x = NUMBER0 ; int a = NUMBER1 ;
Fixed compilation errors
<nb> public class OsmandSettings { return DrivingRegion . CANADA ; } else if ( df . getCountry ( ) . equalsIgnoreCase ( Locale . JAPAN . getCountry ( ) ) ) { return DrivingRegion . JAPAN ; - } else if ( df . getCountry ( ) . equalsIgnoreCase ( Locale . AU . getCountry ( ) ) ) { + } else if ( df . getCountry (...
Fix Australia country code
<nb> public class RxtxChannel extends OioByteStreamChannel { RxtxDeviceAddress remote = ( RxtxDeviceAddress ) remoteAddress ; final CommPortIdentifier cpi = CommPortIdentifier . getPortIdentifier ( remote . value ( ) ) ; final CommPort commPort = cpi . open ( getClass ( ) . getName ( ) , NUMBER0 ) ; - + commP...
Apply receive timeout to commPort when using RxtxChannel
<nb> public class GitblitManager extends JFrame implements RegistrationsDialog . Regist EditRegistrationDialog dialog = new EditRegistrationDialog ( this , reg , true ) ; dialog . setLocationRelativeTo ( GitblitManager . this ) ; dialog . setVisible ( true ) ; - reg = dialog . getRegistration ( ) ; - if ( reg...
Preserve feed selections when not saving passwords
<nb> public class ZWaveThermostatSetpointCommandClass extends ZWaveCommandClass COMMENT COMMENT public SerialMessage getMessage ( SetpointType setpointType ) { + if ( setpointType == null ) { + return null ; + } + logger . debug ( STRING0 , this . getNode ( ) . getNodeId ( ) ) ; SerialMessage result =...
Fix NPE if setpointType is null
<nb> public class MessageExtractor { Html html = new Html ( part ) ; viewables . add ( html ) ; } + } else if ( part . getMimeType ( ) . equalsIgnoreCase ( STRING0 ) ) { + SINGLE } else { SINGLE attachments . add ( part ) ;
ignore application pgp signature parts for display
<nb> public class AggregatorType extends ProcessorType < ProcessorType > { AggregationStrategy strategy = createAggregationStrategy ( routeContext ) ; if ( getExpression ( ) == null ) { - throw new RuntimeCamelException ( STRING0 + - STRING1 ) ; + throw new IllegalArgumentException ( STRING2 + + STRING3 +...
Throw IllegalArgumentException instead of RuntimeCamelException
<nb> public class MediaServiceImpl try { res = java . awt . Toolkit . getDefaultToolkit ( ) . getScreenSize ( ) ; - res = null ; } catch ( NoClassDefFoundError e ) {
Fix bad commit
<nb> public class StandardSession if ( maxInactiveInterval >= NUMBER0 ) { long timeNow = System . currentTimeMillis ( ) ; - int timeIdle = ( int ) ( ( timeNow - thisAccessedTime ) / NUMBER1 ) ; + int timeIdle ; + if ( Globals . STRICT_SERVLET_COMPLIANCE ) { + timeIdle = ( int ) ( ( timeNow - lastAccessedT...
Use spec compliant session expiration in STRICT_SERVLET_COMPLIANCE mode
<nb> public class ResourcesTest { @ before public void setUp ( ) throws Exception { Robolectric . bindDefaultShadowClasses ( ) ; - Robolectric . application = ShadowApplication . bind ( new Application ( ) , new ResourceLoader ( R . class , new File ( STRING0 ) ) ) ; + Robolectric . application = ShadowApplic...
Fix signature for ResourceLoader constructor
<nb> public final class HdmiCecMessage implements Parcelable { public HdmiCecMessage ( int source , int destination , int opcode , byte [ ] params ) { mSource = source ; mDestination = destination ; - mOpcode = opcode ; + mOpcode = opcode & NUMBER0 ; mParams = Arrays . copyOf ( params , params . length ) ; ...
Fix a couple of bugs in CEC services
<nb> public enum StorageLevelAlias { COMMENT COMMENT COMMENT - MEM ( NUMBER0 ) , / * * - COMMENT - COMMENT - SSD ( NUMBER1 ) , / * * - COMMENT - COMMENT + MEM ( NUMBER0 ) , + COMMENT + COMMENT + COMMENT + SSD ( NUMBER1 ) , + COMMENT + COMMENT + COMMENT HDD ( NUMBER2 ) ; private i...
Fix formatting in StorageLevelAlias
<nb> public class DefaultIssue implements Issue { return authorLogin ; } - public DefaultIssue setAuthorLogin ( String authorLogin ) { - this . authorLogin = authorLogin ; + public DefaultIssue setAuthorLogin ( @ nullable String s ) { + this . authorLogin = s ; return this ; } <nb> public class De...
Fix some quality flaws
<nb> public class ClearspaceAuthProvider implements AuthProvider { throw ue ; } catch ( Exception e ) { SINGLE - throw new UnsupportedOperationException ( STRING0 , e ) ; + throw new UnauthorizedException ( STRING0 , e ) ; } }
Only throws NotAuthorized exceptions to avoid stack traces on the UI
<nb> public class ApnsServiceBuilder { COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class ApnsServiceBuilder { COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + CO...
Issue a note about password less certificates
<nb> public class CoyoteAdapter implements Adapter { if ( ! request . isAsync ( ) && ! comet ) { request . finishRequest ( ) ; response . finishResponse ( ) ; - request . getMappingData ( ) . context . logAccess ( - request , response , - System . currentTimeMillis ( ) - req . getStartTime ( ) , - false )...
Avoid possible NPE
<nb> public class ReilOperand implements IOperandTree { COMMENT COMMENT public ReilOperand ( final ReilOperandNode root ) { - m_root = Preconditions . checkNotNull ( root , STRING0 ) ; + m_root = Preconditions . checkNotNull ( root ) ; } @ override
Remove error messages
<nb> package NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - COMMENT COMMENT COMMENT <nb> public class R...
fixed bug where invoke method was called with an object instead of an object
<nb> public class ClusterJmxHelper { } } - public static boolean unregisterDefaultCluster ( SimpleTcpCluster cluster ) throws Exception { - ObjectName clusterName = getDefaultClusterName ( cluster ) ; - if ( getMBeanServer ( ) . isRegistered ( clusterName ) ) { - getMBeanServer ( ) . unregisterMBean ( clu...
remove throwing of exceptions handle everything inside the JMX helper
<nb> import NAMESPACE ; @ retention ( RetentionPolicy . RUNTIME ) @ target ( { ElementType . METHOD , ElementType . PARAMETER , ElementType . TYPE } ) public @ interface Marshaler { + Class < ? > type ( ) default Marshaler . class ; Class < ? > value ( ) ; }
Added type attribute to Marshaler forgot to commit this in last commit
<nb> public class JvmCodegenUtil { if ( JetTypeMapper . isAccessor ( property ) ) return false ; SINGLE - if ( context . isInlineFunction ( ) && - ( ! Visibilities . isPrivate ( property . getVisibility ( ) ) || DescriptorUtils . isTopLevelDeclaration ( property ) ) ) { + if ( context . isInlineFunction ( )...
Fix couldUseDirectAccessToProperty for private top level properties
<nb> public class RuntimeEnvironmentTest { } @ test - public void testXMLencdec ( ) { + public void testXMLencdec ( ) throws IOException { Configuration c = new Configuration ( ) ; String m = c . getXMLRepresentationAsString ( ) ; - Configuration o = null ; - try { - o = Configuration . makeXMLStrin...
Preserve stack trace on error in testXMLencdec
<nb> public class ValueAnimator extends Animator { if ( oldValues != null ) { int numValues = oldValues . length ; anim . mValues = new PropertyValuesHolder [ numValues ] ; - for ( int i = NUMBER0 ; i < numValues ; ++ i ) { - anim . mValues [ i ] = oldValues [ i ] . clone ( ) ; - } anim . mValuesMap = new...
Fix bug with values in cloned animators