diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class ConversationActivity extends XmppActivity MenuItem pgp = popup . getMenu ( ) . findItem ( R . id . encryption_choice_pgp ) ; MenuItem axolotl = popup . getMenu ( ) . findItem ( R . id . encryption_choice_axolotl ) ; pgp . setVisible ( ! Config . HIDE_PGP_IN_UI && ! Config . X509_VERIFICATION ) ;...
fixed unencrypted not showing up for conferences when encryption is forced
<nb> class Http2Parser { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Correct a comment typo
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - public class PortalActivity extends FragmentActivity implements PickDateFragment . PickDateListener { + public class PortalActivity extends FragmentActivity + implements PickDateFragment . PickDateListener { private static final int ACTION_PR...
Improve code style
<nb> public class KafkaProducer extends DefaultAsyncProducer { protected void doStart ( ) throws Exception { Properties props = getProps ( ) ; if ( kafkaProducer == null ) { - kafkaProducer = new org . apache . kafka . clients . producer . KafkaProducer ( props ) ; + ClassLoader threadClassLoader = Thread . c...
Fix for kafka partitioner static initializer in OSGI env
<nb> public class FrameGenerator SINGLE new CloseInfo ( frame . getPayloadData ( ) , true ) ; } - SINGLE - buffer . put ( frame . getPayloadData ( ) ) ; + SINGLE + if ( frame . hasPayload ( ) ) + { + buffer . put ( frame . getPayloadData ( ) ) ; + } int positionPostPayload = buffer . position ( ...
fixing a test issue
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; public class ShellTest extends TestCase <nb> public class ShellTest extends TestCase assertException ( STRING0 ) ; } + + public void testEnableRemoteShell ( ) throw...
Added a test which starts an EmbeddedGraphDatabaseService enables its
<nb> COMMENT package NAMESPACE ; + import static NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ServerProcess extends SubProcess < ServerInterface , String > implement @ override protected void startup ( String parameter ) throws Throwable { - db = new...
Fixed a problem with a test
<nb> public class GroovyPageTagBody extends Closure { if ( args != null ) { if ( args instanceof Map ) { - bodyClosure . setResolveStrategy ( Closure . DELEGATE_FIRST ) ; Map delegate = binding . getVariables ( ) ; final Map argMap = ( Map ) args ; delegate . putAll ( argMap ) ; try { - bodyClosur...
original change broke method invocations inside tag body
<nb> public interface Graphics { COMMENT COMMENT public enum GraphicsType { - AndroidGL , LWJGL , Angle , WebGL , iOSGL , JGLFW + AndroidGL , LWJGL , Angle , WebGL , iOSGL , JGLFW , Mock } COMMENT
add headless GraphicsType
<nb> public class PsiMethodReferenceExpressionImpl extends PsiReferenceExpressionBase final PsiReferenceParameterList parameterList = getParameterList ( ) ; return parameterList != null && parameterList . getTypeParameterElements ( ) . length > NUMBER0 ? psiMethod : null ; } + if ( psiMethod . isConstructor ( )...
decline constructor with parameter with type parameter of class
<nb> public class XaLogicalLog } else { - setActiveLog ( LOG1 ) ; open ( fileName + STRING0 ) ; + setActiveLog ( LOG1 ) ; } } else <nb> public class XaLogicalLog throw new IllegalStateException ( STRING1 + newLog + STRING2 ) ; } - setActiveLog ( LOG1 ) ; open ( newLog ) ; + setActiveLog ...
Fixed bug that during logical log create that set active log before
<nb> public final class JmsMessageHelper implements JmsConstants { } else { throw new JMSException ( STRING0 ) ; } + break ; default : break ; }
Fixed the CS error of camel sjms
<nb> public class SimpleThreadScope implements Scope { private static final Log logger = LogFactory . getLog ( SimpleThreadScope . class ) ; - private static final ThreadLocal < Map < String , Object > > threadScope = + private final ThreadLocal < Map < String , Object > > threadScope = new NamedThreadLocal...
switched to instance variable
<nb> public class Dream extends Service implements Window . Callback { private final String TAG = Dream . class . getSimpleName ( ) + STRING0 + getClass ( ) . getSimpleName ( ) + STRING1 ; COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class Dream extends Service implements Window . C...
Fix javadocs to fix build
<nb> public class BytecodeHelper implements Constants { if ( value > Byte . MIN_VALUE && value < Byte . MAX_VALUE ) { cv . visitIntInsn ( BIPUSH , value ) ; } - else { + else if ( value > Short . MIN_VALUE && value < Short . MAX_VALUE ) { cv . visitIntInsn ( SIPUSH , value ) ; } + else { + cv . visitL...
added support for Int based constants
<nb> public class Activator implements BundleActivator , BundleTrackerCustomizer { resolvers . add ( new BundleScriptEngineResolver ( bundle , configURL ) ) ; } } - public static interface ScriptEngineResolver { + public interface ScriptEngineResolver { ScriptEngine resolveScriptEngine ( String name ) ; }...
Fix the CS error of camel script
<nb> public class PackageScanDefinition { return packages ; } + public void setPackages ( List < String > packages ) { + this . packages = packages ; + } + + public void setExcludes ( List < String > excludes ) { + this . excludes = excludes ; + } + + public void setIncludes ( List < String > in...
Added setters for people configuring camel using old spring bean style
<nb> public abstract class ActivatableNotificationView extends ExpandableOutlineView private void makeInactive ( ) { if ( mActivated ) { SINGLE - mBackgroundDimmed . setHotspot ( NUMBER0 , getWidth ( ) / NUMBER1 , getActualHeight ( ) / NUMBER1 ) ; - mBackgroundDimmed . removeHotspot ( NUMBER0 ) ; + if ( mBa...
Fix crash in ActivatableNotificationView
<nb> final class RequestLogger { COMMENT COMMENT static void logFailedRequest ( Log logger , HttpUriRequest request , HttpHost host , IOException e ) { - logger . debug ( STRING0 + request . getMethod ( ) + STRING1 + host + getUri ( request . getRequestLine ( ) ) + STRING2 , e ) ; + if ( logger . isDebugEnabl...
wrap log statement in logger isDebugEnabled
<nb> import NAMESPACE ; import NAMESPACE ; - SINGLE public class HashGridSampler implements SampleSource { private static final Logger LOG = LoggerFactory . getLogger ( HashGridSampler . class ) ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT - @ component public class SampleCache implements...
remove component annotations
<nb> public class TestEntitlement extends TestJaxrsBase { SINGLE Subscription objFromJson = killBillClient . getSubscription ( entitlementJson . getSubscriptionId ( ) ) ; + SINGLE + objFromJson . setPriceOverrides ( null ) ; + entitlementJson . setPriceOverrides ( null ) ; + Assert . assertTrue ( objFro...
Fix TestEntitlement hack until java client gets released
<nb> public class DatabaseTest { @ test public void shouldEnableRemoteShellByDefault ( ) throws IOException { - int wellKnownSocket = NUMBER0 * NUMBER1 ; SINGLE + int wellKnownSocket = NUMBER0 ; Socket rmiSocketToServer = new Socket ( STRING0 , wellKnownSocket ) ; assertTrue ( rmiSocketToServer . isBound ...
Close the socket after we ve used it
<nb> public abstract class Editor extends JFrame implements RunnerListener { } SINGLE String selection = getSelectedText ( ) ; - if ( selection != null && selection . length ( ) != NUMBER0 ) { + if ( selection != null && selection . length ( ) != NUMBER0 && + ! selection . contains ( STRING0 ) ) { find . ...
don t use selection for find when newlines are included
<nb> import NAMESPACE ; public class UDPAckAck extends UDP { SINGLE - AutoBuffer call ( AutoBuffer ab ) { + @ override AutoBuffer call ( AutoBuffer ab ) { ab . _h2o . remove_task_tracking ( ab . getTask ( ) ) ; return ab ; } SINGLE - public String print16 ( AutoBuffer ab ) { return STRING0 + ab . ...
Add Override tags
<nb> public interface HystrixCircuitBreaker { public void markSuccess ( ) { if ( circuitOpen . get ( ) ) { - SINGLE - SINGLE - metrics . resetStream ( ) ; - SINGLE - circuitOpen . set ( false ) ; + if ( circuitOpen . compareAndSet ( true , false ) ) { + SINGLE + SINGLE + SINGLE + metrics . res...
Ensure only a single thread can reset the command health stream
<nb> final class Pipe { } } lock . notifyAll ( ) ; + int tail = Pipe . this . tail ; try { return buffer [ tail ++ ] & NUMBER0 ; } finally { + Pipe . this . tail = tail == buffer . length ? NUMBER1 : tail ; size -- ; } }
Fix the pipe
<nb> public final class ContentService extends IContentService . Stub { SINGLE String segment = getUriSegment ( uri , index ) ; + if ( segment == null ) { + throw new IllegalArgumentException ( STRING0 + uri + STRING1 ) ; + } int N = mChildren . size ( ) ; for ( int i = NUMBER0 ; i < N ; i ++ ) { Obse...
Don t allow invalid Uris to be added as observers
<nb> COMMENT package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> class FileDescriptionCachedValueProvider < T extends DomElement > implements SemEle public final DomFileElementImpl < T > getFileElement ( ) { if ( myComputed ) return myLastResult ; ...
don t write logs
<nb> public class Execution { } SINGLE if ( target != null ) { - SINGLE + SINGLE fillField ( class2object . get ( target . getDeclaringClass ( ) ) , target , value ) ; } else if ( ensureAllOptions ) { SINGLE
Remove a stray z
<nb> package NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; public class DropUniqueConstraintStatement implements SqlStatement { <nb> public class DropUniqueConstraintStatement implements SqlStatement { retu...
add drop index clause for oracle
<nb> import NAMESPACE ; } } + if ( maximumWeightsPerVertex == NUMBER0 ) { + LOGGER . fine ( STRING0 ) ; + return null ; + } + LOGGER . fine ( STRING1 ) ; FloatBuffer weightsFloatData = BufferUtils . createFloatBuffer ( vertexListSize * MAXIMUM_WEIGHTS_PER_VERTEX ) ; ByteBuffer indicesData = Buffer...
fixed a bug that caused importer to fail when mesh had armature
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class WXSDKManager { private IWXDebugAdapter mIWXDebugAdapter ; private IActivityNavBarSetter mActivityNavBarSetter ; - private static AtomicInt...
android update remove count
<nb> package NAMESPACE ; import NAMESPACE ; + import static NAMESPACE ; + public abstract class Runner { public static void running ( final HttpServer httpServer , final Runnable runnable ) throws Exception { - doRunning ( runner ( httpServer ) , runnable ) ; + doRunning ( runner ( checkNotNull ( http...
added argument check for running
<nb> public class NetworkCatalogTree extends NetworkTree { @ override public String getName ( ) { - return Item . Title . toString ( ) ; + return Item . Title != null ? Item . Title . toString ( ) : STRING0 ; } @ override
fixed possible NPE
<nb> public final class CipherSuiteConverter { STRING0 + SINGLE STRING1 + STRING2 + - STRING3 + + STRING4 + STRING5 + STRING6 + STRING7 +
Add RSA as option for the first element in the handshake algorithm pattern
<nb> public class HBaseStoreManager extends DistributedStoreManager implements KeyCol private static final BiMap < String , String > SHORT_CF_NAME_MAP = ImmutableBiMap . < String , String > builder ( ) - . put ( INDEXSTORE_NAME , STRING0 ) + . put ( INDEXSTORE_NAME , STRING1 ) + . put ( INDEXSTORE_NAME + LO...
Updating HBase short CF names
<nb> package NAMESPACE ; import static NAMESPACE ; - import static NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; + STRING0 + STRING1 + STRING2 , - category = ONE_OFF , severity = ERROR , maturity = EXPERIMENTAL ) + category = ONE...
Promote ProtoFieldNullComparison checker to MATURE
<nb> public abstract class OServerCommandAuthenticatedServerAbstract extends OServerC } protected boolean checkGuestAccess ( ) { - return server . isAllowed ( OServerConfiguration . GUEST_USER , resource ) ; + return server . isAllowed ( OServerConfiguration . SRV_ROOT_GUEST , resource ) ; } protected v...
Revert Fixed issue after last merging of PR
<nb> public class SVGDrawingPanel extends RoundedJPanel implements ComponentListener getListener ( ) . onMorphingChanges ( currentStep ) ; SINGLE - updateUI ( ) ; + if ( SwingUtilities . isEventDispatchThread ( ) ) { + updateUI ( ) ; + } else { + SwingUtilities . invokeLater ( new Runnable ( ) { + pub...
Redraw animation on JPanel in thread
<nb> public class DynamicToolWindowWrapper { } } , KeyStroke . getKeyStroke ( KeyEvent . VK_F2 , InputEvent . CTRL_MASK ) , JComponent . WHEN_FOCUSED ) ; - myTreeTable . setAutoCreateRowSorter ( true ) ; - myTreeTable . getTree ( ) . setShowsRootHandles ( true ) ; myTreeTable . getTableHeader ( ) . setReo...
don t sort elements at all
<nb> import NAMESPACE ; @ runwith ( HazelcastJUnit4ClassRunner . class ) @ category ( SerialTest . class ) + @ ignore public class SslSocketTest { private static String keyStore ;
Ignoring SSL test for now
<nb> public class __ACTIVITY__ extends CordovaActivity SINGLE Bundle extras = getIntent ( ) . getExtras ( ) ; if ( extras != null && extras . getBoolean ( STRING0 , false ) ) { - moveTaskToBack ( true ) ; + moveTaskToBack ( true ) ; } SINGLE
Fix tab space issue
<nb> public class PGraphics extends PImage implements PConstants { COMMENT COMMENT public void text ( String str , float x , float y ) { + if ( textFont == null ) { + throw new RuntimeException ( STRING0 ) ; + } + if ( textMode == SCREEN ) loadPixels ( ) ; int length = str . length ( ) ;
include an error when textFont not set
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class CxxBinaryIntegrationTest { } @ test + @ ignore ( STRING0 ) public void testInferCxxBinaryWithDeps ( ) throws IOException { Path inferTopLevel = InferHelp...
Disable CxxBinaryIntegrationTest testInferCxxBinaryWithDeps timing out in CI
<nb> public class DefaultProjectAccessListener implements ProjectAccessListener { public void beforeRequestingTaskByPath ( ProjectInternal targetProject ) { targetProject . evaluate ( ) ; - SINGLE } - public void beforeResolvingProjectDependency ( ProjectInternal dependencyProject ) { - dependencyProjec...
Don t realise the task container when resolving project dependencies
<nb> public final class HttpHeaderUtil { static void encodeAscii0 ( CharSequence seq , ByteBuf buf ) { int length = seq . length ( ) ; for ( int i = NUMBER0 ; i < length ; i ++ ) { - buf . writeByte ( ( byte ) seq . charAt ( i ) ) ; + buf . writeByte ( c2b ( seq . charAt ( i ) ) ) ; } } + private stat...
Safely encode Strings to ASCII
<nb> public class ServerStoredContactListIcqImpl COMMENT void init ( SsiService joustSimSsiService , OperationSetPersistentPresenceIcqImpl parentOperationSet , + ProtocolProviderServiceIcqImpl icqProvider ) { + SINGLE + SINGLE + this . parentOperationSet = parentOperationSet ; + + this . icqProvid...
init the opersation set and protocol provider before adding listeners
<nb> public class RefineTest { try { verify ( options , times ( NUMBER0 ) ) . get ( name ) ; } catch ( JSONException e ) { - SINGLE - e . printStackTrace ( ) ; + Assert . fail ( STRING0 , e ) ; } } <nb> public class RefineTest { try { verify ( options , times ( NUMBER0 ) ) . getJSONArray ( name ...
Provide exception info for failures
<nb> public class RollingUpdateService extends AbstractIdleService { SINGLE for ( final String host : allHosts ) { final HostStatus hostStatus = masterModel . getHostStatus ( host ) ; - hostsToLabels . put ( host , hostStatus . getLabels ( ) ) ; + if ( hostStatus != null ) { + hostsToLabels . put ( host , h...
Fix NPE in UpdateDeploymentGroupHosts
<nb> public class CompileStack implements Opcodes { } COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT - COMMENT - COMMENT + ...
javadoc only remove warning and tidy up wording
<nb> package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; public abstract class AbstractCharReplacementEncoder implements Encoder , StreamingEncoder { + protected String codecName ; + public AbstractCharReplacementEncoder...
add default getCodecName impl
<nb> public class ActFmInvoker { String url = URL ; if ( method . startsWith ( STRING0 ) ) - url = url . replaceAll ( STRING1 , STRING2 ) ; + url = url . replaceAll ( STRING3 , STRING2 ) ; StringBuilder requestBuilder = new StringBuilder ( URL ) . append ( method ) . append ( STRING4 ) ; StringBuilder sig...
Fixed regexp that was broken
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; + COMMENT COMMENT
Fixed a missing import
<nb> public abstract class MRTask extends DRemoteTask { returnReservedMemory ( ) ; return super . onExceptionalCompletion ( ex , caller ) ; } + + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + SINGLE + public final int lo ( ) { return _lo ; } + public final int hi ( ) { return _hi ; } ...
add debugging accessors
<nb> public class TodoTxtTouch extends SherlockListActivity implements COMMENT public void onClearClick ( View v ) { + clearFilter ( ) ; + SINGLE Intent intent = getIntent ( ) ; if ( Intent . ACTION_SEARCH . equals ( intent . getAction ( ) ) ) { finish ( ) ; } else { SINGLE - clearFilter ( ) ; s...
Fix NullPointerException in clearChoices
<nb> SINGLE package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class TSSubQuery { return tsuids ; } - COMMENT + COMMENT public Map < String , String > getTags ( ) { + if ( tags == null ) { + return Collections . emptyMap ( ...
Fix bug in JSON query that throws a Null pointer exception when a user does
<nb> public class BlockGenericPipe extends BlockBuildCraft { } private boolean skippedFirstIconRegister ; + private ItemPipe itemPipe ; COMMENT public BlockGenericPipe ( ) { <nb> public class BlockGenericPipe extends BlockBuildCraft { @ override public IIcon getIcon ( int side , int meta ) { - r...
BlockGenericPipe now returns proper pipe icon might help WAILA icon rendering
<nb> SINGLE SINGLE SINGLE + package NAMESPACE ; import static NAMESPACE ;
Fixing license header formatting on new file
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; public abstract class BuildCraftContainer extends BCContainer_BC8 { <nb> - package NAMESPACE ; + package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import ...
Fix spelling mistake
<nb> public class KeyedResourcePool < K , V > { COMMENT COMMENT COMMENT - public synchronized void reset ( K key ) { + public void reset ( K key ) { Pool < V > resourcePool = getResourcePoolForExistingKey ( key ) ; List < V > list = resourcePool . close ( ) ; for ( V value : list )
Remove an unnecessary synchronization primitive from keyedresourcepool
<nb> class BluetoothEventLoop { COMMENT private void onDeviceCreated ( String deviceObjectPath ) { String address = mBluetoothService . getAddressFromObjectPath ( deviceObjectPath ) ; + if ( address == null ) { + Log . e ( TAG , STRING0 + STRING1 + + deviceObjectPath ) ; + return ; + } if ( ! mBluetoo...
Check null of address in onDeviceCreated
<nb> public abstract class DB { COMMENT COMMENT - COMMENT COMMENT COMMENT COMMENT
Remove erroneous JavaDoc
<nb> public final class Calendar { COMMENT COMMENT public static final String _SYNC_DIRTY = STRING0 ; + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public static final String ACCOUNT_NAME = STRING1 ; + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public static final Stri...
Make ACCOUNT_NAME ACCOUNT_TYPE consistent
<nb> public class Class extends Member { List < Member > withoutPrivate = new LinkedList < Member > ( ) ; if ( Converter . hasSetting ( STRING0 ) ) { for ( Member m : members ) { - if ( m . accessModifier ( ) . equals ( STRING1 ) || m . accessModifier ( ) . equals ( STRING2 ) || m . accessModifier ( ) . isEmpty...
don t show package local functions when public key is switch on
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT COMMENT public class FastJSONArrayDatabind { <nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT COMMENT public class FastJSONDatabind {
fixed dead link
<nb> public class PyRefactoringUtil { final PyElementGenerator generator = PyElementGenerator . getInstance ( project ) ; final LanguageLevel langLevel = LanguageLevel . forElement ( element1 ) ; final PyExpression expression = generator . createFromText ( langLevel , PyAssignmentStatement . class , STRING0 + sel...
Fix possible NPE during expression extraction refactoring
<nb> public abstract class AbstractCachesTest { @ after public void stop ( ) { - caches . stop ( ) ; - caches = null ; + if ( caches != null ) { + caches . stop ( ) ; + caches = null ; + } } @ afterclass public static void stopClass ( ) { - cachesManager . stop ( ) ; - cachesManager = null...
Avoid additional NPE on test failure
<nb> public class ConsolePane extends WorkbenchPane protected SecondaryToolbar createSecondaryToolbar ( ) { SecondaryToolbar toolbar = new SecondaryToolbar ( true ) ; + toolbar . addLeftWidget ( commands_ . debugStep ( ) . createToolbarButton ( ) ) ; + toolbar . addLeftSeparator ( ) ; toolbar . addLeftWidge...
move next button to left side of console debug context toolbar
<nb> public class ATOMXMLReader < MetadataType extends ATOMFeedMetadata , EntryType exten case FE_UPDATED : if ( ns == XMLNamespaces . Atom && tag == TAG_UPDATED ) { SINGLE - if ( ATOMDateConstruct . parse ( bufferContent , myUpdated ) ) { - myEntry . Updated = myUpdated ; + try { + if ( ATOMDateConstruct...
fixed possible out of bounds
<nb> public class ContactPhotoLabel extends JLabel = ImageUtils . scaleIconWithinBounds ( photoFrameImage , width , height ) ; + + this . setAlignmentX ( CENTER_ALIGNMENT ) ; + this . setAlignmentY ( CENTER_ALIGNMENT ) ; } COMMENT
Align centrally contact avatar in chat window
<nb> public class RefreshFolderOperation extends SyncOperation { Log_OC . d ( TAG , STRING0 + mAccount . name + mLocalFolder . getRemotePath ( ) + STRING1 ) ; ReadRemoteFolderOperation readFolderOperation = new ReadRemoteFolderOperation ( - mIgnoreETag ? STRING2 : mLocalFolder . getRemotePath ( ) , - mLocalFo...
Fix folder refresh on pull down
<nb> public final class ServiceLoader { private static final ILogger LOGGER = Logger . getLogger ( ServiceLoader . class ) ; private static final String FILTERING_CLASS_LOADER = FilteringClassLoader . class . getCanonicalName ( ) ; + SINGLE + private static final String IGNORED_GLASSFISH_MAGIC_CLASSLOADER = ...
Ignore resources loaded by a magic classloader in Glassfish
<nb> public final class AnalyzerFacade { } } - SINGLE - SINGLE @ notnull public static List < JetFile > withJsLibAdded ( @ notnull List < JetFile > files , @ notnull Config config ) { List < JetFile > allFiles = new ArrayList < JetFile > ( ) ; <nb> import static NAMESPACE ; COMMENT COMMENT COMME...
Remove outdated TODOs
<nb> public class MessagingController implements Runnable notif . ledOnMS = K9 . NOTIFICATION_LED_ON_TIME ; notif . ledOffMS = K9 . NOTIFICATION_LED_OFF_TIME ; - notif . number = unreadMessageCount ; notifMgr . notify ( account . getAccountNumber ( ) , notif ) ; } <nb> public class MessagingController i...
Throwing the Exception will at least cause the exponential back off
<nb> public class ObjectHandler6 implements ObjectHandler { @ override public Object handleObject ( Object parent , Scope scope , String name ) { + if ( parent == null ) return null ; Object value = null ; Class aClass = parent . getClass ( ) ; Map < String , AccessibleObject > members ;
handle an edge case where the parent is null
<nb> public final class HttpConnection { return new FixedLengthSource ( length ) ; } - COMMENT - COMMENT - COMMENT - COMMENT - public void emptyResponseBody ( ) throws IOException { - newFixedLengthSource ( NUMBER0 L ) ; SINGLE - } - public Source newChunkedSource ( HttpEngine httpEngine ) throw...
Remove unused method
<nb> import NAMESPACE ; COMMENT public class DebugLoadMoreActivity extends AppCompatActivity { - UltimateRecyclerView ultimateRecyclerView ; - sectionZeroAdapter simpleRecyclerViewAdapter = null ; - LinearLayoutManager linearLayoutManager ; - int moreNum = NUMBER0 ; + private UltimateRecyclerView ultima...
update load more actions
<nb> public class View implements Drawable . Callback2 , KeyEvent . Callback , Accessibilit if ( mAttachInfo != null ) { mAttachInfo . mHandler . removeMessages ( AttachInfo . INVALIDATE_MSG , this ) ; - mAttachInfo . mHandler . removeMessages ( AttachInfo . INVALIDATE_RECT_MSG , this ) ; } mCurrentAnimat...
Prevent a leak when using View postInvalidate left top right bottom
<nb> import NAMESPACE ; public final class Injector { - public static ObjectGraph objectGraph = null ; SINGLE + private static ObjectGraph objectGraph = null ; public static void init ( final Object rootModule ) { <nb> public class LogoutService { return removeAccountFuture . getResult ( ) ; } }...
Fixed leftover TODOs
<nb> public class Java2GroovyMain { return header + new String ( baos . toByteArray ( ) ) ; } - COMMENT - COMMENT - COMMENT - COMMENT private static void groovifyFatJavaLikeGroovyAST ( AST ast , String [ ] groovyTokenNames ) { Visitor groovifier = new Groovifier ( groovyTokenNames ) ; AntlrASTProces...
removed empty javadoc comments for private methods so that javadoc warnings disappear
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MemcachedCacheBroker implements CacheBroker config . getExpiration ( ) ) ; } catch ( IOException e ) { - throw new RuntimeException ( e ) ; + throw Throwables . propagate ( ...
properly propagate exceptions
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class PaneManager protected void onComplete ( ) { isAnimating_ = false ; + panel_ . onSplitterResized ( new SplitterResizedEv...
update cached splitter position on resize
<nb> public class ObjectsTest { final Boolean actual = Objects . toBoolean ( new byte [ ] { } ) ; assertThat ( actual ) . isEqualTo ( null ) ; } - - public static void main ( String [ ] args ) { - final Object o = new byte [ ] { } ; - System . out . println ( STRING0 + ( o instanceof String ) ) ; - Syst...
removed test method
<nb> class SpdyHeaderBlockZlibCompressor extends SpdyHeaderBlockCompressor { @ override public void encode ( ByteBuf compressed ) { - while ( ! compressor . needsInput ( ) ) { - int numBytes = compressor . deflate ( out , NUMBER0 , out . length , Deflater . SYNC_FLUSH ) ; + int numBytes = out . length ; +...
fix improper use of SYNC_FLUSH in SpdyHeaderBlockZlibCompressor
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT COMMENT COMMENT + @ ignore public class JettyHttpProducerSuspendWhileInProgressTest extends BaseJettyTest { private String serverUri = STRING0 + getPort ( ) + STRING...
Skipping test which doesnt work well on all boxes
<nb> public abstract class CQLTester private String currentTable ; private final Set < String > currentTypes = new HashSet < > ( ) ; - private final Set < String > currentTypes = new HashSet < > ( ) ; - @ beforeclass public static void setUpClass ( ) throws Throwable {
Fix test built
<nb> public class CommandParser { state = STATE_RANGE_MARK ; } else if ( ch == STRING0 || ch == STRING1 ) { - location . append ( STRING2 ) ; + location . append ( STRING3 ) ; state = STATE_RANGE_OFFSET ; } else if ( ch == STRING4 ) { <nb> public class SubstituteCommandTest extends VimTestCase { STR...
Fix incorrect behavior in substitution with offset ranges
<nb> public class FluidRenderer { public static ResourceLocation getFluidSheet ( Fluid liquid ) { return BLOCK_TEXTURE ; } + + public static void colorFluid ( FluidStack fluidstack ) { + if ( fluidstack == null ) return ; + int color = fluidstack . getFluid ( ) . getColor ( fluidstack ) ; + float red = ...
Adds colorFluid Helper to FluidRenderer
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; impor...
Added types to generic collections
<nb> public class OTPObjectMapperProvider implements ContextResolver < ObjectMapper > { SINGLE SINGLE SINGLE - SimpleModule module = new SimpleModule ( STRING0 , Version . unknownVersion ( ) ) ; + Version moduleVersion = new Version ( NUMBER0 , NUMBER1 , NUMBER1 , null , null , null ) ; + SimpleModule modul...
give the OTP Jackson module a real version
<nb> public class DriverConnection implements AutoCloseable private volatile boolean statusMessagesEnabled = false ; private volatile boolean scanForGapsEnabled = true ; - private volatile boolean possibleGapDetected = false ; - public DriverConnection ( final ReceiveChannelEndpoint channelEndpoint , fi...
revert change to reduce scans that also has the unfortunate side effect of not allowing LossHandler to rotate terms
<nb> public abstract class HTTP2Session implements ISession , Parser . Listener else { PingFrame reply = new PingFrame ( frame . getPayload ( ) , true ) ; - ping ( reply , disconnectCallback ) ; + control ( null , reply , disconnectCallback ) ; } return false ; }
replaced call to ping with control since
<nb> package NAMESPACE ; COMMENT COMMENT public class WorldEditPermissionException extends WorldEditException { + private static final long serialVersionUID = NUMBER0 ; + public WorldEditPermissionException ( ) { super ( STRING0 ) ; }
Fixed a warning
<nb> public class CommandLineCompilerArgumentsToOptionFile < T extends BinaryToolSpec > public void collectArguments ( T spec , ArgCollector collector ) { GFileUtils . mkdirs ( spec . getTempDir ( ) ) ; - File optionsFile = new File ( spec . getTempDir ( ) , STRING0 ) ; + File optionsFile = new File ( spec . ...
Renamed compiler options
<nb> public class OsmandMapTileView implements IMapDownloaderCallback { if ( event . getAction ( ) == MotionEvent . ACTION_DOWN ) { animatedDraggingThread . stopAnimating ( ) ; } - for ( int i = layers . size ( ) - NUMBER0 ; i >= NUMBER1 ; i -- ) { - layers . get ( i ) . onTouchEvent ( event , getCurrentRotat...
avoid false touches during operations
<nb> public class NettyCometSupport extends AsynchronousProcessor { req . setAttribute ( SUSPEND , action ) ; req . setAttribute ( HOOK , new CometSupportHook ( req , res ) ) ; } else if ( action . type == AtmosphereFramework . Action . TYPE . RESUME ) { + req . setAttribute ( SUSPEND , action ) ; + SINGLE ...
Always pass back the action to the underlying container
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class StatsAbstractFragment extends Fragment { SINGLE if ( ! currentBlog . isDotcomFlag ( ) - && ! currentBlog . hasValidJetpackCredent...
Fix an issue with Jetpack Stats where the default
<nb> public class Server { } private void launchCommunicationHandler ( ) { - this . serverCommunicationHandler = ServerCommunicationHandlerFactory . getInstance ( ) . getProcessManagerSlave ( environment , messageHandler ) ; + this . serverCommunicationHandler = ServerCommunicationHandlerFactory . getInstance...
Fix method name to reflect return type
<nb> public class ChatRoomQuery final ChatRoom chatRoom ) { return contact . getProvider ( ) == chatRoom . getParentProvider ( ) - && contact . getContactAddress ( ) . equals ( chatRoom . getIdentifier ( ) ) ; + && chatRoom . getIdentifier ( ) . equals ( contact . getContactAddress ( ) ) ; } COMMENT
Fix possible NPE
<nb> class UpdateInfoDialog extends AbstractUpdateDialog { private void downloadPatch ( ) { try { UpdateChecker . installPlatformUpdate ( myPatch , myLatestBuild . getNumber ( ) , myForceHttps ) ; + if ( myUpdatedPlugins != null && ! myUpdatedPlugins . isEmpty ( ) ) { + new PluginUpdateInfoDialog ( getContent...
fixed restarting after installing update via patch