id int64 1 49k | buggy stringlengths 34 37.5k | fixed stringlengths 2 37k |
|---|---|---|
23,801 | package org.opennms.netmgt.collection.persistence.evaluate;
import java.util.concurrent.TimeUnit;
<BUG>import javax.inject.Inject;
import javax.inject.Named;</BUG>
import org.opennms.core.logging.Logging;
import org.opennms.netmgt.collection.api.Persister;
import org.opennms.netmgt.collection.api.PersisterFactory;
| [DELETED] |
23,802 | import java.util.Map;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.curator.x.discovery.ServiceInstance;
import org.springframework.cloud.client.DefaultServiceInstance;
<BUG>import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframe... | import org.springframework.cloud.zookeeper.compat.ServiceDiscoveryHolder;
import org.springframework.cloud.zookeeper.compat.ServiceInstanceHolder;
import org.springframework.cloud.zookeeper.serviceregistry.ZookeeperRegistration;
import org.springframework.cloud.zookeeper.serviceregistry.ZookeeperServiceRegistry;
import... |
23,803 | @Override
public String description() {
return "Spring Cloud Zookeeper Discovery Client";
}
@Override
<BUG>public org.springframework.cloud.client.ServiceInstance getLocalServiceInstance() {
ServiceInstance<ZookeeperInstance> serviceInstance = this.serviceDiscovery.getServiceInstance();
</BUG>
return serviceInstance ==... | if (this.serviceInstanceHolder == null) {
return null;
ServiceInstance<ZookeeperInstance> serviceInstance = this.serviceInstanceHolder.getServiceInstanceRef().get();
|
23,804 | return serviceId;
}
@Override
public List<String> getServices() {
List<String> services = null;
<BUG>if (this.serviceDiscovery.getServiceDiscovery() == null) {
</BUG>
log.warn("Service Discovery is not yet ready - returning empty list of services");
return Collections.emptyList();
}
| if (this.serviceDiscovery.getServiceDiscoveryRef() == null) {
|
23,805 | </BUG>
log.warn("Service Discovery is not yet ready - returning empty list of services");
return Collections.emptyList();
}
try {
<BUG>services = new ArrayList<>(this.serviceDiscovery.getServiceDiscovery().queryForNames());
</BUG>
}
catch (Exception e) {
rethrowRuntimeException(e);
| return serviceId;
@Override
public List<String> getServices() {
List<String> services = null;
if (this.serviceDiscovery.getServiceDiscoveryRef() == null) {
services = new ArrayList<>(this.serviceDiscovery.getServiceDiscoveryRef().get().queryForNames());
|
23,806 | Warning.Type.ROLE, activatedRole.getName() ) );
}
}
else
{
<BUG>Set<String> parentSet = RoleUtil.getInstance().getAscendants( activatedRole.getName(), session.getUser()
.getContextId() );</BUG>
for ( String parentRole : parentSet )
{
| Set<String> parentSet = RoleUtil.getInstance().getAscendants( activatedRole.getName(), contextId);
|
23,807 | if ( map.contains( parentRole ) )
{
matchCount++;
if ( matchCount >= dsd.getCardinality() )
{
<BUG>String warning = "validate userId [" + session.getUserId()
+ "] assignedRole [" + activatedRole.getName() + "] parentRole ["</BUG>
+ parentRole + "] validates DSD Set Name:" + dsd.getName()
+ " Cardinality:" + dsd.getCard... | String warning = "validate " + entityType + " [" + entityId
+ "] assignedRole [" + activatedRole.getName() + "] parentRole ["
|
23,808 | import net.sf.ehcache.search.Result;
import net.sf.ehcache.search.Results;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.directory.api.ldap.model.constants.SchemaConstants;
<BUG>import org.apache.directory.fortress.core.GlobalErrIds;
import org.apac... | import org.apache.directory.fortress.core.*;
|
23,809 |
import org.apache.directory.fortress.core.ReviewMgr;
import org.apache.directory.fortress.core.ReviewMgrFactory;</BUG>
import org.apache.directory.fortress.core.SecurityException;
<BUG>import org.apache.directory.fortress.core.model.Constraint;
import org.apache.directory.fortress.core.model.Role;
import org.apache.d... | import net.sf.ehcache.search.Result;
import net.sf.ehcache.search.Results;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.directory.api.ldap.model.constants.SchemaConstants;
import org.apache.directory.fortress.core.*;
import org.apache.directory.for... |
23,810 | private static final String CLS_NM = AdminMgrImpl.class.getName();
private static final AdminRoleP adminP = new AdminRoleP();
private static final PermP permP = new PermP();
private static final RoleP roleP = new RoleP();
private static final SdP sdP = new SdP();
<BUG>private static final UserP userP = new UserP();
pri... | private static final GroupP groupP = new GroupP();
private static final Logger LOG = LoggerFactory.getLogger( CLS_NM );
|
23,811 | ReviewMgr reviewMgr = ReviewMgrFactory.createInstance();
String dn;
if( group.getType() == Group.Type.ROLE )
{
Role role = reviewMgr.readRole( new Role( member ) );
<BUG>dn = role.getDn();
}</BUG>
else
{
User user = reviewMgr.readUser( new User( member ) );
| SDUtil.getInstance().validateSSD( group, role );
}
|
23,812 | {
Session authenticate( String userId, char[] password )
throws SecurityException;
Session createSession( User user, boolean isTrusted )
throws SecurityException;
<BUG>Session createGroupSession(Group group)
throws SecurityException;</BUG>
boolean checkAccess( Session session, Permission perm )
throws SecurityException... | Session createSession(Group group)
|
23,813 | package org.apache.calcite.plan;
<BUG>import org.apache.calcite.rel.RelNode;
import org.apache.calcite.rel.type.RelDataTypeField;</BUG>
import org.apache.calcite.rex.RexInputRef;
import org.apache.calcite.rex.RexNode;
import org.apache.calcite.rex.RexShuttle;
| import org.apache.calcite.rel.mutable.MutableFilter;
import org.apache.calcite.rel.mutable.MutableProject;
import org.apache.calcite.rel.mutable.MutableRel;
import org.apache.calcite.rel.mutable.MutableRels;
import org.apache.calcite.rel.type.RelDataTypeField;
|
23,814 | </BUG>
} catch (MatchFailed e) {
return null;
}
final MutableProject newProject =
<BUG>MutableProject.of(
query.getRowType(), call.target, newProjects);
</BUG>
final MutableRel newProject2 = MutableRels.strip(newProject);
return call.result(newProject2);
| final List<RelDataTypeField> newFieldList =
call.target.rowType.getFieldList();
List<RexNode> newProjects;
try {
newProjects = transformRex(query.projects, oldFieldList, newFieldList);
MutableProject.of(query.rowType, call.target, newProjects);
|
23,815 | if (queryProject.getInput() instanceof MutableFilter) {
final MutableFilter innerFilter =
(MutableFilter) queryProject.getInput();
RexNode newCondition;
try {
<BUG>newCondition = transformRex(innerFilter.getCondition(),
innerFilter.getInput().getRowType().getFieldList(),
target.getRowType().getFieldList());
</BUG>
} ... | newCondition = transformRex(innerFilter.condition,
innerFilter.getInput().rowType.getFieldList(),
target.rowType.getFieldList());
|
23,816 | operand(MutableFilter.class, target(0)), 1);
}
public UnifyResult apply(UnifyRuleCall call) {
final MutableFilter query = (MutableFilter) call.query;
final MutableFilter target = (MutableFilter) call.target;
<BUG>final MutableFilter newFilter = MutableFilter.of(target, query.getCondition());
</BUG>
return call.result(n... | final MutableFilter newFilter = MutableFilter.of(target, query.condition);
|
23,817 | oldFieldList, newFieldList);
} catch (MatchFailed e) {
return null;
}
final MutableProject newProject =
<BUG>MutableProject.of(
query.getRowType(), call.target, newProjects);
</BUG>
final MutableRel newProject2 = MutableRels.strip(newProject);
return call.result(newProject2);
| MutableProject.of(query.rowType, call.target, newProjects);
|
23,818 | if (targetOperand.matches(visitor, target)) {
if (visitor.isWeaker(query, ((MutableProject) target).getInput())) {
final MutableFilter filter = (MutableFilter) query;
RexNode newCondition;
try {
<BUG>newCondition = transformRex(filter.getCondition(),
filter.getInput().getRowType().getFieldList(),
target.getRowType().... | newCondition = transformRex(filter.condition,
filter.getInput().rowType.getFieldList(),
target.rowType.getFieldList());
|
23,819 | package jetbrains.mps.baseLanguage.unitTest.plugin;
import jetbrains.mps.baseLanguage.runConfigurations.runtime.BaseChooserComponent;
import java.util.List;
<BUG>import jetbrains.mps.project.IModule;
import jetbrains.mps.internal.collections.runtime.ListSequence;</BUG>
import java.util.ArrayList;
import java.awt.event.... | import jetbrains.mps.project.structure.modules.ModuleReference;
import jetbrains.mps.internal.collections.runtime.ListSequence;
|
23,820 | import jetbrains.mps.project.GlobalScope;
import com.intellij.openapi.progress.EmptyProgressIndicator;
import jetbrains.mps.smodel.SModel;
import jetbrains.mps.smodel.SModelDescriptor;
public class ModuleChooserComponent extends BaseChooserComponent {
<BUG>private final List<IModule> myCheckedModules = ListSequence.fro... | private final List<ModuleReference> myCheckedModules = ListSequence.fromList(new ArrayList<ModuleReference>());
|
23,821 | super();
this.init(new ActionListener() {
public void actionPerformed(ActionEvent p0) {
ModuleChooserComponent.this.collectModules();
StringBuilder result = new StringBuilder();
<BUG>IModule module = CommonChoosers.showDialogModuleChooser(ModuleChooserComponent.this, "", ModuleChooserComponent.this.myCheckedModules, Co... | ModuleReference ref = CommonChoosers.showDialogModuleChooser(ModuleChooserComponent.this, "", ModuleChooserComponent.this.myCheckedModules, Collections.EMPTY_LIST);
if (ref != null) {
result.append(ref.getModuleFqName());
|
23,822 | public void run() {
List<SNode> nodes = ListSequence.fromListWithValues(new ArrayList<SNode>(), FindUsagesManager.getInstance().findInstances(((AbstractConceptDeclaration) SNodeOperations.getAdapter(SConceptOperations.findConceptDeclaration("jetbrains.mps.baseLanguage.unitTest.structure.ITestCase"))), GlobalScope.getIn... | ModuleReference module = md.getModule().getModuleReference();
if (ListSequence.fromList(ModuleChooserComponent.this.myCheckedModules).contains(module)) {
|
23,823 | import java.util.Locale;
import java.util.Map;
import java.util.TreeMap;
public class DependencyConvergenceReport
extends AbstractProjectInfoReport
<BUG>{
private List reactorProjects;
private static final int PERCENTAGE = 100;</BUG>
public String getOutputName()
{
| private static final int PERCENTAGE = 100;
private static final List SUPPORTED_FONT_FAMILY_NAMES = Arrays.asList( GraphicsEnvironment
.getLocalGraphicsEnvironment().getAvailableFontFamilyNames() );
|
23,824 | sink.section1();
sink.sectionTitle1();
sink.text( getI18nString( locale, "title" ) );
sink.sectionTitle1_();
Map dependencyMap = getDependencyMap();
<BUG>generateLegend( locale, sink );
generateStats( locale, sink, dependencyMap );
generateConvergence( locale, sink, dependencyMap );
sink.section1_();</BUG>
sink.body_()... | sink.lineBreak();
sink.section1_();
|
23,825 | Iterator it = artifactMap.keySet().iterator();
while ( it.hasNext() )
{
String version = (String) it.next();
sink.tableRow();
<BUG>sink.tableCell();
sink.text( version );</BUG>
sink.tableCell_();
sink.tableCell();
generateVersionDetails( sink, artifactMap, version );
| sink.tableCell( String.valueOf( cellWidth ) + "px" );
sink.text( version );
|
23,826 | sink.tableCell();
sink.text( getI18nString( locale, "legend.shared" ) );
sink.tableCell_();
sink.tableRow_();
sink.tableRow();
<BUG>sink.tableCell();
iconError( sink );</BUG>
sink.tableCell_();
sink.tableCell();
sink.text( getI18nString( locale, "legend.different" ) );
| sink.tableCell( "15px" ); // according /images/icon_error_sml.gif
iconError( sink );
|
23,827 | sink.tableCaption();
sink.text( getI18nString( locale, "stats.caption" ) );
sink.tableCaption_();</BUG>
sink.tableRow();
<BUG>sink.tableHeaderCell();
sink.text( getI18nString( locale, "stats.subprojects" ) + ":" );
sink.tableHeaderCell_();</BUG>
sink.tableCell();
sink.text( String.valueOf( reactorProjects.size() ) );
s... | sink.bold();
sink.bold_();
sink.tableCaption_();
sink.tableHeaderCell( headerCellWidth );
sink.text( getI18nString( locale, "stats.subprojects" ) );
sink.tableHeaderCell_();
|
23,828 | sink.tableCell();
sink.text( String.valueOf( reactorProjects.size() ) );
sink.tableCell_();
sink.tableRow_();
sink.tableRow();
<BUG>sink.tableHeaderCell();
sink.text( getI18nString( locale, "stats.dependencies" ) + ":" );
sink.tableHeaderCell_();</BUG>
sink.tableCell();
sink.text( String.valueOf( depCount ) );
| sink.tableHeaderCell( headerCellWidth );
sink.text( getI18nString( locale, "stats.dependencies" ) );
sink.tableHeaderCell_();
|
23,829 | sink.text( String.valueOf( convergence ) + "%" );
sink.bold_();
sink.tableCell_();
sink.tableRow_();
sink.tableRow();
<BUG>sink.tableHeaderCell();
sink.text( getI18nString( locale, "stats.readyrelease" ) + ":" );
sink.tableHeaderCell_();</BUG>
sink.tableCell();
if ( convergence >= PERCENTAGE && snapshotCount <= 0 )
| sink.tableHeaderCell( headerCellWidth );
sink.text( getI18nString( locale, "stats.readyrelease" ) );
sink.tableHeaderCell_();
|
23,830 | {
ReverseDependencyLink p1 = (ReverseDependencyLink) o1;
ReverseDependencyLink p2 = (ReverseDependencyLink) o2;
return p1.getProject().getId().compareTo( p2.getProject().getId() );
}
<BUG>else
{</BUG>
return 0;
}
}
| iconError( sink );
|
23,831 | List<IndexedEntityRepresentation> representations = new ArrayList<IndexedEntityRepresentation>();
Index<Relationship> index = graphDb.index().forRelationships( indexName );
Transaction tx = graphDb.beginTx();
try
{
<BUG>IndexRepresentation indexRepresentation = new NodeIndexRepresentation( indexName );
</BUG>
for ( Rel... | for ( Node node : index.get( key, value ) )
|
23,832 | package org.neo4j.server.rest.repr;
import java.util.Map;
public class RelationshipIndexRepresentation extends IndexRepresentation
<BUG>{
public RelationshipIndexRepresentation( String name, Map<String, String> config )</BUG>
{
super( name, config );
}
| import java.util.Collections;
public RelationshipIndexRepresentation( String name )
this( name, Collections.EMPTY_MAP );
public RelationshipIndexRepresentation( String name, Map<String, String> config )
|
23,833 | String value = "value";
String indexName = "testy";
helper.createRelationshipIndex( indexName );
String relationshipType = "related-to";
long relationshipId = helper.createRelationship( relationshipType );
<BUG>String entity = functionalTestHelper.relationshipUri( relationshipId );
JaxRsResponse response = httpPostInd... | String entity = JsonHelper.createJsonFrom( functionalTestHelper.relationshipUri( relationshipId ) );
JaxRsResponse response = httpPostIndexRelationshipNameKeyValue( indexName, key, value, entity,
MediaType.APPLICATION_JSON_TYPE, MediaType.APPLICATION_JSON_TYPE );
assertEquals( 201, response.getStatus() );
|
23,834 | EditorCell_Collection result = jetbrains.mps.nodeEditor.cells.EditorCell_Collection.createIndent2(editorContext, node);
result.setBig(true);
result.getStyle().putAll(StyleRegistry.getInstance().getStyle("LINE_COMMENT"), 1);
result.addEditorCell(createCommentConstantCell(editorContext, node, true));
result.addEditorCell... | result.setCellId("main_comment_collection");
return result;
|
23,835 | }
private EditorCell_Constant createCommentConstantCell(jetbrains.mps.openapi.editor.EditorContext editorContext, SNode node, boolean left) {
EditorCell_Constant cell = new EditorCell_Constant(editorContext, node, left ? "/*" : "*/", false);
StyleImpl style = new StyleImpl();
style.set(left ? StyleAttributes.PUNCTUATIO... | cell.setCellId(left ? "left_comment_constant" : "right_comment_constant");
return cell;
|
23,836 | import org.jetbrains.annotations.NotNull;
import jetbrains.mps.lang.smodel.generator.smodelAdapter.SNodeOperations;
import jetbrains.mps.openapi.editor.EditorContext;
import jetbrains.mps.openapi.editor.selection.Selection;
import jetbrains.mps.openapi.editor.selection.SingularSelection;
<BUG>import jetbrains.mps.opena... | import jetbrains.mps.openapi.editor.cells.EditorCell_Label;
import jetbrains.mps.nodeEditor.cells.CellFinderUtil;
|
23,837 | import jetbrains.mps.editor.runtime.cells.AbstractCellAction;
import org.jetbrains.mps.openapi.model.SNode;
import org.jetbrains.annotations.NotNull;
import jetbrains.mps.openapi.editor.EditorContext;
import jetbrains.mps.lang.smodel.generator.smodelAdapter.SNodeOperations;
<BUG>import jetbrains.mps.openapi.editor.cell... | import jetbrains.mps.openapi.editor.cells.EditorCell_Label;
import jetbrains.mps.nodeEditor.cells.CellFinderUtil;
|
23,838 | package jetbrains.mps.baseLanguage.editor;
<BUG>import jetbrains.mps.nodeEditor.DefaultNodeEditor;
import jetbrains.mps.nodeEditor.cellProviders.AbstractCellListHandler;</BUG>
import jetbrains.mps.smodel.SNode;
import jetbrains.mps.smodel.IScope;
import jetbrains.mps.bootstrap.smodelLanguage.generator.smodelAdapter.SLi... | import jetbrains.mps.nodeEditor.AbstractCellProvider;
import jetbrains.mps.nodeEditor.cellProviders.AbstractCellListHandler;
|
23,839 | package jetbrains.mps.baseLanguage.editor;
<BUG>import jetbrains.mps.nodeEditor.DefaultNodeEditor;
import jetbrains.mps.smodel.SNode;</BUG>
import jetbrains.mps.smodel.IScope;
import jetbrains.mps.bootstrap.smodelLanguage.generator.smodelAdapter.SLinkOperations;
import jetbrains.mps.nodeEditor.EditorCell;
| import jetbrains.mps.nodeEditor.AbstractCellProvider;
import jetbrains.mps.smodel.SNode;
|
23,840 | package jetbrains.mps.baseLanguage.editor;
<BUG>import jetbrains.mps.nodeEditor.DefaultNodeEditor;
import jetbrains.mps.nodeEditor.cellProviders.AbstractCellListHandler;</BUG>
import jetbrains.mps.smodel.SNode;
import jetbrains.mps.smodel.IScope;
import jetbrains.mps.bootstrap.smodelLanguage.generator.smodelAdapter.SLi... | import jetbrains.mps.nodeEditor.AbstractCellProvider;
import jetbrains.mps.nodeEditor.cellProviders.AbstractCellListHandler;
|
23,841 | package jetbrains.mps.baseLanguage.editor;
<BUG>import jetbrains.mps.nodeEditor.DefaultNodeEditor;
import jetbrains.mps.smodel.SNode;</BUG>
import jetbrains.mps.smodel.IScope;
import jetbrains.mps.bootstrap.smodelLanguage.generator.smodelAdapter.SLinkOperations;
import jetbrains.mps.nodeEditor.EditorCell;
| import jetbrains.mps.nodeEditor.AbstractCellProvider;
import jetbrains.mps.smodel.SNode;
|
23,842 | VelocityFactory velocityFactory = this.mocker.getInstance(VelocityFactory.class);
when(velocityFactory.hasVelocityEngine("default")).thenReturn(false);
VelocityConfiguration velocityConfiguration = this.mocker.getInstance(VelocityConfiguration.class);
when(velocityConfiguration.getProperties()).thenReturn(new Propertie... | this.mocker.registerMockComponent(TemplateManager.class);
|
23,843 | thread.setCategoryId(categoryId);
thread.setRootMessageId(messageId);
thread.setStatus(serviceContext.getStatus());
thread.setStatusByUserId(user.getUserId());
thread.setStatusByUserName(userName);
<BUG>thread.setStatusDate(now);
if ((serviceContext.getStatus() == StatusConstants.APPROVED) &&</BUG>
(categoryId !=
MBCat... | MBCategory systemCategory = mbCategoryLocalService.getSystemCategory();
boolean isSystemCategory =
(systemCategory.getCategoryId() == message.getCategoryId());
if (!isSystemCategory) {
if ((serviceContext.getStatus() == StatusConstants.APPROVED) &&
|
23,844 | (categoryId !=
MBCategoryConstants.DEFAULT_PARENT_CATEGORY_ID)) {
MBCategory category = mbCategoryPersistence.findByPrimaryKey(
categoryId);
category.setThreadCount(category.getThreadCount() + 1);
<BUG>mbCategoryPersistence.update(category, false);
}</BUG>
}
if (serviceContext.getStatus() == StatusConstants.APPROVED) {... | [DELETED] |
23,845 | if (!message.isDiscussion() &&
(serviceContext.getStatus() == StatusConstants.APPROVED)) {
mbStatsUserLocalService.updateStatsUser(
message.getGroupId(), userId, now);
}
<BUG>logAddMessage(messageId, stopWatch, 6);
if ((serviceContext.getStatus() == StatusConstants.APPROVED) &&</BUG>
(categoryId != MBCategoryConstants.... | MBCategory systemCategory = mbCategoryLocalService.getSystemCategory();
boolean isSystemCategory =
(systemCategory.getCategoryId() == categoryId);
if (!isSystemCategory) {
if ((serviceContext.getStatus() == StatusConstants.APPROVED) &&
|
23,846 | (categoryId != MBCategoryConstants.DEFAULT_PARENT_CATEGORY_ID)) {
MBCategory category = mbCategoryPersistence.findByPrimaryKey(
categoryId);
category.setMessageCount(category.getMessageCount() + 1);
category.setLastPostDate(now);
<BUG>mbCategoryPersistence.update(category, false);
}</BUG>
logAddMessage(messageId, stopW... | }
}
|
23,847 | if ((priority != MBThreadConstants.PRIORITY_NOT_GIVEN) &&
(thread.getPriority() != priority)) {
thread.setPriority(priority);
mbThreadPersistence.update(thread, false);
updatePriorities(thread.getThreadId(), priority);
<BUG>}
if (serviceContext.getStatus() == StatusConstants.APPROVED) {
</BUG>
category.setLastPostDate(... | MBCategory systemCategory = mbCategoryLocalService.getSystemCategory();
boolean isSystemCategory =
(systemCategory.getCategoryId() == message.getCategoryId());
if (!isSystemCategory &&
(serviceContext.getStatus() == StatusConstants.APPROVED)) {
|
23,848 | (oldStatus == StatusConstants.APPROVED)) {
thread.setMessageCount(thread.getMessageCount() - 1);
}
if (serviceContext.getStatus() != oldStatus) {
mbThreadPersistence.update(thread, false);
<BUG>}
MBCategory category = mbCategoryPersistence.findByPrimaryKey(</BUG>
thread.getCategoryId());
if ((serviceContext.getStatus()... | MBCategory systemCategory = mbCategoryLocalService.getSystemCategory();
boolean isSystemCategory =
(systemCategory.getCategoryId() == message.getCategoryId());
if (!isSystemCategory) {
MBCategory category = mbCategoryPersistence.findByPrimaryKey(
|
23,849 | mbCategoryPersistence.update(category, false);
}
if ((serviceContext.getStatus() != StatusConstants.APPROVED) &&
(oldStatus == StatusConstants.APPROVED)) {
category.setMessageCount(category.getMessageCount() - 1);
<BUG>mbCategoryPersistence.update(category, false);
}</BUG>
if ((serviceContext.getStatus() == StatusConst... | [DELETED] |
23,850 | package com.liferay.portal.verify.test;
import com.liferay.portal.kernel.dao.jdbc.DataAccess;
import com.liferay.portal.kernel.test.ReflectionTestUtil;
<BUG>import com.liferay.portal.kernel.util.ProxyUtil;
import com.liferay.portal.verify.VerifyProcess;
import java.lang.reflect.Field;</BUG>
import java.lang.reflect.Inv... | import com.liferay.portal.verify.VerifyException;
|
23,851 | import com.liferay.portal.verify.VerifyProcess;
import java.lang.reflect.Field;</BUG>
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
<BUG>import java.sql.Connection;
import java.util.List;</BUG>
import java.util.concurrent.CopyOnWriteArra... | import java.sql.SQLException;
import java.util.List;
|
23,852 | import org.junit.Before;
import org.junit.Test;
public abstract class BaseVerifyProcessTestCase {
@Before
public void setUp() throws Exception {
<BUG>Field field = ReflectionTestUtil.getField(DataAccess.class, "_pacl");
_pacl = (DataAccess.PACL)field.get(null);
field.set(null, new PACLWrapper(_pacl));
}</BUG>
@After
| _pacl = ReflectionTestUtil.getFieldValue(DataAccess.class, "_pacl");
ReflectionTestUtil.setFieldValue(
DataAccess.class, "_pacl", new PACLWrapper(_pacl));
}
|
23,853 | @After
public void tearDown() throws Exception {
if (_pacl == null) {
throw new NullPointerException();
}
<BUG>Field field = ReflectionTestUtil.getField(DataAccess.class, "_pacl");
field.set(null, _pacl);</BUG>
}
@Test
| ReflectionTestUtil.setFieldValue(DataAccess.class, "_pacl", _pacl);
|
23,854 | @Test
public void testVerify() throws Exception {
doVerify();
assertAllConnectionsClosed();
}
<BUG>protected void assertAllConnectionsClosed() throws Exception {
</BUG>
for (Connection con : _connections) {
Assert.assertTrue("A connection was not closed", con.isClosed());
}
| protected void assertAllConnectionsClosed() throws SQLException {
|
23,855 | </BUG>
for (Connection con : _connections) {
Assert.assertTrue("A connection was not closed", con.isClosed());
}
}
<BUG>protected void doVerify() throws Exception {
</BUG>
VerifyProcess verifyProcess = getVerifyProcess();
verifyProcess.verify();
}
| @Test
public void testVerify() throws Exception {
doVerify();
assertAllConnectionsClosed();
protected void assertAllConnectionsClosed() throws SQLException {
protected void doVerify() throws VerifyException {
|
23,856 | package com.cronutils.model.time.generator;
import java.util.Collections;
<BUG>import java.util.List;
import org.apache.commons.lang3.Validate;</BUG>
import com.cronutils.model.field.CronField;
import com.cronutils.model.field.expression.FieldExpression;
public abstract class FieldValueGenerator {
| import org.apache.commons.lang3.Validate;
import org.apache.commons.lang3.Validate;
|
23,857 | import java.util.ResourceBundle;
import java.util.function.Function;</BUG>
class DescriptionStrategyFactory {
private DescriptionStrategyFactory() {}
public static DescriptionStrategy daysOfWeekInstance(final ResourceBundle bundle, final FieldExpression expression) {
<BUG>final Function<Integer, String> nominal = integ... | import java.util.function.Function;
import com.cronutils.model.field.expression.FieldExpression;
import com.cronutils.model.field.expression.On;
final Function<Integer, String> nominal = integer -> DayOfWeek.of(integer).getDisplayName(TextStyle.FULL, bundle.getLocale());
|
23,858 | return dom;
}
public static DescriptionStrategy monthsInstance(final ResourceBundle bundle, final FieldExpression expression) {
return new NominalDescriptionStrategy(
bundle,
<BUG>integer -> new DateTime().withMonthOfYear(integer).monthOfYear().getAsText(bundle.getLocale()),
expression</BUG>
);
}
public static Descript... | integer -> Month.of(integer).getDisplayName(TextStyle.FULL, bundle.getLocale()),
expression
|
23,859 | <BUG>package com.cronutils.model.time.generator;
import com.cronutils.mapper.WeekDay;</BUG>
import com.cronutils.model.field.CronField;
import com.cronutils.model.field.CronFieldName;
import com.cronutils.model.field.constraint.FieldConstraintsBuilder;
| import java.time.LocalDate;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import org.apache.commons.lang3.Validate;
import com.cronutils.mapper.WeekDay;
|
23,860 | import com.cronutils.model.field.expression.Between;
import com.cronutils.model.field.expression.FieldExpression;
import com.cronutils.parser.CronParserField;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
<BUG>import org.apache.commons.lang3.Validate;
import org.joda.time.DateTime;
impo... | [DELETED] |
23,861 | <BUG>package com.cronutils.model.time.generator;
import com.cronutils.model.field.CronField;</BUG>
import com.cronutils.model.field.CronFieldName;
import com.cronutils.model.field.expression.FieldExpression;
import com.cronutils.model.field.expression.On;
| import java.time.DayOfWeek;
import java.time.LocalDate;
import java.util.List;
import org.apache.commons.lang3.Validate;
import com.cronutils.model.field.CronField;
|
23,862 | import com.cronutils.model.field.CronField;</BUG>
import com.cronutils.model.field.CronFieldName;
import com.cronutils.model.field.expression.FieldExpression;
import com.cronutils.model.field.expression.On;
import com.google.common.collect.Lists;
<BUG>import org.apache.commons.lang3.Validate;
import org.joda.time.DateT... | package com.cronutils.model.time.generator;
import java.time.DayOfWeek;
import java.time.LocalDate;
import java.util.List;
import com.cronutils.model.field.CronField;
|
23,863 | class OnDayOfMonthValueGenerator extends FieldValueGenerator {
private int year;
private int month;
public OnDayOfMonthValueGenerator(CronField cronField, int year, int month) {
super(cronField);
<BUG>Validate.isTrue(CronFieldName.DAY_OF_MONTH.equals(cronField.getField()), "CronField does not belong to day of month");
... | Validate.isTrue(CronFieldName.DAY_OF_MONTH.equals(cronField.getField()), "CronField does not belong to day of" +
" month");
this.year = year;
|
23,864 | package com.cronutils.mapper;
public class ConstantsMapper {
private ConstantsMapper() {}
public static final WeekDay QUARTZ_WEEK_DAY = new WeekDay(2, false);
<BUG>public static final WeekDay JODATIME_WEEK_DAY = new WeekDay(1, false);
</BUG>
public static final WeekDay CRONTAB_WEEK_DAY = new WeekDay(1, true);
public st... | public static final WeekDay JAVA8 = new WeekDay(1, false);
|
23,865 | return nextMatch;
} catch (NoSuchValueException e) {
throw new IllegalArgumentException(e);
}
}
<BUG>DateTime nextClosestMatch(DateTime date) throws NoSuchValueException {
</BUG>
List<Integer> year = yearsValueGenerator.generateCandidates(date.getYear(), date.getYear());
TimeNode days = null;
int lowestMonth = months.g... | ZonedDateTime nextClosestMatch(ZonedDateTime date) throws NoSuchValueException {
|
23,866 | boolean questionMarkSupported =
cronDefinition.getFieldDefinition(DAY_OF_WEEK).getConstraints().getSpecialChars().contains(QUESTION_MARK);
if(questionMarkSupported){
return new TimeNode(
generateDayCandidatesQuestionMarkSupported(
<BUG>date.getYear(), date.getMonthOfYear(),
</BUG>
((DayOfWeekFieldDefinition)
cronDefini... | date.getYear(), date.getMonthValue(),
|
23,867 | )
);
}else{
return new TimeNode(
generateDayCandidatesQuestionMarkNotSupported(
<BUG>date.getYear(), date.getMonthOfYear(),
</BUG>
((DayOfWeekFieldDefinition)
cronDefinition.getFieldDefinition(DAY_OF_WEEK)
).getMondayDoWValue()
| date.getYear(), date.getMonthValue(),
|
23,868 | }
public DateTime lastExecution(DateTime date){
</BUG>
Validate.notNull(date);
try {
<BUG>DateTime previousMatch = previousClosestMatch(date);
</BUG>
if(previousMatch.equals(date)){
previousMatch = previousClosestMatch(date.minusSeconds(1));
}
| public java.time.Duration timeToNextExecution(ZonedDateTime date){
return java.time.Duration.between(date, nextExecution(date));
public ZonedDateTime lastExecution(ZonedDateTime date){
ZonedDateTime previousMatch = previousClosestMatch(date);
|
23,869 | return previousMatch;
} catch (NoSuchValueException e) {
throw new IllegalArgumentException(e);
}
}
<BUG>public Duration timeFromLastExecution(DateTime date){
return new Interval(lastExecution(date), date).toDuration();
}
public boolean isMatch(DateTime date){
</BUG>
return nextExecution(lastExecution(date)).equals(da... | [DELETED] |
23,870 | <BUG>package com.cronutils.model.time.generator;
import com.cronutils.model.field.CronField;</BUG>
import com.cronutils.model.field.expression.Every;
import com.cronutils.model.field.expression.FieldExpression;
import com.google.common.annotations.VisibleForTesting;
| import java.time.ZonedDateTime;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.cronutils.model.field.CronField;
|
23,871 | import com.cronutils.model.field.CronField;</BUG>
import com.cronutils.model.field.expression.Every;
import com.cronutils.model.field.expression.FieldExpression;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.collect.Lists;
<BUG>import org.joda.time.DateTime;
import org.slf4j.Logger;
i... | package com.cronutils.model.time.generator;
import java.time.ZonedDateTime;
import java.util.List;
import com.cronutils.model.field.CronField;
|
23,872 | private static final Logger log = LoggerFactory.getLogger(EveryFieldValueGenerator.class);
public EveryFieldValueGenerator(CronField cronField) {
super(cronField);
log.trace(String.format(
"processing \"%s\" at %s",
<BUG>cronField.getExpression().asString(), DateTime.now()
</BUG>
));
}
@Override
| cronField.getExpression().asString(), ZonedDateTime.now()
|
23,873 | import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.LocalFileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.fs.permission.FsPermission;
import org.apache.hadoop.util.Progressable;
<BUG>import static org.apache.hadoop.fs.s3a.S3AConstants.*;
public class S3AFileSystem extends FileSyste... | import static org.apache.hadoop.fs.s3a.Constants.*;
public class S3AFileSystem extends FileSystem {
|
23,874 | public void initialize(URI name, Configuration conf) throws IOException {
super.initialize(name, conf);
uri = URI.create(name.getScheme() + "://" + name.getAuthority());
workingDir = new Path("/user", System.getProperty("user.name")).makeQualified(this.uri,
this.getWorkingDirectory());
<BUG>String accessKey = conf.get(... | String accessKey = conf.get(NEW_ACCESS_KEY, conf.get(OLD_ACCESS_KEY, null));
String secretKey = conf.get(NEW_SECRET_KEY, conf.get(OLD_SECRET_KEY, null));
|
23,875 | } else {
accessKey = userInfo;
}
}
AWSCredentialsProviderChain credentials = new AWSCredentialsProviderChain(
<BUG>new S3ABasicAWSCredentialsProvider(accessKey, secretKey),
new InstanceProfileCredentialsProvider(),
new S3AAnonymousAWSCredentialsProvider()
);</BUG>
bucket = name.getHost();
| new BasicAWSCredentialsProvider(accessKey, secretKey),
new AnonymousAWSCredentialsProvider()
|
23,876 |
awsConf.setSocketTimeout(conf.getInt(SOCKET_TIMEOUT, DEFAULT_SOCKET_TIMEOUT));
</BUG>
s3 = new AmazonS3Client(credentials, awsConf);
<BUG>maxKeys = conf.getInt(MAX_PAGING_KEYS, DEFAULT_MAX_PAGING_KEYS);
partSize = conf.getLong(MULTIPART_SIZE, DEFAULT_MULTIPART_SIZE);
partSizeThreshold = conf.getInt(MIN_MULTIPART_THR... | new InstanceProfileCredentialsProvider(),
new AnonymousAWSCredentialsProvider()
bucket = name.getHost();
ClientConfiguration awsConf = new ClientConfiguration();
awsConf.setMaxConnections(conf.getInt(NEW_MAXIMUM_CONNECTIONS, conf.getInt(OLD_MAXIMUM_CONNECTIONS, DEFAULT_MAXIMUM_CONNECTIONS)));
awsConf.setProtocol(conf.g... |
23,877 | cannedACL = null;
}
if (!s3.doesBucketExist(bucket)) {
throw new IOException("Bucket " + bucket + " does not exist");
}
<BUG>boolean purgeExistingMultipart = conf.getBoolean(PURGE_EXISTING_MULTIPART, DEFAULT_PURGE_EXISTING_MULTIPART);
long purgeExistingMultipartAge = conf.getLong(PURGE_EXISTING_MULTIPART_AGE, DEFAULT_... | boolean purgeExistingMultipart = conf.getBoolean(NEW_PURGE_EXISTING_MULTIPART, conf.getBoolean(OLD_PURGE_EXISTING_MULTIPART, DEFAULT_PURGE_EXISTING_MULTIPART));
long purgeExistingMultipartAge = conf.getLong(NEW_PURGE_EXISTING_MULTIPART_AGE, conf.getLong(OLD_PURGE_EXISTING_MULTIPART_AGE, DEFAULT_PURGE_EXISTING_MULTIPART... |
23,878 | import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
<BUG>import static org.apache.hadoop.fs.s3a.S3AConstants.*;
public class S3AOutputStream extends OutputStream {</BUG>
private OutputStream backupStream;
private File backup... | import static org.apache.hadoop.fs.s3a.Constants.*;
public class S3AOutputStream extends OutputStream {
|
23,879 | this.client = client;
this.progress = progress;
this.fs = fs;
this.cannedACL = cannedACL;
this.statistics = statistics;
<BUG>partSize = conf.getLong(MULTIPART_SIZE, DEFAULT_MULTIPART_SIZE);
partSizeThreshold = conf.getInt(MIN_MULTIPART_THRESHOLD, DEFAULT_MIN_MULTIPART_THRESHOLD);
</BUG>
if (conf.get(BUFFER_DIR, null) ... | partSize = conf.getLong(OLD_MULTIPART_SIZE, DEFAULT_MULTIPART_SIZE);
partSizeThreshold = conf.getInt(OLD_MIN_MULTIPART_THRESHOLD, DEFAULT_MIN_MULTIPART_THRESHOLD);
|
23,880 | import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.security.DigestOutputStream;
import java.security.MessageDigest;
<BUG>import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;</BUG>
public final class ... | import java.text.DateFormat;
import java.util.Date;
import java.util.List;
|
23,881 | package org.jboss.as.patching.runner;
<BUG>import org.jboss.as.boot.DirectoryStructure;
import org.jboss.as.patching.LocalPatchInfo;</BUG>
import org.jboss.as.patching.PatchInfo;
import org.jboss.as.patching.PatchLogger;
import org.jboss.as.patching.PatchMessages;
| import static org.jboss.as.patching.runner.PatchUtils.generateTimestamp;
import org.jboss.as.patching.CommonAttributes;
import org.jboss.as.patching.LocalPatchInfo;
|
23,882 | private static final String PATH_DELIMITER = "/";
public static final byte[] NO_CONTENT = PatchingTask.NO_CONTENT;
enum Element {
ADDED_BUNDLE("added-bundle"),
ADDED_MISC_CONTENT("added-misc-content"),
<BUG>ADDED_MODULE("added-module"),
BUNDLES("bundles"),</BUG>
CUMULATIVE("cumulative"),
DESCRIPTION("description"),
MIS... | APPLIES_TO_VERSION("applies-to-version"),
BUNDLES("bundles"),
|
23,883 | final int count = reader.getAttributeCount();
for (int i = 0; i < count; i++) {
final String value = reader.getAttributeValue(i);
final Attribute attribute = Attribute.forName(reader.getAttributeLocalName(i));
switch (attribute) {
<BUG>case APPLIES_TO_VERSION:
builder.addAppliesTo(value);
break;</BUG>
case RESULTING_VE... | [DELETED] |
23,884 | final StringBuilder path = new StringBuilder();
for(final String p : item.getPath()) {
path.append(p).append(PATH_DELIMITER);
}
path.append(item.getName());
<BUG>writer.writeAttribute(Attribute.PATH.name, path.toString());
if(type != ModificationType.REMOVE) {</BUG>
writer.writeAttribute(Attribute.HASH.name, bytesToHex... | if (item.isDirectory()) {
writer.writeAttribute(Attribute.DIRECTORY.name, "true");
if(type != ModificationType.REMOVE) {
|
23,885 | package org.jboss.as.patching;
import org.jboss.as.controller.OperationFailedException;
import org.jboss.as.patching.runner.PatchingException;
import org.jboss.logging.Messages;
import org.jboss.logging.annotations.Message;
<BUG>import org.jboss.logging.annotations.MessageBundle;
import java.io.IOException;</BUG>
impor... | import org.jboss.logging.annotations.Cause;
import java.io.IOException;
|
23,886 | catch (Exception e) {
}
}</BUG>
_log.info("Gadget user prefs was setup.");
_log.info("Setup data source table");
<BUG>ShindigUtil.getTable();
_log.info("Data source table was setup.");</BUG>
}
protected String viewJSP;
private static Log _log = LogFactory.getLog(GadgetPortlet.class);
| prd.include(req, res);
protected void setupTables() {
_log.info("Setup gadget user prefs table");
ShindigUtil.getTable(ShindigUtil.GADGET_USER_PREFERENCES);
ShindigUtil.getTable(ShindigUtil.OPEN_SOCIAL_DATA);
_log.info("Data source table was setup.");
|
23,887 | package com.projecttango.examples.java.augmentedreality;
import com.google.atap.tangoservice.Tango;
import com.google.atap.tangoservice.Tango.OnTangoUpdateListener;
import com.google.atap.tangoservice.TangoCameraIntrinsics;
import com.google.atap.tangoservice.TangoConfig;
<BUG>import com.google.atap.tangoservice.TangoC... | import com.google.atap.tangoservice.TangoErrorException;
import com.google.atap.tangoservice.TangoEvent;
|
23,888 | super.onResume();
if (!mIsConnected) {
mTango = new Tango(AugmentedRealityActivity.this, new Runnable() {
@Override
public void run() {
<BUG>try {
connectTango();</BUG>
setupRenderer();
mIsConnected = true;
} catch (TangoOutOfDateException e) {
| TangoSupport.initialize();
connectTango();
|
23,889 | if (lastFramePose.statusCode == TangoPoseData.POSE_VALID) {
mRenderer.updateRenderCameraPose(lastFramePose, mExtrinsics);
mCameraPoseTimestamp = lastFramePose.timestamp;</BUG>
} else {
<BUG>Log.w(TAG, "Can't get device pose at time: " + mRgbTimestampGlThread);
}</BUG>
}
}
}
@Override
| mRenderer.updateRenderCameraPose(lastFramePose);
mCameraPoseTimestamp = lastFramePose.timestamp;
Log.w(TAG, "Can't get device pose at time: " +
|
23,890 | import org.rajawali3d.materials.Material;
import org.rajawali3d.materials.methods.DiffuseMethod;
import org.rajawali3d.materials.textures.ATexture;
import org.rajawali3d.materials.textures.StreamingTexture;
import org.rajawali3d.materials.textures.Texture;
<BUG>import org.rajawali3d.math.Matrix4;
import org.rajawali3d.... | import org.rajawali3d.math.Quaternion;
import org.rajawali3d.math.vector.Vector3;
|
23,891 | translationMoon.setRepeatMode(Animation.RepeatMode.INFINITE);
translationMoon.setTransformable3D(moon);
getCurrentScene().registerAnimation(translationMoon);
translationMoon.play();
}
<BUG>public void updateRenderCameraPose(TangoPoseData devicePose, DeviceExtrinsics extrinsics) {
Pose cameraPose = ScenePoseCalculator.t... | public void updateRenderCameraPose(TangoPoseData cameraPose) {
float[] rotation = cameraPose.getRotationAsFloats();
float[] translation = cameraPose.getTranslationAsFloats();
Quaternion quaternion = new Quaternion(rotation[3], rotation[0], rotation[1], rotation[2]);
getCurrentCamera().setRotation(quaternion.conjugate()... |
23,892 | package com.projecttango.examples.java.helloareadescription;
import com.google.atap.tangoservice.Tango;
<BUG>import com.google.atap.tangoservice.Tango.OnTangoUpdateListener;
import com.google.atap.tangoservice.TangoConfig;</BUG>
import com.google.atap.tangoservice.TangoCoordinateFramePair;
import com.google.atap.tangos... | import com.google.atap.tangoservice.TangoAreaDescriptionMetaData;
import com.google.atap.tangoservice.TangoConfig;
|
23,893 | package com.cronutils.model.time.generator;
import java.util.Collections;
<BUG>import java.util.List;
import org.apache.commons.lang3.Validate;</BUG>
import com.cronutils.model.field.CronField;
import com.cronutils.model.field.expression.FieldExpression;
public abstract class FieldValueGenerator {
| import org.apache.commons.lang3.Validate;
import org.apache.commons.lang3.Validate;
|
23,894 | import java.util.ResourceBundle;
import java.util.function.Function;</BUG>
class DescriptionStrategyFactory {
private DescriptionStrategyFactory() {}
public static DescriptionStrategy daysOfWeekInstance(final ResourceBundle bundle, final FieldExpression expression) {
<BUG>final Function<Integer, String> nominal = integ... | import java.util.function.Function;
import com.cronutils.model.field.expression.FieldExpression;
import com.cronutils.model.field.expression.On;
final Function<Integer, String> nominal = integer -> DayOfWeek.of(integer).getDisplayName(TextStyle.FULL, bundle.getLocale());
|
23,895 | return dom;
}
public static DescriptionStrategy monthsInstance(final ResourceBundle bundle, final FieldExpression expression) {
return new NominalDescriptionStrategy(
bundle,
<BUG>integer -> new DateTime().withMonthOfYear(integer).monthOfYear().getAsText(bundle.getLocale()),
expression</BUG>
);
}
public static Descript... | integer -> Month.of(integer).getDisplayName(TextStyle.FULL, bundle.getLocale()),
expression
|
23,896 | <BUG>package com.cronutils.model.time.generator;
import com.cronutils.mapper.WeekDay;</BUG>
import com.cronutils.model.field.CronField;
import com.cronutils.model.field.CronFieldName;
import com.cronutils.model.field.constraint.FieldConstraintsBuilder;
| import java.time.LocalDate;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import org.apache.commons.lang3.Validate;
import com.cronutils.mapper.WeekDay;
|
23,897 | import com.cronutils.model.field.expression.Between;
import com.cronutils.model.field.expression.FieldExpression;
import com.cronutils.parser.CronParserField;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
<BUG>import org.apache.commons.lang3.Validate;
import org.joda.time.DateTime;
impo... | [DELETED] |
23,898 | <BUG>package com.cronutils.model.time.generator;
import com.cronutils.model.field.CronField;</BUG>
import com.cronutils.model.field.CronFieldName;
import com.cronutils.model.field.expression.FieldExpression;
import com.cronutils.model.field.expression.On;
| import java.time.DayOfWeek;
import java.time.LocalDate;
import java.util.List;
import org.apache.commons.lang3.Validate;
import com.cronutils.model.field.CronField;
|
23,899 | import com.cronutils.model.field.CronField;</BUG>
import com.cronutils.model.field.CronFieldName;
import com.cronutils.model.field.expression.FieldExpression;
import com.cronutils.model.field.expression.On;
import com.google.common.collect.Lists;
<BUG>import org.apache.commons.lang3.Validate;
import org.joda.time.DateT... | package com.cronutils.model.time.generator;
import java.time.DayOfWeek;
import java.time.LocalDate;
import java.util.List;
import com.cronutils.model.field.CronField;
|
23,900 | class OnDayOfMonthValueGenerator extends FieldValueGenerator {
private int year;
private int month;
public OnDayOfMonthValueGenerator(CronField cronField, int year, int month) {
super(cronField);
<BUG>Validate.isTrue(CronFieldName.DAY_OF_MONTH.equals(cronField.getField()), "CronField does not belong to day of month");
... | Validate.isTrue(CronFieldName.DAY_OF_MONTH.equals(cronField.getField()), "CronField does not belong to day of" +
" month");
this.year = year;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.