diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + SINGLE final class Closer implements Closeable { COMMENT
Put that coffee down
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - - import NAMESPACE ; - import NAMESPACE ; public enum StreamRuleType { EXACT ( NUMBER0 , STRING0 , STRING0 ) , <nb> public enum StreamRuleType { return value ; } - public static StreamRuleType fromInteger ( @ jsonproperty ( STRING1 ) final int numeric ) { + public static StreamRuleType fromInteger ( final int numeric ) { for ( final StreamRuleType streamRuleType : StreamRuleType . values ( ) ) { if ( streamRuleType . value == numeric ) { return streamRuleType ;
Remove unnecessary imports annotation
<nb> public class XTSSubsystemTestCase extends AbstractSubsystemBaseTest { protected String getSubsystemXml ( ) throws IOException { return readResource ( STRING0 ) ; } + + @ override + protected String getSubsystemXsdPath ( ) throws Exception { + return STRING1 ; + } + + @ override + protected String [ ] getSubsystemTemplatePaths ( ) throws IOException { + return new String [ ] { + STRING2 + } ; + } + @ test public void testBoot712 ( ) throws Exception { testBoot1_1_0 ( ModelTestControllerVersion . V7_1_2_FINAL ) ;
add XML validation for xts subsystem
<nb> public class TraktTools { SINGLE if ( ! syncSeasons . isEmpty ( ) ) { + Timber . d ( STRING0 + syncSeasons . size ( ) + STRING1 ) ; SyncItems syncItems = new SyncItems ( ) . shows ( new SyncShow ( ) . id ( ShowIds . tvdb ( showTvdbId ) ) . seasons ( syncSeasons ) ) ; try {
Add log message for trakt diff flag upload
<nb> public class PipeTransportPower extends PipeTransport { if ( totalPowerConsumed > NUMBER0 ) { for ( int in = NUMBER0 ; in < NUMBER1 ; ++ in ) { - int powerConsumed = internalPower [ in ] * totalPowerConsumed / totalPowerContained ; + int powerConsumed = ( int ) ( ( double ) internalPower [ in ] * ( double ) totalPowerConsumed / totalPowerContained ) ; displayPower [ in ] += powerConsumed ; } }
fixed potential integer overflow
<nb> public class PackageInstallerService extends IPackageInstaller . Stub { mContext . enforceCallingOrSelfPermission ( android . Manifest . permission . INSTALL_PACKAGES , TAG ) ; synchronized ( mSessions ) { - mSessions . get ( sessionId ) . setPermissionsResult ( accepted ) ; + PackageInstallerSession session = mSessions . get ( sessionId ) ; + if ( session != null ) { + session . setPermissionsResult ( accepted ) ; + } } }
Fix a NPE in PackageInstallerService
<nb> public abstract class Language { COMMENT COMMENT COMMENT + COMMENT COMMENT public static Language [ ] getRealLanguages ( ) { List < Language > result = new ArrayList < > ( ) ;
add since annotation
<nb> public abstract class StateTrackingTestResultProcessor implements TestResultProc protected void completed ( TestState state ) { } - - protected TestState getTestStateFor ( Object testId ) { - return executing . get ( testId ) ; - } }
Removed dead code
<nb> public class StandardSession implements HttpSession , Session , Serializable { if ( Constants . excludedAttributeNames . contains ( name ) ) { return true ; } + + SINGLE + Manager manager = getManager ( ) ; + if ( manager == null ) { + SINGLE + SINGLE + return false ; + } + SINGLE - return ! getManager ( ) . willAttributeDistribute ( name , value ) ; + return ! manager . willAttributeDistribute ( name , value ) ; }
Fix potential NPE when clustering
<nb> public class Parser catch ( Throwable x ) { LOG . debug ( x ) ; - notifyConnectionFailure ( ErrorCode . PROTOCOL_ERROR , STRING0 ) ; + notifyConnectionFailure ( ErrorCode . PROTOCOL_ERROR , STRING1 + x ) ; return false ; } } <nb> public class Parser @ override public void onConnectionFailure ( int error , String reason ) { + LOG . warn ( STRING2 , error , reason ) ; } } } <nb> public class HpackDecoder break ; case STRING3 : + SINGLE + COMMENT if ( indexed ) field = new StaticValueHttpField ( header , name , value , new HttpURI ( value ) ) ; - else + COMMENT field = new HttpField ( header , name , value ) ; break ; <nb> public class MetaDataBuilder break ; default: - throw new IllegalArgumentException ( ) ; + throw new IllegalArgumentException ( field . getName ( ) ) ; } } else
fixed refactor uri issue
<nb> public class XFramesView extends XDebugViewBase { private StackFramesListBuilder ( final XExecutionStack executionStack ) { myExecutionStack = executionStack ; myStackFrames = new ArrayList < XStackFrame > ( ) ; - myStackFrames . add ( executionStack . getTopFrame ( ) ) ; + XStackFrame topFrame = executionStack . getTopFrame ( ) ; + if ( topFrame != null ) { + myStackFrames . add ( topFrame ) ; + } myNextFrameIndex = NUMBER0 ; } <nb> public class XVariablesView extends XDebugViewBase { } else { tree . setSourcePosition ( null ) ; - tree . setRoot ( MessageTreeNode . createInfoMessage ( tree , null , mySession . getDebugProcess ( ) . getCurrentStateMessage ( ) ) , true ) ; + String message = ! mySession . isStopped ( ) && mySession . isPaused ( ) ? STRING0 : mySession . getDebugProcess ( ) . getCurrentStateMessage ( ) ; + tree . setRoot ( MessageTreeNode . createInfoMessage ( tree , null , message ) , true ) ; } }
fixed pause action
<nb> public class NettyRatpackService extends AbstractIdleService implements RatpackS } } - @ suppresswarnings ( STRING0 ) @ override protected void shutDown ( ) throws Exception { - bootstrap . shutdown ( ) ; - SINGLE - SINGLE - SINGLE + channel . close ( ) . sync ( ) ; + bossGroup . shutdownGracefully ( ) ; + workerGroup . shutdownGracefully ( ) ; } public int getBindPort ( ) {
Fix the shutdown process
<nb> public class ExceptionUtils { COMMENT COMMENT COMMENT - public static RuntimeException rethrow ( Exception e ) { + public static RuntimeException rethrow ( Throwable e ) { if ( e instanceof RuntimeException ) { throw ( RuntimeException ) e ; } + else if ( e instanceof Error ) { + throw ( Error ) e ; + } else { throw new RuntimeException ( e ) ; }
ExceptionUtils rethrow accepts Throwable
<nb> public class Bootstrap extends HttpServlet { bc . setHost ( STRING0 ) ; bc . setBasePath ( STRING1 ) ; + bc . setVersion ( STRING2 ) ; bc . setTitle ( STRING3 ) ; bc . setDescription ( STRING4 ) ; bc . setTermsOfServiceUrl ( STRING5 ) ;
added api version
<nb> public class EditorDelegate implements EditorEx { } public int logicalPositionToOffset ( final LogicalPosition pos ) { - LogicalPosition windowPosition = myDelegate . offsetToLogicalPosition ( myDocument . getTextRange ( ) . getStartOffset ( ) ) ; - LogicalPosition newPosition = new LogicalPosition ( pos . line + windowPosition . line , pos . column + windowPosition . column ) ; - return myDelegate . logicalPositionToOffset ( newPosition ) - myDocument . getTextRange ( ) . getStartOffset ( ) ; + return myDocument . getLineStartOffset ( pos . line ) + pos . column ; } public void setLastColumnNumber ( final int val ) {
duplicate line in injected
<nb> public class TitleFlowIndicator extends TextView implements FlowIndicator { footerLineHeight = a . getDimension ( R . styleable . TitleFlowIndicator_footerLineHeight , FOOTER_LINE_HEIGHT ) ; footerTriangleHeight = a . getDimension ( R . styleable . TitleFlowIndicator_footerTriangleHeight , FOOTER_TRIANGLE_HEIGHT ) ; int selectedColor = a . getColor ( R . styleable . TitleFlowIndicator_selectedColor , SELECTED_COLOR ) ; - boolean selectedBold = a . getBoolean ( R . styleable . TitleFlowIndicator_selectedColor , SELECTED_BOLD ) ; + boolean selectedBold = a . getBoolean ( R . styleable . TitleFlowIndicator_selectedBold , SELECTED_BOLD ) ; int textColor = a . getColor ( R . styleable . TitleFlowIndicator_textColor , TEXT_COLOR ) ; float textSize = a . getDimension ( R . styleable . TitleFlowIndicator_textSize , TEXT_SIZE ) ; float selectedSize = a . getDimension ( R . styleable . TitleFlowIndicator_selectedSize , textSize ) ;
Fixed reading of selectedBold attribute
<nb> public class DarculaSpinnerUI extends BasicSpinnerUI { return b ; } - static class LayoutManagerDelegate implements LayoutManager { + protected static class LayoutManagerDelegate implements LayoutManager { protected final LayoutManager myDelegate ; - LayoutManagerDelegate ( LayoutManager delegate ) { + public LayoutManagerDelegate ( LayoutManager delegate ) { myDelegate = delegate ; }
make LayoutManagerDelegate class public
<nb> public class IDPoolTest { } } } ) ; - threads [ i ] . run ( ) ; + threads [ i ] . start ( ) ; } for ( int i = NUMBER0 ; i < numThreads ; i ++ ) threads [ i ] . join ( ) ; for ( int i = NUMBER0 ; i < idPools . length ; i ++ ) idPools [ i ] . close ( ) ;
Make IDPoolTest parallel
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class TemplatesService { public abstract void setTemplateFileTypes ( List < String > fileTypes ) ; public abstract void generateTemplates ( @ notnull final TemplateSettingsHolder settings , VirtualFile baseDir ) ; + public abstract void installTemplateEngine ( @ notnull final TemplateSettingsHolder settings , @ notnull final PyPackageManager packageManager , + @ notnull final Project project ) ; }
install related template packages when selecting template language
<nb> public final class Key extends Iced implements Comparable { int chk = NUMBER0 ; SINGLE if ( kb . length >= NUMBER1 && kb [ NUMBER0 ] == ARRAYLET_CHUNK && kb [ NUMBER2 ] == NUMBER0 ) { long off = UDP . get8 ( kb , NUMBER3 ) ; - if ( ( off > > NUMBER4 ) >= NUMBER5 ) { SINGLE - i += NUMBER3 + NUMBER6 ; SINGLE - chk = ( int ) ( off > > > ( NUMBER7 + NUMBER4 ) ) ; SINGLE - } + i += NUMBER3 + NUMBER6 ; SINGLE + boolean big = ( off > > NUMBER4 ) >= NUMBER5 ; SINGLE + chk = ( int ) ( off > > > ( ( big ? NUMBER7 : NUMBER3 ) + NUMBER4 ) ) ; SINGLE } int hash = hash ( kb , i , kb . length ) ; _hash = hash + chk ; SINGLE
Fix Key distro for small files
<nb> public class EstimateLinearAllocStep implements Step , Supplier < Integer > { public int getEstimate ( FileLike fileLike ) throws IOException ; } + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT private static LinearAllocEstimator DEFAULT_LINEAR_ALLOC_ESTIMATOR = new LinearAllocEstimator ( ) { @ override public int getEstimate ( FileLike fileLike ) throws IOException { - return DalvikStatsTool . getEstimate ( fileLike . getInput ( ) ) . estimatedLinearAllocSize ; + return ( int ) fileLike . getSize ( ) ; } } ; <nb> public class EstimateLinearAllocStep implements Step , Supplier < Integer > { private int linearAllocEstimate = - NUMBER0 ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public EstimateLinearAllocStep ( Path pathToJarOrClassesDirectory ) { this ( pathToJarOrClassesDirectory , DEFAULT_LINEAR_ALLOC_ESTIMATOR ) ; }
Use a cheaper estimator for EstimateLinearAllocStep
<nb> public class DashAudioVideoNotesFragment extends DashBaseFragment { public void setupNotes ( ) { View mainView = getView ( ) ; + if ( mainView == null ) { + return ; + } + if ( plugin == null ) { ( mainView . findViewById ( R . id . main_notes ) ) . setVisibility ( View . GONE ) ; return ;
Fixed NPE in DashAudioVideo
<nb> public abstract class SourceFile { } } + @ override + public String toString ( ) { + return fileName ; + } + public static SourceFile fromFile ( String fileName , Charset c ) { return fromFile ( new File ( fileName ) , c ) ; }
Add a toString method for SourceFile to help with debugging
<nb> public final class Aeron public Builder ( ) { errorHandler = new DummyErrorHandler ( ) ; - SINGLE adminBuffers = new MappingAdminBufferStrategy ( CommonConfiguration . ADMIN_DIR ) ; producerControl = DefaultProducerControlStrategy : : new ; }
remove old todo
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Fixed typo and added link to the RuleChain class
<nb> public class LexerTest Token . LOGICAL_OR ) ; } - public void testPipe_UnexpectedCharacter ( ) + public void testPipe ( ) throws Exception { - newLexer ( STRING0 ) ; - - char [ ] expected = assertUnexpectedCharacter ( STRING1 , - NUMBER0 , - NUMBER1 ) ; - - assertLength ( NUMBER0 , - expected ) ; - - assertContains ( STRING2 , - expected ) ; + assertSimple ( STRING3 , + Token . PIPE ) ; } public void testLogicalAnd ( )
Fixing test of and lexing
<nb> public class Roster { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Updates the comment of createEntry
<nb> public abstract class ConfigurationNode { return o ; } } + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + @ suppresswarnings ( STRING0 ) + public List < String > getKeys ( String path ) { + Object o = getProperty ( path ) ; + if ( o == null ) { + return null ; + } else if ( o instanceof Map ) { + return new ArrayList < String > ( ( ( Map < String , Object > ) o ) . keySet ( ) ) ; + } else { + return null ; + } + } COMMENT COMMENT
Added Configuration getKeys
<nb> public class ParserConfig { try { return ASMDeserializerFactory . getInstance ( ) . createJavaBeanDeserializer ( this , clazz , type ) ; + } catch ( NoSuchMethodException error ) { + return new JavaBeanDeserializer ( this , clazz , type ) ; } catch ( ASMException asmError ) { return new JavaBeanDeserializer ( this , clazz , type ) ; } catch ( Exception e ) { <nb> public class ParserConfig { try { return ASMDeserializerFactory . getInstance ( ) . createFieldDeserializer ( mapping , clazz , fieldInfo ) ; } catch ( Throwable e ) { - SINGLE - e . printStackTrace ( ) ; + SINGLE } return createFieldDeserializerWithoutASM ( mapping , clazz , fieldInfo ) ;
bug fixed asm
<nb> import NAMESPACE ; COMMENT COMMENT public class HttpGetTest extends ContextTestSupport { - protected String expectedText = STRING0 ; + protected String expectedText = STRING1 ; public void testHttpGet ( ) throws Exception { MockEndpoint mockEndpoint = resolveMandatoryEndpoint ( STRING2 , MockEndpoint . class ) ;
Fixed the unit test error of HttpGetTest
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; public class ActionMenuItem extends JMenuItem { - private static final Icon ourCheckedIcon = new SizedIcon ( IconLoader . getIcon ( STRING0 ) , NUMBER0 , NUMBER0 ) ; + private static final Icon ourCheckedIcon = new SizedIcon ( Icons . CHECK_ICON , NUMBER0 , NUMBER0 ) ; private static final Icon ourUncheckedIcon = new EmptyIcon ( NUMBER0 , NUMBER0 ) ; private final AnAction myAction ;
use the check icon
<nb> public class RecoverySourceHandler { } } - logger . trace ( STRING0 , translogView . totalOperations ( ) ) ; + logger . trace ( STRING1 , shard . shardId ( ) , translogView . totalOperations ( ) ) ; try { phase2 ( translogView . snapshot ( ) ) ; } catch ( Throwable e ) {
Log shard after translog snapshot during recovery
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MockApplicationContext extends GroovyObjectSupport implements Appli for ( Iterator i = resources . iterator ( ) ; i . hasNext ( ) ; ) { String location = ( String ) i . next ( ) ; if ( pathMatcher . match ( locationPattern , StringUtils . removeStart ( location , STRING0 ) ) ) { - result . add ( new DescriptiveResource ( location ) ) ; + result . add ( new ClassPathResource ( location ) ) ; } } return ( Resource [ ] ) result . toArray ( new Resource [ NUMBER0 ] ) ;
DescriptiveResource caused problems because the getFilename method was not supported
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public interface ChangeListManagerGate { void editComment ( final String name , final String comment ) ; void editName ( final String oldName , final String newName ) ; - SINGLE + + + COMMENT + COMMENT + COMMENT void moveChanges ( final String toList , final Collection < Change > changes ) ; + void setListsToDisappear ( final Collection < String > names ) ; FileStatus getStatus ( final VirtualFile file ) ; FileStatus getStatus ( final File file ) ;
deprecate unused ChangeListManagerGate moveChanges
<nb> public class StreamTest extends AbstractSeqTest { assertThat ( stream . toString ( ) ) . isEqualTo ( STRING0 ) ; } + @ test + public void shouldGroupByAndMapProperly ( ) { + assertThat ( Stream . of ( NUMBER0 ) + . groupBy ( n - > n ) + . map ( longStreamEntry - > longStreamEntry . key ) + . toList ( ) ) . isEqualTo ( List . of ( NUMBER0 ) ) ; + } + SINGLE @ test ( expected = InvalidObjectException . class )
Add a failing test for Stream groupBy map
<nb> public class GeoIntentActivity extends OsmandListActivity { { Thread . sleep ( NUMBER0 ) ; } - String scheme = intent . getScheme ( ) ; - Uri data = intent . getData ( ) ; return extract ( intent . getScheme ( ) , intent . getData ( ) ) . execute ( ) ; } catch ( Exception e )
removed unused files
<nb> public class StanfordCoreNLPSlowITest extends TestCase { props . setProperty ( STRING0 , dir . getPath ( ) ) ; props . setProperty ( STRING1 , STRING2 ) ; - props . setProperty ( STRING3 , STRING4 ) ; + props . setProperty ( STRING5 , STRING6 ) ; return new StanfordCoreNLP ( props ) ; }
add serializer property to StanfordCoreNLPSlowITest
<nb> class EmbeddedChannel extends AbstractChannel { int byteBufLen = byteBuf . readableBytes ( ) ; if ( byteBufLen > NUMBER0 ) { productQueue . add ( byteBuf . readBytes ( byteBufLen ) ) ; - writeCounter += byteBufLen ; byteBuf . clear ( ) ; } Queue < Object > msgBuf = buf . messageBuffer ( ) ; if ( ! msgBuf . isEmpty ( ) ) { productQueue . addAll ( msgBuf ) ; - writeCounter += msgBuf . size ( ) ; msgBuf . clear ( ) ; } }
Fix compilation error caused by recent changes in AbstractChannel
<nb> public abstract class ClientAbstractIOSelector extends Thread implements IOSelec private static final int SHUTDOWN_TIMEOUT_SECONDS = NUMBER0 ; private static final int SELECT_WAIT_TIME_MILLIS = NUMBER1 ; + public static final int SELECT_FAILURE_PAUSE_MILLIS = NUMBER2 ; protected final ILogger logger ; <nb> public abstract class ClientAbstractIOSelector extends Thread implements IOSelec SINGLE SINGLE try { - Thread . sleep ( NUMBER2 ) ; + Thread . sleep ( SELECT_FAILURE_PAUSE_MILLIS ) ; } catch ( InterruptedException i ) { Thread . currentThread ( ) . interrupt ( ) ; }
Removed a magic number
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - public class CamelConduitTest extends CamelTestSupport { + public class CamelConduitTest extends CamelTransportTestSupport { protected RouteBuilder createRouteBuilder ( ) { return new RouteBuilder ( ) { <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - public class CamelDestinationTest extends CamelTestSupport { + public class CamelDestinationTest extends CamelTransportTestSupport { private Message destMessage ; protected RouteBuilder createRouteBuilder ( ) { <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - public abstract class CamelTestSupport extends ContextTestSupport { + public abstract class CamelTransportTestSupport extends ContextTestSupport { protected Bus bus ; protected EndpointInfo endpointInfo ;
Renamed the CamelTestSupport to CamelTransportTestSupport
<nb> public final class JsDescriptorUtils { declarationDescriptor = ( ( ThisReceiver ) receiverParameter ) . getDeclarationDescriptor ( ) ; } else { - throw new UnsupportedOperationException ( STRING0 + receiverParameter ) ; + throw new UnsupportedOperationException ( STRING0 + receiverParameter . getClass ( ) + + STRING1 + receiverParameter ) ; } return declarationDescriptor . getOriginal ( ) ;
improve exception message
<nb> public class ReflectiveInterceptor { COMMENT private static Field asSetableField ( Field field , Object target , Class < ? > valueType , Object value , boolean makeAccessibleCopy ) - throws IllegalAccessException { + throws IllegalAccessException { SINGLE SINGLE <nb> public class ReflectiveInterceptor { c = jlClassGetDeclaredConstructor ( clazz ) ; } catch ( NoSuchMethodException e ) { - e . printStackTrace ( ) ; + SINGLE throw Exceptions . instantiation ( clazz ) ; } c = asAccessibleConstructor ( c , true ) ;
remove printStackTrace from catch block
<nb> public abstract class ConnectionConfiguration { COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public abstract class ConnectionConfiguration { COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT - enabled , + ifpossible , COMMENT COMMENT <nb> public abstract class ConnectionConfiguration { COMMENT COMMENT public static abstract class Builder < B extends Builder < B , C > , C extends ConnectionConfiguration > { - private SecurityMode securityMode = SecurityMode . enabled ; + private SecurityMode securityMode = SecurityMode . ifpossible ; private String keystorePath = System . getProperty ( STRING0 ) ; private String keystoreType = STRING1 ; private String pkcs11Library = STRING2 ; <nb> public abstract class ConnectionConfiguration { COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Rename SecurityMode enabled to ifpossible
<nb> public final class OperationMerge { @ override public void unsubscribe ( ) { - System . out . println ( STRING0 ) ; unsubscribed = true ; }
Removing println from OperationMerge
<nb> public class Mailing { } public boolean hasRecipients ( ) { - return toAddresses . size ( ) > NUMBER0 ; + return ( toAddresses . size ( ) + ccAddresses . size ( ) ) > NUMBER0 ; } public void setRecipients ( String . . . addrs ) {
Fix ticket mail dropping bug when author does not have an address
<nb> public final class ELResolverImpl extends ELResolver { } return elResolver . getCommonPropertyType ( context , base ) ; } - - COMMENT - COMMENT - COMMENT - COMMENT - @ deprecated - public static ELResolver getDefaultResolver ( ) { - return ELContextImpl . getDefaultResolver ( ) ; - } }
Remove deprecated code
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT - public class OSharedResourceIterator < T > implements Iterator < T > { + public class OSharedResourceIterator < T > implements Iterator < T > , OResettable { protected final OSharedResourceAdaptiveExternal resource ; protected Iterator < ? > iterator ; <nb> public class OSharedResourceIterator < T > implements Iterator < T > { resource . releaseExclusiveLock ( ) ; } } + + @ override + public void reset ( ) { + if ( ! ( iterator instanceof OResettable ) ) + return ; + + resource . acquireExclusiveLock ( ) ; + try { + ( ( OResettable ) iterator ) . reset ( ) ; + } finally { + resource . releaseExclusiveLock ( ) ; + } + } }
Fixed multiple iteration against linked properties
<nb> public class SubItemUtil { COMMENT COMMENT COMMENT - public static int countItems ( final ItemAdapter adapter , IPredicate predicate ) { + public static int countItems ( final IItemAdapter adapter , IPredicate predicate ) { return countItems ( adapter . getAdapterItems ( ) , true , false , predicate ) ; } <nb> public class SubItemUtil { COMMENT COMMENT COMMENT - public static int countItems ( final ItemAdapter adapter , boolean countHeaders ) { + public static int countItems ( final IItemAdapter adapter , boolean countHeaders ) { return countItems ( adapter . getAdapterItems ( ) , countHeaders , false , null ) ; }
use the interface of the IItemAdapter instead of the implementation
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> class ViewFetcher { public ArrayList < ListView > getCurrentListViews ( ) { ArrayList < ListView > listViews = new ArrayList < ListView > ( ) ; + ArrayList < View > viewList = getViews ( ) ; Iterator < View > iterator = viewList . iterator ( ) ; while ( iterator . hasNext ( ) ) { View view = iterator . next ( ) ; - if ( view instanceof android . widget . ListView ) + if ( view instanceof android . widget . ListView ) listViews . add ( ( ListView ) view ) ; } return listViews ;
Fixed a bug in getCurrentListViews
<nb> public class GoBuildingRunner extends AsyncGenericProgramRunner { final AsyncPromise < RunProfileStarter > promise = new AsyncPromise < RunProfileStarter > ( ) ; FileDocumentManager . getInstance ( ) . saveAllDocuments ( ) ; - ( ( GoApplicationRunningState ) state ) . createCommonExecutor ( ) . withParameters ( STRING0 , STRING1 , tmpFile . getAbsolutePath ( ) ) + ( ( GoApplicationRunningState ) state ) . createCommonExecutor ( ) + . withParameters ( STRING0 , STRING1 , tmpFile . getAbsolutePath ( ) , ( ( GoApplicationRunningState ) state ) . getMainFilePath ( ) ) . showNotifications ( true ) . showOutputOnError ( ) . withPresentableName ( STRING2 ) <nb> public class GoApplicationRunningState extends GoRunningState < GoApplicationConfi @ notnull GoApplicationConfiguration configuration ) { super ( env , module , configuration ) ; } + + @ notnull + public String getMainFilePath ( ) { + return myConfiguration . getFilePath ( ) ; + } @ notnull @ override
Add main file while building
<nb> public class From implements Sqlable { sql += STRING0 + mOffset + STRING1 ; } - return sql ; + return sql . trim ( ) ; } public < T extends Model > List < T > execute ( ) {
Trim sql statements
<nb> public class ReadSentimentDataset { TregexPattern . compile ( STRING0 ) , TregexPattern . compile ( STRING1 ) , TregexPattern . compile ( STRING2 ) , - TregexPattern . compile ( STRING3 ) , + TregexPattern . compile ( STRING4 ) , TregexPattern . compile ( STRING5 ) , TregexPattern . compile ( STRING6 ) , } ; <nb> public class ReadSentimentDataset { Tsurgeon . parseOperation ( STRING7 ) , Tsurgeon . parseOperation ( STRING8 ) , Tsurgeon . parseOperation ( STRING9 ) , - Tsurgeon . parseOperation ( STRING10 ) , + Tsurgeon . parseOperation ( STRING11 ) , Tsurgeon . parseOperation ( STRING12 ) , Tsurgeon . parseOperation ( STRING13 ) , } ;
Fix a particular sentiment tree
<nb> public class JsonResponseHandler extends AbstractContentResponseHandler { } @ override - protected MediaType getContentType ( HttpRequest request ) { + protected MediaType getContentType ( final HttpRequest request ) { return MediaType . create ( STRING0 , STRING1 ) . withCharset ( content . getCharset ( ) ) ; } }
added missing final to json response handler
<nb> public class GoPsiImplUtil { return type ; } + COMMENT + COMMENT + COMMENT @ nullable private static GoType processRangeClause ( @ notnull GoVarDefinition o , @ notnull GoRangeClause parent , @ nullable ResolveState context ) { GoExpression rangeExpression = parent . getRangeExpression ( ) ;
Add link to doc
<nb> public class Cloner { } SINGLE - CloneFunction < T > f = getCloneFunction ( type ) ; SINGLE + CloneFunction < T > f = getCloneFunction ( type ) ; if ( f != null ) { T result = f . cloneObject ( this , object ) ;
Removed a bit of commented out dead code
<nb> public class ClientEngineImpl implements ClientEngine , CoreService , return new ClientServiceProxy ( this ) ; } - public Collection < Client > getEndpoints ( ) { - return new HashSet < Client > ( endpoints . values ( ) ) ; - } - public Collection < Client > getClients ( ) { final HashSet < Client > clients = new HashSet < Client > ( ) ; for ( ClientEndpoint endpoint : endpoints . values ( ) ) {
Removed unused getEndpoints method
<nb> public final class Iterables { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public final class Iterables { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix incorrect reference to in javadoc
<nb> public class CreateMethodFromUsageFix extends CreateFromUsageFixBase { JetTypeReference returnTypeRef = func . getReturnTypeRef ( ) ; if ( returnTypeRef != null ) { + assert returnTypeExpression != null ; JetType [ ] returnTypeOptions = returnTypeExpression . getOptions ( ) ; String [ ] returnTypeOptionStrings = returnTypeExpression . getOptionStrings ( ) ; assert returnTypeOptions . length == returnTypeOptionStrings . length ;
Fixed a warning
<nb> public class DeltaManager extends ClusterManagerBase { COMMENT protected void deserializeSessions ( byte [ ] data ) throws ClassNotFoundException , IOException { - SINGLE - SINGLE SINGLE - ClassLoader originalLoader = Thread . currentThread ( ) . getContextClassLoader ( ) ; ObjectInputStream ois = null ; SINGLE try { <nb> public class DeltaManager extends ClusterManagerBase { SINGLE } ois = null ; - if ( originalLoader != null ) { - Thread . currentThread ( ) . setContextClassLoader ( originalLoader ) ; - } } - }
Remove unused code
<nb> public final class HttpHeaders { public static final String EXPECT = STRING0 ; COMMENT public static final String FROM = STRING1 ; + COMMENT COMMENT COMMENT <nb> public final class HttpHeaders { public static final String RANGE = STRING2 ; COMMENT public static final String REFERER = STRING3 ; + COMMENT + public static final String SERVICE_WORKER = STRING4 ; COMMENT public static final String TE = STRING5 ; COMMENT
Add Service Worker
<nb> import NAMESPACE ; COMMENT public interface FileHandlerSpec { - default FileHandlerSpec files ( String path ) { - return path ( path ) . dir ( path ) ; - } - COMMENT COMMENT COMMENT <nb> public interface FileHandlerSpec { FileHandlerSpec dir ( String dir ) ; COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + default FileHandlerSpec files ( String path ) { + return path ( path ) . dir ( path ) ; + } + + COMMENT COMMENT COMMENT COMMENT
Add Javadoc for new FileHandlerSpec files convenience method
<nb> package NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public class ContentUris { COMMENT
Add Content URI ref doc
<nb> public class GrizzlyAsyncHttpProvider implements AsyncHttpProvider { requestPacket . setHeader ( Header . ProxyConnection , STRING0 ) ; } - if ( proxy . getPrincipal ( ) != null ) { + if ( proxy . getPrincipal ( ) != null && proxy . isBasic ( ) ) { requestPacket . setHeader ( Header . ProxyAuthorization , AuthenticatorUtils . computeBasicAuthentication ( proxy ) ) ; }
sending basic only if proxy is of basic auth
<nb> public class SeekBarPreference extends DialogPreference implements public void onProgressChanged ( final SeekBar seek , final int value , final boolean fromTouch ) { final String t = String . valueOf ( value ) ; - valueTextView . setText ( valueText == null ? t : t . concat ( valueText ) ) ; + valueTextView . setText ( valueText == null ? t : t + valueText ) ; valueToSave = value ; }
Replace concat call with
<nb> public final class TieredBlockStoreTests { mBlockStore . commitBlock ( USER_ID1 , TEMP_BLOCK_ID ) ; mBlockStore . abortBlock ( USER_ID1 , TEMP_BLOCK_ID ) ; } + + @ test + public void removeTempBlockTest ( ) throws Exception { + mThrown . expect ( InvalidStateException . class ) ; + mThrown . expectMessage ( STRING0 + TEMP_BLOCK_ID + STRING1 ) ; + + TieredBlockStoreTestUtils . createTempBlock ( USER_ID1 , TEMP_BLOCK_ID , BLOCK_SIZE , mTestDir1 ) ; + mBlockStore . removeBlock ( USER_ID1 , TEMP_BLOCK_ID ) ; + } + + @ test + public void removeNonExistingBlockTest ( ) throws Exception { + mThrown . expect ( NotFoundException . class ) ; + mThrown . expectMessage ( STRING2 + BLOCK_ID1 + STRING3 ) ; + + mBlockStore . removeBlock ( USER_ID1 , BLOCK_ID1 ) ; + } }
Add test case for removeBlock
<nb> public class Ctx { SINGLE SINGLE - private volatile boolean starting ; + private boolean starting ; SINGLE private boolean terminating ;
Remove volatile memory barrier from starting
<nb> public class TomcatServer { tomcat . stop ( ) ; tomcat . destroy ( ) ; + tomcat . getServer ( ) . await ( ) ; isRunning = false ; } <nb> public class TomcatServer { tomcat . stop ( ) ; tomcat . destroy ( ) ; + tomcat . getServer ( ) . await ( ) ; isRunning = false ; }
Tomcat stop process fixed
<nb> import NAMESPACE ; import NAMESPACE ; import static NAMESPACE ; - import static NAMESPACE ; + import static NAMESPACE ; COMMENT COMMENT
Moved GZIPHelper to camel core
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + COMMENT COMMENT
Fixed the cs error of camel facebook
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public class CULActivator implements BundleActivator { private static final Logger logger = LoggerFactory . getLogger ( CULActivator . class ) ;
Added missing Javadoc comment to CUL transport
<nb> public class AtmosphereRequest extends HttpServletRequestWrapper { @ override public String getRequestURI ( ) { - return b . requestURI != null ? b . requestURI : ( isNotNoOps ( ) ? b . request . getRequestURI ( ) : null ) ; + return b . requestURI != null ? b . requestURI : ( isNotNoOps ( ) ? b . request . getRequestURI ( ) : STRING0 ) ; } @ override public StringBuffer getRequestURL ( ) { - return b . requestURL != null ? new StringBuffer ( b . requestURL ) : ( isNotNoOps ( ) ? b . request . getRequestURL ( ) : null ) ; + return b . requestURL != null ? new StringBuffer ( b . requestURL ) : ( isNotNoOps ( ) ? b . request . getRequestURL ( ) : new StringBuffer ( ) ) ; } @ override
Never return null
<nb> public class ClientOptions @ option ( name = STRING0 , title = STRING1 , description = STRING2 ) public String krb5Principal ; + @ option ( name = STRING3 , title = STRING4 , description = STRING5 ) + public boolean krb5DisableRemoteServiceHostnameCanonicalization ; + @ option ( name = STRING6 , title = STRING7 , description = STRING8 ) public String keystorePath ; <nb> public class ClientOptions if ( krb5CredentialCachePath != null ) { config . setCredentialCache ( new File ( krb5CredentialCachePath ) ) ; } - + config . setUseCanonicalHostname ( ! krb5DisableRemoteServiceHostnameCanonicalization ) ; return config ; }
Allow reverse dns lookup disabling for kerberized CLI
<nb> import NAMESPACE ; public class SyncStorageEngine extends Handler { private static final String TAG = STRING0 ; - private static final boolean DEBUG = true ; + private static final boolean DEBUG = false ; private static final String TAG_FILE = STRING1 ; private static final String XML_ATTR_NEXT_AUTHORITY_ID = STRING2 ;
Turn off debugging in SyncManager
<nb> public class Body { jniDestroyFixture ( addr , fixture . addr ) ; this . world . fixtures . remove ( fixture . addr ) ; this . fixtures . remove ( fixture ) ; + this . world . freeFixtures . free ( fixture ) ; } private native void jniDestroyFixture ( long addr , long fixtureAddr ) ;
fixed Body destroyFixture puts fixture back in pool as well
<nb> public class UimaSentenceIterator extends BaseSentenceIterator { } + public UimaSentenceIterator ( SentencePreProcessor preProcessor , CollectionReader cr , UimaResource resource ) { + super ( preProcessor ) ; + this . reader = cr ; + this . resource = resource ; + } + + public UimaSentenceIterator ( String path , UimaResource resource ) { this ( null , path , resource ) ; }
Added extra constructor to UimaSentenceIterator to allow the use of CollectionReaders
<nb> public class MainActivity extends AppCompatActivity implements View . OnClickListe @ override public void onClick ( View v ) { - JCVideoPlayer . releaseAllVideos ( ) ; switch ( v . getId ( ) ) { case R . id . to_list_activity : startActivity ( new Intent ( MainActivity . this , ListActivity . class ) ) ;
do not neet release videos before click button
<nb> public class DefaultCamelContext extends ServiceSupport implements ModelCamelCon addService ( shutdownStrategy ) ; addService ( packageScanClassResolver ) ; addService ( restRegistry ) ; + addService ( messageHistoryFactory ) ; if ( runtimeEndpointRegistry != null ) { if ( runtimeEndpointRegistry instanceof EventNotifier ) {
Introduce a MessageHistoryFactory
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; - import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> public class RedisLoader return null ; } - if ( BOOLEAN . equals ( type ) || VARCHAR . equals ( type ) ) { + if ( BOOLEAN . equals ( type ) || Varchars . isVarcharType ( type ) ) { return value ; } if ( BIGINT . equals ( type ) ) {
Allow VARCHAR of any length in RedisLoader
<nb> public class WifiService extends IWifiManager . Stub { COMMENT COMMENT public Messenger getWifiServiceMessenger ( ) { - COMMENT - TODO: when we consider exposing the asynchronous API , think about - how to provide both access and change permissions seperately - COMMENT - enforceAccessPermission ( ) ; - enforceChangePermission ( ) ; + COMMENT + COMMENT + COMMENT + COMMENT return new Messenger ( mAsyncServiceHandler ) ; }
Fix permission issues for apps
<nb> public class ProxyDataTracker extends BaseNetworkStateTracker { SINGLE private static final String DNS1 = STRING0 ; private static final String DNS2 = STRING1 ; + private static final String INTERFACE_NAME = STRING2 ; private static final String REASON_ENABLED = STRING3 ; private static final String REASON_DISABLED = STRING4 ; private static final String REASON_PROXY_DOWN = STRING5 ; <nb> public class ProxyDataTracker extends BaseNetworkStateTracker { mLinkCapabilities = new LinkCapabilities ( ) ; mNetworkInfo . setIsAvailable ( true ) ; try { - mLinkProperties . addDns ( InetAddress . getByName ( DNS1 ) ) ; - mLinkProperties . addDns ( InetAddress . getByName ( DNS2 ) ) ; + mLinkProperties . addDns ( InetAddress . getByName ( DNS1 ) ) ; + mLinkProperties . addDns ( InetAddress . getByName ( DNS2 ) ) ; + mLinkProperties . setInterfaceName ( INTERFACE_NAME ) ; } catch ( UnknownHostException e ) { - Log . e ( TAG , STRING6 , e ) ; + Log . e ( TAG , STRING6 , e ) ; } }
Add interface name for proxy network type
<nb> public class LiferayWindowState extends WindowState { SINGLE - if ( oldWindowState . equals ( LiferayWindowState . POP_UP ) ) ) { + if ( oldWindowState . equals ( LiferayWindowState . POP_UP ) ) { return false ; } else {
fixed syntax error
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class JacksonMessageBodyProvider implements MessageBodyReader < Object > , OutputStream entityStream ) throws IOException , WebApplicationException { try { Json . write ( entityStream , t ) ; + } catch ( EofException ignored ) { + SINGLE } catch ( IOException e ) { LOGGER . error ( STRING0 , e ) ; }
Don t log EofExceptions when writing JSON
<nb> public class MultiLayerNetwork implements Serializable , Classifier , Layer { throw new IllegalArgumentException ( STRING0 ) ; this . input = input ; - if ( input != null ) - setInputMiniBatchSize ( input . size ( NUMBER0 ) ) ; + setInputMiniBatchSize ( input . size ( NUMBER0 ) ) ; if ( ! initCalled ) init ( ) ;
Remove redundant null check
<nb> public abstract class AsyncHttpResponseHandler implements ResponseHandlerInterfa boolean missingLooper = null == Looper . myLooper ( ) ; if ( runnable != null ) { if ( missingLooper ) { - SINGLE - runnable . run ( ) ; - } else { - SINGLE + SINGLE handler . post ( runnable ) ; + } else { + SINGLE + runnable . run ( ) ; } } }
Fixed threading race condition
<nb> public class NodeBuilder { } COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public NodeBuilder local ( boolean local ) { + settings . put ( STRING0 , true ) ; + return this ; + } + + COMMENT COMMENT COMMENT COMMENT <nb> public class SimpleAttachmentIntegrationTests { private Node node ; @ beforeclass public void setupServer ( ) { - node = nodeBuilder ( ) . settings ( settingsBuilder ( ) . put ( STRING0 , true ) ) . node ( ) ; + node = nodeBuilder ( ) . local ( true ) . node ( ) ; } @ afterclass public void closeServer ( ) {
add local node to node builder
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT COMMENT @ retention ( RetentionPolicy . RUNTIME ) @ target ( ElementType . TYPE ) + @ deprecated public @ interface RequiredMeasures { COMMENT
Deprecate the annotation RequiredMeasures
<nb> public class JDOTest extends AbstractTest { } @ test - public void test ( ) throws SecurityException , NoSuchFieldException { + public void test ( ) throws IllegalAccessException , NoSuchFieldException { start ( QJDOTest_JDOEntity . class , QJDOTest_JDOEntity . jDOEntity ) ; match ( StringPath . class , STRING0 ) ; assertMissing ( STRING1 ) ; <nb> public class JDOTest extends AbstractTest { assertMissing ( STRING2 ) ; match ( StringPath . class , STRING3 ) ; - cl = QJDOTest_JDOEntity3 . class ; + start ( QJDOTest_JDOEntity3 . class , QJDOTest_JDOEntity3 . jDOEntity3 ) ; match ( NumberPath . class , STRING4 ) ; + matchType ( Integer . class , STRING4 ) ; match ( StringPath . class , STRING5 ) ; }
Adjust JDOTest to use the new AbstractTest
<nb> public abstract class StatementProxy implements Statement protected final IHikariConnectionProxy connection ; - protected boolean isClosed ; - protected final Statement delegate ; + private boolean isClosed ; + static { PROXY_FACTORY = JavassistProxyFactoryFactory . getProxyFactory ( ) ;
Make the things we can private and final
<nb> public final class Simple1P1CPerfTest System . out . println ( STRING0 + disruptorOpsPerSecond ) ; System . out . println ( STRING1 + blockingQueueOpsPerSecond ) ; - Assert . assertTrue ( STRING2 , disruptorOpsPerSecond > blockingQueueOpsPerSecond ) ; + Assert . assertTrue ( STRING3 , disruptorOpsPerSecond > blockingQueueOpsPerSecond ) ; } private long runDisruptorPass ( ) throws InterruptedException
assert message needed reversal
<nb> public class AgreementRule extends GermanRule { STRING0 , STRING1 , STRING2 , + STRING3 , STRING4 , STRING5 , STRING6 , <nb> public class CaseRule extends GermanRule { private static final Set < String > exceptions = new HashSet < String > ( ) ; static { + exceptions . add ( STRING7 ) ; exceptions . add ( STRING8 ) ; exceptions . add ( STRING9 ) ; exceptions . add ( STRING10 ) ;
de avoid two false alarms
<nb> public class MainActivity extends AppCompatActivity { new GuillotineAnimation . GuillotineBuilder ( guillotineMenu , guillotineMenu . findViewById ( R . id . guillotine_hamburger ) , contentHamburger ) . setStartDelay ( RIPPLE_DURATION ) . setActionBarViewForAnimation ( toolbar ) + . setClosedOnStart ( true ) . build ( ) ; } } <nb> public class GuillotineAnimation { this . mClosingAnimation = buildClosingAnimation ( ) ; if ( builder . isClosedOnStart ) { mGuillotineView . setRotation ( GUILLOTINE_CLOSED_ANGLE ) ; - mGuillotineView . setVisibility ( View . GONE ) ; + mGuillotineView . setVisibility ( View . INVISIBLE ) ; } SINGLE SINGLE
fixed isClosedOnStart issue
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public class OSQLFunctionGremlin extends OSQLFunctionAbstract { new OGremlinHelper . OGremlinCallback ( ) { @ override - public boolean call ( ScriptEngine iEngine , OrientGraph iGraph ) { + public boolean call ( ScriptEngine iEngine , OrientBaseGraph iGraph ) { final ODocument document = ( ODocument ) iCurrentRecord ; if ( db . isVertex ( document ) ) { SINGLE
Fixed compilation problem in gephi http command
<nb> public class PreloaderBundleGenerator extends Generator { for ( Entry < String , ArrayList < Asset > > bundle : bundles . entrySet ( ) ) { StringBuffer buffer = new StringBuffer ( ) ; for ( Asset asset : bundle . getValue ( ) ) { - String path = asset . file . path ( ) . replace ( STRING0 , STRING1 ) . replace ( assetOutputPath + STRING2 , STRING3 ) . replaceFirst ( STRING4 , STRING3 ) ; + String path = asset . file . path ( ) . replace ( STRING0 , STRING1 ) . replace ( assetOutputPath , STRING3 ) . replaceFirst ( STRING2 , STRING3 ) ; if ( path . startsWith ( STRING5 ) ) path = path . substring ( NUMBER0 ) ; buffer . append ( asset . type . code ) ; buffer . append ( STRING6 ) ;
Don t remove assets from file names
<nb> public class AndroidUtils { handler . startNotify ( ) ; try { if ( timeout != null ) { - handler . waitFor ( timeout ) ; + if ( timeout > NUMBER0 ) { + handler . waitFor ( timeout ) ; + } } else { handler . waitFor ( ) ;
do not invoke waitFor if timeout is zero
<nb> public class ListView extends AbsListView { if ( mChoiceMode == CHOICE_MODE_MULTIPLE ) { mCheckStates . put ( position , value ) ; } else { - SINGLE - SINGLE - mCheckStates . clear ( ) ; - SINGLE + SINGLE + SINGLE + if ( value || isItemChecked ( position ) ) { + mCheckStates . clear ( ) ; + } SINGLE - SINGLE + SINGLE if ( value ) { mCheckStates . put ( position , true ) ; }
ListView setItemChecked p false always clears all items
<nb> final class AggregationIterator implements SeekableView , DataPoint , SeekableView it = iterators [ i ] ; it . seek ( start_time ) ; final DataPoint dp ; - try { - dp = it . next ( ) ; - } catch ( NoSuchElementException e ) { - SINGLE - SINGLE - SINGLE - SINGLE + if ( ! it . hasNext ( ) ) { ++ num_empty_spans ; endReached ( i ) ; continue ; } + dp = it . next ( ) ; SINGLE if ( dp . timestamp ( ) >= start_time ) { SINGLE
Improve query performance in the AggregationIterator by calling
<nb> public class VCardTest extends SmackTestCase { super ( arg0 ) ; } - public void testBigFunctional ( ) { + public void testBigFunctional ( ) throws XMPPException { VCard origVCard = new VCard ( ) ; origVCard . setFirstName ( STRING0 ) ;
Added throws XMPPException to testBigFunctional
<nb> public final class KeyChain { public static final String ACCOUNT_TYPE = STRING0 ; COMMENT + COMMENT + COMMENT + private static final String KEYCHAIN_PACKAGE = STRING0 ; + + COMMENT COMMENT COMMENT private static final String ACTION_CHOOSER = STRING1 ; <nb> public final class KeyChain { throw new NullPointerException ( STRING2 ) ; } Intent intent = new Intent ( ACTION_CHOOSER ) ; - intent . setPackage ( CERT_INSTALLER_PACKAGE ) ; + intent . setPackage ( KEYCHAIN_PACKAGE ) ; intent . putExtra ( EXTRA_RESPONSE , new AliasResponse ( response ) ) ; intent . putExtra ( EXTRA_HOST , host ) ; intent . putExtra ( EXTRA_PORT , port ) ;
Use the correct package name for CHOOSER
<nb> public class Downloader { logger . log ( Level . FINE , STRING0 + multiChunkId + STRING1 ) ; localDecryptedMultiChunkFile . delete ( ) ; + + throw e ; } finally { logger . log ( Level . FINE , STRING2 + multiChunkId + STRING1 ) ;
Delete multichunk from cache if decryption failed
<nb> public final class SecurityClassLoad { loadJavaxPackage ( loader ) ; loadCoyotePackage ( loader ) ; loadHttp11Package ( loader ) ; + loadTomcatPackage ( loader ) ; } <nb> public final class SecurityClassLoad { STRING0 ) ; } + private final static void loadTomcatPackage ( ClassLoader loader ) + throws Exception { + String basePackage = STRING1 ; + loader . loadClass ( basePackage + STRING2 ) ; + } }
Pre load a class required for apps to obtain the SSL key size when running under a security manager