diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> abstract class InlineMethodResolver {
public DeodexUtil . InlineMethod resolveExecuteInline ( AnalyzedInstruction analyzedInstruction ) {
assert analyzedInstruction . instruction instanceof OdexedInvokeVirtual ;
- OdexedInvokeVirtual instruction = ( OdexedInvokeVirtual ) analyzedInstruction ;
+ OdexedInv... | Fix invalid cast when deodexing an execute inline instruction on an odex file from eclair or earlier |
<nb> public class StateEditor {
public void setInitialWaitTime ( long initialWaitTime ) {
cloneStateDataAsNeeded ( ) ;
- LOG . debug ( STRING0 , initialWaitTime ) ;
+ SINGLE
child . stateData . initialWaitTime = initialWaitTime ;
} | comment out initial wait debug message |
<nb> public class RebalanceDatasetTest extends TestUtil {
@ test public void testProstate ( ) {
NFSFileVec [ ] nfs = new NFSFileVec [ ] {
NFSFileVec . make ( find_test_file ( STRING0 ) ) ,
- NFSFileVec . make ( find_test_file ( STRING1 ) ) ,
- NFSFileVec . make ( find_test_file ( STRING2 ) ) } ;
+ NFSFileVe... | Remove bigdata test file not available |
<nb> package NAMESPACE ;
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Adding some comments |
<nb> public class OCommandExecutorSQLDelete extends OCommandExecutorSQLAbstract imple
}
public String getSyntax ( ) {
- return STRING0 ;
+ return STRING1 ;
}
private Object getIndexKey ( final OIndexDefinition indexDefinition , Object value ) { | Created new command to remove the edges |
<nb> public enum Opcode
}
private static int maxApi ( int api ) {
- return NUMBER0 | ( api < < NUMBER1 ) ;
+ return api < < NUMBER1 ;
}
public final short value ; | Fix issue with opcodes that have a max api |
<nb> public class ForgeHooks
SINGLE
public static final int majorVersion = NUMBER0 ;
SINGLE
- public static final int minorVersion = NUMBER1 ;
+ public static final int minorVersion = NUMBER2 ;
SINGLE
public static final int revisionVersion = NUMBER0 ;
SINGLE | Bump version number for official release |
<nb> public abstract class BaseCheckTestSupport
public static DefaultConfiguration createCheckConfig ( Class < ? > aClazz )
{
- final DefaultConfiguration checkConfig =
- new DefaultConfiguration ( aClazz . getName ( ) ) ;
- return checkConfig ;
+ return new DefaultConfiguration ( aClazz . getName ( ) ) ;... | Remove unnecessary local variables |
<nb> public class TFsShellTest {
}
@ test
+ public void loadFileTest ( ) throws IOException {
+ TachyonFSTestUtils . createByteFile ( mTfs , STRING0 , WriteType . THROUGH , NUMBER0 ) ;
+ SINGLE
+ mFsShell . loadFile ( new String [ ] { STRING1 , STRING0 } ) ;
+ Assert . assertTrue ( mTfs . getFile ( new ... | add loadFile test |
<nb> public class FeatureToggles extends SherlockActivity implements ActionBar . TabLis
findViewById ( R . id . display_tab_remove ) . setOnClickListener ( new View . OnClickListener ( ) {
@ override
public void onClick ( View view ) {
- getSupportActionBar ( ) . removeTabAt ( getSupportActionBar ( ) . getTabCo... | Only remove tabs if there are tabs |
<nb> public final class JsDocInfoParser {
COMMENT
COMMENT
private JsDocToken parseSuppressTag ( JsDocToken token ) {
- if ( token == JsDocToken . LEFT_CURLY ) {
+ if ( token != JsDocToken . LEFT_CURLY ) {
+ parser . addParserWarning ( STRING0 ,
+ stream . getLineno ( ) , stream . getCharno ( ) ) ;
+ } e... | Report a parser warning for an suppress with nothing after it |
<nb> public class ExpressionTypingVisitorDispatcher extends JetVisitor < JetTypeInfo , E
}
if ( result . getType ( ) instanceof DeferredType ) {
- result = JetTypeInfo . create ( ( ( DeferredType ) result . getType ( ) ) . getActualType ( ) , context . dataFlowInfo ) ;
+ result = JetTypeInfo . create ( ( ( De... | keep DataFlowInfo if resulting type of an expression is DeferredType |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
public class SetHeaderHandler implements HttpHandler {
private final HttpString header ;
private final String value ;
-
- private volatile HttpHandler next = ResponseCodeHandler . HANDLE_404 ;
+ private fi... | make next HttpHandler final |
<nb> public class AtMostXVerificationTest extends TestBase {
assertEquals ( STRING0 , e . getMessage ( ) ) ;
}
}
+
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE... | Added tests that expose the bug |
<nb> public class Notification implements Parcelable
NUMBER0 ,
PorterDuff . Mode . SRC_ATOP , - NUMBER1 ) ;
}
- final boolean gray = ( smallIcon . getType ( ) == Icon . TYPE_RESOURCE
- && mColorUtil . isGrayscaleIcon ( mContext , smallIcon . getResId ( ) ) ) ;
+ final boolean gray = isLegacy ( )
+ && smal... | Fix icon related crash |
<nb> public class UTF8StreamJsonParser
COMMENT
COMMENT
- protected Name _parseName ( int i ) throws IOException
+ protected final Name _parseName ( int i ) throws IOException
{
if ( i != INT_QUOTE ) {
return _handleOddName ( i ) ; | make _parseName final |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | eliminate eclipse warnings |
<nb> public class Rectangle implements Serializable {
float ymin = rectangle . y ;
float ymax = ymin + rectangle . height ;
- return ( ( xmin > x && xmin < x + width ) || ( xmax > x && xmax < x + width ) )
- && ( ( ymin > y && ymin < y + height ) || ( ymax > y && ymax < y + height ) ) ;
+ return ( ( xmin > ... | Fixed contains Rectangle method |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public abstract class ArbitraryShape {
private final Region extent ;
private int cacheSizeX ;
<nb> public abstract class ArbitraryShape {
COMMENT
private final short [ ... | Added some element comments to ArbitraryShape |
<nb> public abstract class ConnectionService extends Service {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix parameter description |
<nb> public class CircuitBreakerStats implements Writeable , ToXContent {
}
public CircuitBreakerStats ( StreamInput in ) throws IOException {
- SINGLE
limit = in . readLong ( ) ;
estimated = in . readLong ( ) ;
overhead = in . readDouble ( ) ; | remove stale comment from CircuitBreakerStats |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MavenProblemFileHighlighter implements Condition < VirtualFile > {
}
public boolean value ( final VirtualFile file ) {
- AccessToken accessToken... | Remove unnecessary getting of read action |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMME... | add comments to examples |
<nb> public class ShadowLocation {
private double latitude ;
private double longitude ;
private float accuracy ;
+
+ public void __constructor__ ( String provider ) {
+ this . provider = provider ;
+ }
@ implementation
public String getProvider ( ) { | Added provider constructor to ShadowLocation |
<nb> public class SystemEnvironment implements Serializable , ConfigDirProvider {
public static GoSystemProperty < String > GO_UPDATE_SERVER_URL = new GoStringSystemProperty ( STRING0 , STRING1 ) ;
public static GoSystemProperty < Boolean > GO_CHECK_UPDATES = new GoBooleanSystemProperty ( STRING2 , true ) ;
- p... | Revert Enable agent websocket communication by default |
<nb> public final class GenerateExportsTest extends Es6CompilerTestCase {
STRING0 ) ;
}
+ public void testExportEs6ArrowFunction ( ) {
+ testEs6 ( STRING1 ,
+ STRING2
+ + STRING3 ) ;
+ }
+
public void testNoExport ( ) {
test ( STRING4 , STRING5 ) ;
}
<nb> public final class GenerateExportsTest... | Added test to verify that GenerateExportsTest doesn t crash handling arrow function |
<nb> public class SQLiteCursor extends AbstractWindowedCursor {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class SQLiteCursor extends AbstractWindowedCursor {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMEN... | Fix an inconsistent comment |
<nb> public class OSQLFilterCondition {
}
public Object evaluate ( final OIdentifiable o , final OCommandContext iContext ) {
+ SINGLE
+ if ( left instanceof OSQLQuery < ? > )
+ left = ( ( OSQLQuery < ? > ) left ) . setContext ( iContext ) . execute ( ) ;
+
+ if ( right instanceof OSQLQuery < ? > )
+ ... | improved query executing sub query once |
<nb> public class PageRenderer extends AbstractWidgetRenderer {
SINGLE
SINGLE
SINGLE
- if ( label . contains ( STRING0 ) ) {
- label = label . substring ( NUMBER0 , label . indexOf ( STRING0 ) ) ;
+ if ( label . contains ( STRING1 ) && label . endsWith ( STRING2 ) ) {
+ label = label . replace ( STRING1 ,... | fixed page titles if label contains state value |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix broken build |
<nb> class OrcHiveRecordCursor
checkNotNull ( splitSchema , STRING0 ) ;
checkNotNull ( partitionKeys , STRING1 ) ;
checkNotNull ( columns , STRING2 ) ;
- checkArgument ( ! columns . isEmpty ( ) , STRING3 ) ;
checkNotNull ( hiveStorageTimeZone , STRING4 ) ;
checkNotNull ( sessionTimeZone , STRING5 ) ; | Allow OrcHiveRecordCursor with no columns |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public class StatelessSessionComponentConfiguration extends SessionBeanComponent
COMMENT
public StatelessSessionComponentConfiguration ( final EJBComponentDescription descripti... | Setup a temporary instance association interceptor for Stateless |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SqlUtils {
@ suppresswarnings ( STRING0 )
public static < ... | patched leak of cursor in delete statement |
<nb> public class GlobalInspectionContextImpl extends GlobalInspectionContextBase imp
}
myViewClosed = true ;
myView = null ;
- super . close ( noSuspisiousCodeFound ) ;
- }
-
- @ override
- public void cleanup ( ) {
( ( InspectionManagerEx ) InspectionManager . getInstance ( getProject ( ) ) ) . clos... | cleanup do not clean presentations to make the tool window available |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Update the default chunk size in comment |
<nb> public class ProducteevSyncProvider extends SyncProvider < ProducteevTaskContainer
SINGLE
JSONObject user = invoker . usersView ( null ) . getJSONObject ( STRING0 ) ;
saveUserData ( user ) ;
- long userId = user . getLong ( STRING1 ) ;
String lastServerSync = Preferences . getStringValue ( ProducteevUt... | killed unused line |
<nb> public abstract class ChartData < T extends IDataSet < ? extends Entry > > {
notifyDataChanged ( ) ;
}
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- public boolean contains ( Entry e ) {
-
- for ( T set : mDataSets ) {
- if ( set . contains ( e ) ) ... | Remove contains method from data object |
<nb> public class OJSONWriter {
for ( OIdentifiable rec : iRecords ) {
if ( rec != null )
try {
- objectJson = rec . getRecord ( ) . toJSON ( iFormat ) ;
+ objectJson = iFormat != null ? rec . getRecord ( ) . toJSON ( iFormat ) : rec . getRecord ( ) . toJSON ( ) ;
if ( counter ++ > NUMBER0 )
buffer . ap... | Fixed issue on json formatting |
<nb> public class JsonTokenExtractor implements AccessTokenExtractor
{
private Pattern accessTokenPattern = Pattern . compile ( STRING0 ) ;
+ @ override
public Token extract ( String response )
{
Preconditions . checkEmptyString ( response , STRING1 ) ; | Revert Removed the Override annotation as it resulted in a compilation error |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class VcsLogUiImpl implements VcsLogUi , Disposable {
return mySettings . isShowBranchesPanel ( ) ;
}
- public Component ... | remove access to MainFrame from filter ui |
<nb> public class PullToRefreshWebView extends PullToRefreshBase < WebView > {
@ override
protected boolean isReadyForPullUp ( ) {
- return mRefreshableView . getScrollY ( ) >= ( mRefreshableView . getContentHeight ( ) - mRefreshableView . getHeight ( ) ) ;
+ int exactContentHeight = ( int ) Math . floor ( mR... | fixed the height calculation of WebView |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PyUnresolvedReferencesInspection extends PyInspection {
if ( MakoLanguage . _isDisabledFor ( node ) ) {
return ;
}
+ fi... | Disabled unresolved references inspection for Cython include files |
<nb> public class TfsShell implements Closeable {
COMMENT
COMMENT
COMMENT
- public void printUsage ( ) {
+ private void printUsage ( ) {
System . out . println ( STRING0 ) ;
SortedSet < String > sortedCmds = new TreeSet < String > ( mCommands . keySet ( ) ) ;
for ( String cmd : sortedCmds ) { | change TfsShell printUsage from public to private |
<nb> public class VoiceRouter {
PREPARE_DISTANCE_END = NUMBER0 ; SINGLE
TURN_IN_DISTANCE = NUMBER1 ; SINGLE
TURN_IN_DISTANCE_END = NUMBER2 ; SINGLE
- TURN_DISTANCE = NUMBER3 ; SINGLE
- TURN_DEFAULT_SPEED = FLOAT0 ; SINGLE
+ TURN_DISTANCE = NUMBER4 ; SINGLE
+ TURN_DEFAULT_SPEED = FLOAT1 ; SINGLE
DEFAULT_... | Justify turn distance |
<nb> public class AxolotlService implements OnAdvancedStreamFeaturesLoaded {
if ( remoteSessions . isEmpty ( ) ) {
return null ;
}
- Log . d ( Config . LOGTAG , AxolotlService . getLogprefix ( account ) + STRING0 ) ;
for ( XmppAxolotlSession session : remoteSessions ) {
- Log . v ( Config . LOGTAG , Axolotl... | removed some unecessary logging from omemo message generation |
<nb> public abstract class ChooseByNameBase {
public void setDisposed ( boolean disposedFlag ) {
myDisposedFlag = disposedFlag ;
+ if ( disposedFlag ) {
+ myNames [ NUMBER0 ] = myNames [ NUMBER1 ] = null ;
+ }
}
COMMENT | don t leak names from closed goto popups |
<nb> public class FlingAnimation implements Animation {
private float velocityX ;
private float velocityY ;
- private float factor = FLOAT0 ;
+ private float factor = FLOAT1 ;
private float threshold = NUMBER0 ; | Added image view |
<nb> public class WindowManagerService extends IWindowManager . Stub
updateFocusedWindowLocked ( UPDATE_FOCUS_WILL_PLACE_SURFACES ,
false COMMENT ) ;
performLayoutAndPlaceSurfacesLocked ( ) ;
- mInputMonitor . updateInputWindowsLw ( false COMMENT ) ;
if ( win . mAppToken != null ) {
win . mAppToken . update... | Add null test and remove redundant call |
<nb> public class XDebugSessionImpl implements XDebugSession {
}
@ nullable
- public synchronized XValueMarkers < ? , ? > getValueMarkers ( ) {
+ public XValueMarkers < ? , ? > getValueMarkers ( ) {
if ( myValueMarkers == null ) {
XValueMarkerProvider < ? , ? > provider = myDebugProcess . createValueMarke... | fixed VM leak in object marks |
<nb> import NAMESPACE ;
COMMENT
COMMENT
public class CompleteTopologyParam {
+ COMMENT
+ COMMENT
+ COMMENT
private MockedSources mockedSources ;
+ COMMENT
+ COMMENT
+ COMMENT
private Config stormConf ;
+ COMMENT
+ COMMENT
+ COMMENT
private Boolean cleanupState ;
+ COMMENT
+ COMMENT
+... | add more comments |
<nb> public class Column
{
this . name = checkNotNull ( name , STRING0 ) ;
this . type = checkNotNull ( type , STRING1 ) ;
- this . typeSignature = checkNotNull ( typeSignature , STRING2 ) ;
+ this . typeSignature = typeSignature ;
}
@ jsonproperty | Change typeSignature to not be required in client |
<nb> abstract class FloatingAnimator implements AppBarLayout . OnOffsetChangedListener
SINGLE
mAppbarOffset = verticalOffset ;
mFabNewY = mFabOriginalY + mAppbarOffset ;
- Log . d ( STRING0 , STRING1 + getAppBarOffset ( ) ) ;
}
COMMENT
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
... | Remove offset logging |
<nb> public class OsmandRenderingRulesParser {
String dnc = attributes . getValue ( STRING0 ) ;
int defautNightColor = defaultColor ;
if ( dnc != null && dnc . length ( ) > NUMBER0 ) {
- defautNightColor = parseColor ( dc ) ;
+ defautNightColor = parseColor ( dnc ) ;
}
visitor . rendering ( attributes . g... | Fix night color |
<nb> public abstract class Location implements Serializable {
COMMENT
COMMENT
@ immutable
- public static final class LineAndColumn {
+ public static final class LineAndColumn implements Serializable {
private final int line ;
private final int column ;
<nb> package NAMESPACE ;
import NAMESPACE ;
... | Add serialization functionality to classes |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMME... | Deprecated AbstractJExcelView since JExcelAPI is an abandoned project |
<nb> public final class DefaultPassConfig extends PassConfig {
}
passes . addAll ( getMainOptimizationLoop ( ) ) ;
+ passes . add ( createEmptyPass ( STRING0 ) ) ;
passes . add ( createEmptyPass ( STRING1 ) ) ; | Add an afterMainOptimizations marker to DefaultPassConfig |
<nb> public class ZipLocator implements AssetLocator {
public AssetInfo locate ( AssetManager manager , AssetKey key ) {
String name = key . getName ( ) ;
+ if ( name . startsWith ( STRING0 ) ) name = name . substring ( NUMBER0 ) ;
ZipEntry entry = zipfile . getEntry ( name ) ;
if ( entry == null )
return... | Remove root slash from the asset path |
<nb> public class LineageFileSystem extends BaseFileSystem {
private LineageContext mLineageContext ;
COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
public static synchronized LineageFileSystem get ( FileSystemContext fileSystemContext , | Add missing javadoc |
<nb> public class WebView extends AbsoluteLayout
COMMENT
public void setTitleBarGravity ( int gravity ) {
mTitleGravity = gravity ;
+ SINGLE
+ invalidate ( ) ;
}
COMMENT | invalidate WebView after Title change |
<nb> public class JettyHTTPD {
protected void startHttp ( ) throws Exception {
_server = new Server ( ) ;
- QueuedThreadPool p = new QueuedThreadPool ( ) ;
- p . setName ( STRING0 ) ;
- p . setMinThreads ( NUMBER0 ) ;
- p . setMaxThreads ( NUMBER1 ) ;
- p . setMaxIdleTimeMs ( NUMBER2 ) ;
- _server . s... | Jetty thread pool changes caused hangs |
<nb> public class TachyonWorker implements Runnable {
return mWorkerServiceHandler ;
}
- private void connect ( ) throws IOException {
+ private void connectToUFS ( ) throws IOException {
String ufsAddress = mTachyonConf . get ( Constants . UNDERFS_ADDRESS , STRING0 ) ;
UnderFileSystem ufs = UnderFileSyst... | Change name of connect method in worker to match master s |
<nb> public class ClassGuard implements Predicate < Object [ ] > {
public boolean apply ( Object [ ] scopes ) {
if ( scopes == null || scopes . length <= scopeIndex ) return false ;
Object scope = scopes [ scopeIndex ] ;
- return ( scope != null && classGuard . equals ( scope . getClass ( ) ) ) || ( scope == nu... | could cause an npe |
<nb> public class Tethering extends INetworkManagementEventObserver . Stub {
try {
service . startTethering ( mDhcpRange ) ;
} catch ( Exception e ) {
- transitionTo ( mStartTetheringErrorState ) ;
- return false ;
+ try {
+ service . stopTethering ( ) ;
+ service . startTethering ( mDhcpRange ) ;
+ }... | Fix Tethering s handling of a system restart |
<nb> public abstract class AbstractLoadJavaTest extends TestCaseWithTmpdir {
}
} ) ;
- KotlinTestUtils . createEnvironmentWithJdkAndNullabilityAnnotationsFromIdea (
- getTestRootDisposable ( ) , ConfigurationKind . JDK_ONLY , TestJdkKind . MOCK_JDK
- ) ;
-
Pair < PackageViewDescriptor , BindingContext >... | Minor remove pointless environment creation in LoadJava test |
<nb> public class DeploymentInfo implements Cloneable {
. setResourceLoader ( resourceLoader )
. setMajorVersion ( majorVersion )
. setMinorVersion ( minorVersion )
- . setDeploymentName ( deploymentName ) ;
+ . setDeploymentName ( deploymentName )
+ . setClassIntrospecter ( classIntrospecter ) ;
for ( ... | Handle class introspector in deployment info clone |
<nb> public class OClassTrigger extends ODocumentHookAbstract {
try {
if ( func . getLanguage ( ) == null )
throw new OConfigurationException ( STRING0 + func . getName ( ) + STRING1 ) ;
- final String funcStr = scriptManager . getFunctionDefinition ( func ) ;
+ SINGLE
+ final String funcStr = scriptManager... | Fix issue function in OClassTrigger cannot trigger other function in OFunction class |
<nb> public class ClearspaceManager extends BasicModule implements ExternalComponentM
SINGLE
if ( isClearspace ) {
clearspaces . add ( iq . getFrom ( ) . getDomain ( ) ) ;
- SINGLE
- acknowledgeInfoReceived ( iq . getFrom ( ) ) ;
}
}
- private void acknowledgeInfoReceived ( JID infoSender ) {
- IQ i... | Do not send acknowledgement of receiving the Clearspace component disco info anymore |
<nb> import NAMESPACE ;
COMMENT
public class GenerateDomElementAction extends BaseGenerateAction {
+ protected final GenerateDomElementProvider myProvider ;
+
public GenerateDomElementAction ( final GenerateDomElementProvider generateProvider ) {
super ( new CodeInsightActionHandler ( ) {
public void in... | more struts templates |
<nb> public class NotificationsProcessingService extends Service {
return getString ( R . string . comment_q_action_approving ) ;
case ARG_ACTION_REPLY :
return getString ( R . string . comment_q_action_replying ) ;
+ default :
+ SINGLE
+ return getString ( R . string . comment_q_action_processing ) ;
}
... | added default cases breaks and a missing dismiss action |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
public class Tools {
- public static final Image WINDOW_ICON = new ImageIcon ( ST... | make window icon work no matter where swriter etc is started from |
<nb> public class FileSystemUtils {
}
}
- COMMENT
- COMMENT
- COMMENT
- public static ByteSource asByteSource ( final Path path ) {
+ private static ByteSource asByteSource ( final Path path ) {
return new ByteSource ( ) {
@ override public InputStream openStream ( ) throws IOException {
return pa... | Make FileSystemUtils asByteSource private again |
<nb> public class KeyguardViewMediator {
COMMENT
COMMENT
public void dismiss ( ) {
- mKeyguardViewManager . dismiss ( ) ;
+ if ( mShowing && ! mHidden ) {
+ mKeyguardViewManager . dismiss ( ) ;
+ }
}
COMMENT | Fix NPE caused by applications that try to hide keyguard while it s not showing |
<nb> public class LoadDataChange extends AbstractChange implements ChangeWithColumns <
liquibase . statement . SequenceNextValueFunction function = new liquibase . statement . SequenceNextValueFunction ( columnConfig . getDefaultValue ( ) ) ;
valueConfig . setValueComputed ( function ) ;
} else {
- throw new Un... | Add SEQUENCE to exception description |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAM... | Fix bad import of internal jmxutils class |
<nb> public class StatsActivity extends WPActionBarActivity implements StatsNavDialog
fragment = StatsReferrersFragment . newInstance ( StatsViewType . REFERRERS ) ;
ft . replace ( R . id . stats_referrers_container , fragment , StatsReferrersFragment . TAG ) ;
+
+ ft . commit ( ) ;
}
refreshStats ( ) ;
... | Added a missing commit on fragments |
<nb> public abstract class ODatabaseRecordWrapperAbstract < DB extends ODatabaseRecord >
@ override
public < THISDB extends ODatabase > THISDB create ( ) {
checkSecurity ( ODatabaseSecurityResources . DATABASE , ORole . PERMISSION_CREATE ) ;
- return super . create ( ) ;
+ return ( THISDB ) super . create ( )... | Fixed a bug with javac |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
@ channelpipelinecoverage ( STRING0 )
public class EchoServerHandler extends SimpleChannelUpstreamHandler {
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public class UptimeClient { ... | Set svn properties |
<nb> public class BillingIntervalDetail {
}
proposedDate = alignProposedBillCycleDate ( proposedDate , billingCycleDay ) ;
- SINGLE
- if ( endDate != null && endDate . isBefore ( proposedDate ) ) {
+ SINGLE
+ if ( endDate != null && ! endDate . isAfter ( targetDate ) ) {
effectiveEndDate = endDate ;
}... | Fix issue with recurring billing in arrear |
<nb> public class DNSHelper {
while ( p > NUMBER0 ) {
p -= s . get ( i ++ ) . getPriority ( ) ;
}
- i -- ;
+ if ( i > NUMBER0 ) i -- ;
SINGLE
SINGLE
SRV srv = s . remove ( i ) ;
<nb> public class XmppConnection implements Runnable {
&& STRING0 . equals ( result . getString ( STRING1 , null ) ) ) {
... | fixed a bug in DNS helper code |
<nb> public class Memory extends Pointer {
public Memory ( long size ) {
this . size = size ;
if ( size <= NUMBER0 ) {
- throw new IllegalArgumentException ( STRING0 ) ;
+ throw new IllegalArgumentException ( STRING1 ) ;
}
peer = malloc ( size ) ;
if ( peer == NUMBER0 ) | fix misleading error message |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class HTMLPreviewPresenter implements IsWidget
binder . bind ( commands , this ) ;
+ SINGLE
+ if ( Desktop . isDesktop ( ) ... | remove html preview print from desktop mode |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class CassandraLoadBalancingPolicies {
public final String roundRobinPolicy = STRING0 ;
public final String tokenAwarePolicy = STRING1 ;
public final String dcAware... | Supports missing Load Balancing policies |
<nb> import static NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import static NAMESPACE ;
public @ interface Index {
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
- String name ( ) default STRING0 ;
+ String [ ] value ( ) default ST... | Updated Index annotation |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
class MoveFunctionDeclarations implements Callback , CompilerPass {
private final AbstractCompiler compiler ; | Add some documentation to MoveFunctionDeclarations |
<nb> public class DialogWrapperPeerImpl extends DialogWrapperPeer {
}
private void disposeFocusTrackbackIfNoChildWindowFocused ( @ nullable IdeFocusManager focusManager ) {
+ if ( myFocusTrackback == null ) return ;
+
final DialogWrapper wrapper = myDialogWrapper . get ( ) ;
if ( wrapper == null || ! wrap... | NPE on window focus lost fixed |
<nb> public class Main {
if ( ( toroPassChunks [ NUMBER0 ] . equals ( STRING0 ) || toroPassChunks [ NUMBER0 ] . equals ( config . getDbHost ( ) ) ) &&
( toroPassChunks [ NUMBER1 ] . equals ( STRING0 ) || toroPassChunks [ NUMBER1 ] . equals ( String . valueOf ( config . getDbPort ( ) ) ) ) &&
( toroPassChunks [ NU... | main Fixed a bug related with password file |
<nb> public final class SuggestUtils {
}
public static Suggest . Suggestion . Sort resolveSort ( String sortVal ) {
+ sortVal = sortVal . toLowerCase ( Locale . US ) ;
if ( STRING0 . equals ( sortVal ) ) {
return Suggest . Suggestion . Sort . SCORE ;
} else if ( STRING1 . equals ( sortVal ) ) {
<nb> pub... | Fixed JSON parsing for the Term Suggester |
<nb> public class CommandLineRunner extends
SINGLE
@ suppresswarnings ( STRING0 )
private static class Flags {
+ SINGLE
+ SINGLE
+ SINGLE
private static List < GuardLevel > guardLevels =
Collections . synchronizedList ( new ArrayList < CommandLineRunner . GuardLevel > ( ) ) ; | Add comment for the Flags guardLevels synchronization |
<nb> final class LineNumbers {
if ( ! type . isArray ( ) ) {
InputStream in = type . getResourceAsStream ( STRING0 + type . getName ( ) . replace ( STRING1 , STRING2 ) + STRING3 ) ;
if ( in != null ) {
- new ClassReader ( in ) . accept ( new LineNumberReader ( ) , ClassReader . SKIP_FRAMES ) ;
+ try {
+ new... | Close the resource stream after reading |
<nb> public class HttpClientFactory {
. disableContentCompression ( )
. setMaxConnTotal ( maxConnections )
. setDefaultSocketConfig ( SocketConfig . custom ( ) . setSoTimeout ( timeoutMilliseconds ) . build ( ) )
+ . useSystemProperties ( )
. setHostnameVerifier ( new AllowAllHostnameVerifier ( ) ) ;
if (... | Made HttpClient respect system properties |
<nb> public class CdmaDataConnection extends DataConnection {
@ override
protected boolean isDnsOk ( String [ ] domainNameServers ) {
- if ( ( NULL_IP . equals ( domainNameServers [ NUMBER0 ] )
+ if ( NULL_IP . equals ( domainNameServers [ NUMBER0 ] )
&& NULL_IP . equals ( domainNameServers [ NUMBER1 ] )
... | Remove subclass cast for calls to isDnsCheckDisabled |
<nb> public class IjModuleGraph {
TargetGraph targetGraph ,
IjModuleFactory moduleFactory ,
final int minimumPathDepth ) {
- ImmutableSet < TargetNode < ? > > supportedTargets = FluentIterable . from ( targetGraph . getNodes ( ) )
- . filter ( IjModuleFactory . SUPPORTED_MODULE_TYPES_PREDICATE )
- . toSet (... | Remove unneeded set creation |
<nb> public class StickyHeadersItemDecoration extends RecyclerView . ItemDecoration {
final int childCount = parent . getChildCount ( ) ;
final RecyclerView . LayoutManager lm = parent . getLayoutManager ( ) ;
View header = headerViewHolder . itemView ;
- Transformation outTransformation = new Transformation ( ... | Animate sticky headers on item insertion |
<nb> public class BarChartRenderer extends DataRenderer {
mShadowPaint . setColor ( dataSet . getBarShadowColor ( ) ) ;
mBarBorderPaint . setColor ( dataSet . getBarBorderColor ( ) ) ;
- mBarBorderPaint . setStrokeWidth ( Util . convertDpToPixel ( dataSet . getBarBorderWidth ( ) ) ) ;
+ mBarBorderPaint . setS... | Fixed typo in Util Utils |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
- import NAMESPACE ;
-
public class PrefStore {
COMMENT
<nb> public cl... | Fix deprecation warning |
<nb> public final class SSLContext {
COMMENT
COMMENT
public static native boolean setSessionIdContext ( long ctx , byte [ ] sidCtx ) ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static native boolean setCertificateRaw ( long ctx , byt... | Add the java of the native setCertificateRaw |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
public class ContactItem extends GenericItem {
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;... | moved UnDefType to core |
<nb> public class FileTypeManagerImpl extends FileTypeManagerEx implements NamedJDOME
return fileType ;
}
catch ( IOException e ) {
- LOG . info ( e ) ;
- return UnknownFileType . INSTANCE ;
+ return UnknownFileType . INSTANCE ; SINGLE
}
} | ignore io exceptions on file type detect |
<nb> public class CropImageView extends FrameLayout {
SINGLE
if ( mBitmap != null && ( mImageResource > NUMBER0 || mLoadedImageUri != null ) ) {
mBitmap . recycle ( ) ;
- mBitmap = null ;
}
+ mBitmap = null ;
if ( full ) {
SINGLE
<nb> public class CropImageView extends FrameLayout {
COMMENT
COMM... | Fix progress bar not showing on loading if previously bitmap was directly set |
<nb> public class PGraphics extends PImage implements PConstants {
COMMENT
public void blendMode ( int mode ) {
this . blendMode = mode ;
- new Exception ( STRING0 + mode ) . printStackTrace ( ) ;
blendModeImpl ( ) ;
} | remove debug line |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.