repo_id stringclasses 875
values | size int64 974 38.9k | file_path stringlengths 10 308 | content stringlengths 974 38.9k |
|---|---|---|---|
apache/servicecomb-java-chassis | 1,048 | service-registry/registry-local/src/main/java/org/apache/servicecomb/localregistry/LocalRegistryConst.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.servicecomb.localregistry;
public class LocalRegistryConst {
public static final String LOCAL_REGISTRY_ENABLED = "servicecomb.registry.local.enabled";
public static final String LOCAL_REGISTRY_NAME = "local-registry";
}
|
apache/servicecomb-toolkit | 1,036 | oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/PathsValidatorFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.servicecomb.toolkit.oasv.validation.factory;
import org.apache.servicecomb.toolkit.oasv.validation.api.PathsValidator;
public interface PathsValidatorFactory extends OasObjectValidatorFactory<PathsValidator> {
}
|
apache/shardingsphere | 1,051 | infra/spi/src/test/java/org/apache/shardingsphere/infra/spi/type/ordered/fixture/impl/OrderedInterfaceFixtureImpl.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.shardingsphere.infra.spi.type.ordered.fixture.impl;
import org.apache.shardingsphere.infra.spi.type.ordered.fixture.OrderedInterfaceFixture;
public final class OrderedInterfaceFixtureImpl implements OrderedInterfaceFixture {
}
|
apache/shiro | 1,115 | web/src/main/java/org/apache/shiro/web/tags/package-info.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
* Provides the Shiro JSP Tag Library implementations.
* <p/>
* Shiro JSP Tags can be used to evaluate or not evaluate (show or not show) parts of a JSP page based on the
* current user's authentication status and/or authorization (access control) abilities.
*/
package org.apache.shiro.web.tags;
|
apache/sirona | 1,100 | agent/javaagent/src/test/java/org/apache/sirona/javaagent/BeforeFork.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.sirona.javaagent;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface BeforeFork {
}
|
apache/sis | 1,102 | endorsed/src/org.apache.sis.referencing.gazetteer/main/module-info.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Referencing by identifiers.
*
* @author Martin Desruisseaux (Geomatys)
* @version 1.4
* @since 0.8
*/
module org.apache.sis.referencing.gazetteer {
requires jakarta.xml.bind;
requires transitive org.apache.sis.referencing;
exports org.apache.sis.referencing.gazetteer;
}
|
apache/sis | 1,110 | incubator/src/org.apache.sis.test.incubator/test/module-info.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Additional dependencies needed for Apache SIS tests.
*
* @author Martin Desruisseaux (Geomatys)
*/
module org.apache.sis.test.incubator {
requires transitive org.junit.jupiter.api;
requires org.apache.sis.feature;
requires org.apache.sis.storage;
requires org.locationtech.jts;
}
|
apache/skywalking | 1,048 | oap-server/server-query-plugin/promql-plugin/src/main/java/org/apache/skywalking/oap/query/promql/entity/MetricData.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.apache.skywalking.oap.query.promql.entity;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
@Data
public class MetricData {
@JsonInclude(JsonInclude.Include.NON_NULL)
private MetricInfo metric;
}
|
apache/storm | 1,090 | storm-client/src/jvm/org/apache/storm/messaging/netty/KerberosSaslNettyClientState.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version
* 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package org.apache.storm.messaging.netty;
import org.apache.storm.shade.io.netty.util.AttributeKey;
final class KerberosSaslNettyClientState {
public static final AttributeKey<KerberosSaslNettyClient> KERBEROS_SASL_NETTY_CLIENT =
AttributeKey.valueOf("kerberos.sasl.netty.client");
}
|
apache/streampark | 1,046 | streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/mapper/AlertConfigMapper.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.streampark.console.core.mapper;
import org.apache.streampark.console.core.entity.AlertConfig;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
public interface AlertConfigMapper extends BaseMapper<AlertConfig> {
}
|
apache/syncope | 1,064 | client/idrepo/common-ui/src/main/java/org/apache/syncope/client/ui/commons/panels/SubmitableModalPanel.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.syncope.client.ui.commons.panels;
import org.apache.wicket.ajax.AjaxRequestTarget;
public interface SubmitableModalPanel extends ModalPanel {
void onSubmit(AjaxRequestTarget target);
void onError(AjaxRequestTarget target);
}
|
apache/systemds | 1,090 | src/main/java/org/apache/sysds/runtime/compress/colgroup/offset/ISliceOffset.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.sysds.runtime.compress.colgroup.offset;
import org.apache.sysds.runtime.compress.colgroup.offset.AOffset.OffsetSliceInfo;
public interface ISliceOffset {
public OffsetSliceInfo slice(int lowOff, int highOff, int lowValue, int highValue, int low, int high);
}
|
apache/tajo | 1,094 | tajo-plan/src/main/java/org/apache/tajo/plan/verifier/SyntaxErrorException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.tajo.plan.verifier;
import org.apache.tajo.error.Errors;
import org.apache.tajo.exception.TajoException;
public class SyntaxErrorException extends TajoException {
public SyntaxErrorException(Errors.ResultCode code, String ... args) {
super(code, args);
}
}
|
apache/tapestry-5 | 1,060 | tapestry-core/src/main/java/org/apache/tapestry5/internal/services/ResourceDigestGeneratorImpl.java | // Copyright 2006, 2007, 2008 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package org.apache.tapestry5.internal.services;
import org.apache.tapestry5.services.ResourceDigestGenerator;
import java.net.URL;
/**
* Gutted implementation; will be removed in Tapestry 5.5.
*/
public class ResourceDigestGeneratorImpl implements ResourceDigestGenerator
{
public String generateDigest(URL url)
{
return null;
}
public boolean requiresDigest(String path)
{
return false;
}
}
|
apache/tapestry-5 | 1,068 | tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/mixins/TracerMixin.java | // Copyright 2006, 2007 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package org.apache.tapestry5.integration.app1.mixins;
import org.apache.tapestry5.MarkupWriter;
import org.apache.tapestry5.annotations.AfterRender;
import org.apache.tapestry5.annotations.BeginRender;
public class TracerMixin
{
@BeginRender
void begin(MarkupWriter writer)
{
writer.write("BEGIN-TRACER-MIXIN ");
}
@AfterRender
void after(MarkupWriter writer)
{
writer.write("AFTER-TRACER-MIXIN");
}
}
|
apache/tapestry-5 | 1,077 | tapestry-ioc/src/test/java/org/apache/tapestry5/ioc/test/ContributionOrderModule2.java | // Copyright 2014 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package org.apache.tapestry5.ioc.test;
import org.apache.tapestry5.commons.Configuration;
import org.apache.tapestry5.commons.OrderedConfiguration;
public class ContributionOrderModule2
{
public static void contributeOrderedService(OrderedConfiguration<Integer> configuration)
{
configuration.add("2", 2);
}
public static void contributeUnorderedService(Configuration<Integer> configuration)
{
configuration.add(2);
}
}
|
apache/tapestry-5 | 1,077 | tapestry-ioc/src/test/java/org/apache/tapestry5/ioc/test/ContributionOrderModule3.java | // Copyright 2014 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package org.apache.tapestry5.ioc.test;
import org.apache.tapestry5.commons.Configuration;
import org.apache.tapestry5.commons.OrderedConfiguration;
public class ContributionOrderModule3
{
public static void contributeOrderedService(OrderedConfiguration<Integer> configuration)
{
configuration.add("3", 3);
}
public static void contributeUnorderedService(Configuration<Integer> configuration)
{
configuration.add(3);
}
}
|
apache/tapestry-5 | 1,082 | tapestry-jpa/src/main/java/org/apache/tapestry5/jpa/PersistenceUnitConfigurer.java | // Copyright 2011 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package org.apache.tapestry5.jpa;
/**
* Used to configure a {@linkplain jakarta.persistence.spi.PersistenceUnitInfo}, which is used to
* create an {@linkplain jakarta.persistence.EntityManagerFactory}.
*
* @since 5.3
*/
public interface PersistenceUnitConfigurer
{
/**
* Configures a persistence unit.
*
* @param unitInfo
* represents a persistence unit to configure
*/
void configure(TapestryPersistenceUnitInfo unitInfo);
}
|
apache/tapestry-5 | 1,086 | tapestry-core/src/main/java/org/apache/tapestry5/services/DateUtilities.java | // Copyright 2013 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package org.apache.tapestry5.services;
import java.util.Date;
/**
* Formatting utilities for dates; this is primarily used when communicating server-side dates to the clients in ISO-8601 format.
*
* @since 5.4
*/
public interface DateUtilities
{
/**
* Formats the time instant in ISO-8601 format for the UTC time zone.
*
* @param date
* to format, may not be null
* @return formatted date
*/
String formatISO8601(Date date);
}
|
apache/tomcat | 1,120 | java/jakarta/transaction/RollbackException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package jakarta.transaction;
import java.io.Serial;
public class RollbackException extends Exception {
@Serial
private static final long serialVersionUID = 4151607774785285395L;
public RollbackException() {
super();
}
public RollbackException(String msg) {
super(msg);
}
}
|
apache/tomee | 1,041 | itests/openejb-itests-optional-classes/lib_with_optional_dep/src/main/java/org/apache/tomee/itests/optional/optlib/SomeBean.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.tomee.itests.optional.optlib;
import jakarta.enterprise.context.ApplicationScoped;
/**
* Some sample bean
*/
@ApplicationScoped
public class SomeBean {
public String doSomething() {
return "nice";
}
}
|
apache/tomee | 1,057 | examples/bean-validation-design-by-contract/src/main/java/org/superbiz/designbycontract/PoleVaultingManagerBean.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.superbiz.designbycontract;
import jakarta.ejb.Stateless;
import jakarta.validation.constraints.Min;
@Stateless
public class PoleVaultingManagerBean {
public int points(@Min(120) int centimeters) {
return centimeters - 120;
}
}
|
apache/tomee | 1,072 | itests/openejb-itests-client/src/main/java/org/apache/openejb/test/entity/bmp/BasicBmpTestClient.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.openejb.test.entity.bmp;
public abstract class BasicBmpTestClient extends BmpTestClient {
protected BasicBmpHome ejbHome;
protected BasicBmpObject ejbObject;
public BasicBmpTestClient(final String name) {
super(name);
}
}
|
apache/tomee | 1,072 | itests/openejb-itests-client/src/main/java/org/apache/openejb/test/entity/cmp/BasicCmpTestClient.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.openejb.test.entity.cmp;
public abstract class BasicCmpTestClient extends CmpTestClient {
protected BasicCmpHome ejbHome;
protected BasicCmpObject ejbObject;
public BasicCmpTestClient(final String name) {
super(name);
}
}
|
apache/tomee | 1,075 | container/openejb-core/src/test/java/org/apache/openejb/core/cmp/jpa/UnknownCmpBean_Subclass.java | /**
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.openejb.core.cmp.jpa;
import org.apache.openejb.test.entity.cmp.UnknownCmpBean;
public class UnknownCmpBean_Subclass extends UnknownCmpBean {
public Long OpenEJB_pk;
public Object getPrimaryKey() {
return OpenEJB_pk;
}
}
|
apache/tomee | 1,084 | container/openejb-jee/src/main/java/org/apache/openejb/jee/sun/CheckModifiedAtCommit.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.openejb.jee.sun;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlType;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
public class CheckModifiedAtCommit {
}
|
apache/tomee | 1,090 | container/openejb-core/src/main/java/org/apache/openejb/util/CollectionsUtil.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.openejb.util;
import java.util.Collections;
import java.util.List;
public class CollectionsUtil {
public static <T> List<T> safe(final List<T> list) {
if (list == null) {
return Collections.emptyList();
}
return list;
}
}
|
apache/uima-uimaj | 1,066 | uimaj-cpe/src/main/java/org/apache/uima/collection/impl/base_cpm/container/KillPipelineException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.uima.collection.impl.base_cpm.container;
public class KillPipelineException extends Exception {
private static final long serialVersionUID = -4105689778536046179L;
public KillPipelineException(String msg) {
super(msg);
}
}
|
apache/usergrid | 1,074 | stack/query-validator/src/main/java/org/apache/usergrid/query/validator/QueryResultsMatcher.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.usergrid.query.validator;
import org.apache.usergrid.persistence.Entity;
import java.util.List;
/**
* @author Sungju Jin
*/
public interface QueryResultsMatcher {
boolean equals(List<Entity> expectedEntities, List<Entity> actuallyEntities);
}
|
apache/usergrid | 1,090 | stack/core/src/main/java/org/apache/usergrid/corepersistence/ServiceModule.java | /*
*
* * Licensed to the Apache Software Foundation (ASF) under one or more
* * contributor license agreements. The ASF licenses this file to You
* * under the Apache License, Version 2.0 (the "License"); you may not
* * use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* * See the License for the specific language governing permissions and
* * limitations under the License. For additional information regarding
* * copyright in this work, please see the NOTICE file in the top level
* * directory of this distribution.
*
*/
package org.apache.usergrid.corepersistence;
import com.google.inject.AbstractModule;
import com.google.inject.Module;
/**
* Classy class class.
*/
public interface ServiceModule extends Module{
}
|
apache/whirr | 1,103 | core/src/test/java/org/apache/whirr/net/FakeDnsResolver.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.whirr.net;
import static org.apache.commons.lang.StringUtils.replace;
/**
* Fake reverse DNS resolver
*/
public class FakeDnsResolver implements DnsResolver {
@Override
public String apply(String hostIp) {
return replace(hostIp, ".", "-") + ".example.com";
}
}
|
apache/wicket | 1,065 | wicket-core/src/main/java/org/apache/wicket/core/util/resource/locator/caching/IResourceStreamReference.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.wicket.core.util.resource.locator.caching;
import org.apache.wicket.util.resource.IResourceStream;
/**
* Lightweight reference to the cached {@link IResourceStream}
*/
interface IResourceStreamReference
{
IResourceStream getReference();
} |
apache/wicket | 1,086 | wicket-examples/src/main/java/org/apache/wicket/examples/compref/Index.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.wicket.examples.compref;
import org.apache.wicket.examples.WicketExamplePage;
/**
* Home page of the component reference example.
*
* @author Eelco Hillenius
*/
public class Index extends WicketExamplePage
{
/**
* Constructor
*/
public Index()
{
}
} |
apache/xmlbeans | 1,126 | src/test/java/scomp/common/BaseCase.java | /* Copyright 2004 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package scomp.common;
import org.apache.xmlbeans.XmlError;
import org.apache.xmlbeans.XmlOptions;
import java.util.ArrayList;
public final class BaseCase {
public static XmlOptions createOptions() {
XmlOptions op = new XmlOptions();
op.setErrorListener(new ArrayList<>());
return op;
}
public static String[] getErrorCodes(XmlOptions options) {
return options.getErrorListener().stream().map(XmlError::getErrorCode).toArray(String[]::new);
}
}
|
google/bindiff | 1,058 | java/zylib/src/main/java/com/google/security/zynamics/zylib/types/graphs/algorithms/MalformedGraphException.java | // Copyright 2011-2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.security.zynamics.zylib.types.graphs.algorithms;
/** Exception that is used to signal that there is something wrong with the graph. */
public class MalformedGraphException extends Exception {
private static final long serialVersionUID = 7422498674681635996L;
/**
* Creates a new MalformedGraphException object.
*
* @param msg The exception message.
*/
public MalformedGraphException(final String msg) {
super(msg);
}
}
|
google/binnavi | 1,074 | src/main/java/com/google/security/zynamics/binnavi/Gui/Database/DatabaseHostFieldHelp.java | // Copyright 2011-2016 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.security.zynamics.binnavi.Gui.Database;
import com.google.security.zynamics.binnavi.Help.CHelpFunctions;
import com.google.security.zynamics.binnavi.Help.IHelpInformation;
import java.net.URL;
public class DatabaseHostFieldHelp implements IHelpInformation {
@Override
public String getText() {
return "The name / ip of the database host.";
}
@Override
public URL getUrl() {
return CHelpFunctions.urlify(CHelpFunctions.MAIN_WINDOW_FILE);
}
}
|
google/binnavi | 1,076 | src/main/java/com/google/security/zynamics/zylib/gui/zygraph/layouters/CircularStyle.java | // Copyright 2011-2016 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.security.zynamics.zylib.gui.zygraph.layouters;
public enum CircularStyle {
COMPACT, ISOLATED, SINGLE_CIRCLE;
public static CircularStyle parseInt(final int style) {
if (style == COMPACT.ordinal()) {
return COMPACT;
} else if (style == ISOLATED.ordinal()) {
return ISOLATED;
} else if (style == SINGLE_CIRCLE.ordinal()) {
return SINGLE_CIRCLE;
} else {
throw new IllegalStateException("Error: Invalid style");
}
}
}
|
google/binnavi | 1,089 | src/main/java/com/google/security/zynamics/binnavi/API/plugins/IBatchPlugin.java | // Copyright 2011-2016 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.security.zynamics.binnavi.API.plugins;
import com.google.security.zynamics.binnavi.api2.IPluginInterface;
import com.google.security.zynamics.binnavi.api2.plugins.IPlugin;
// / Used to write batch plugins.
/**
* Plugins that implement this interface can be run in batch mode from the BinNavi command line.
*/
public interface IBatchPlugin extends IPlugin<IPluginInterface> {
// ! Invoked to execute the plugin.
/**
* Invoked to execute the plugin.
*/
void run();
}
|
google/copybara | 1,092 | java/com/google/copybara/exception/NonReversibleValidationException.java | /*
* Copyright (C) 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.copybara.exception;
import net.starlark.java.eval.EvalException;
/**
* Exception thrown when a {@link com.google.copybara.Transformation} is not reversible
* but the configuration asked for the reverse.
*/
public class NonReversibleValidationException extends EvalException {
public NonReversibleValidationException(String message) {
super(message);
}
public NonReversibleValidationException(String message, Throwable cause) {
super(message, cause);
}
}
|
google/depan | 1,074 | DepanNodeUI/prod/src/com/google/devtools/depan/eclipse/ui/nodes/viewers/NodeViewerProvider.java | package com.google.devtools.depan.eclipse.ui.nodes.viewers;
import com.google.devtools.depan.model.GraphNode;
import org.eclipse.core.runtime.PlatformObject;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.viewers.TreeViewer;
/**
* @author <a href="leeca@pnambic.com">Lee Carver</a>
*/
public interface NodeViewerProvider {
/**
* Define a generous limit for the number of tree elements to automatically
* open for display. A more refined implementation might offer a user
* configured choice, but this prevents the most egregious problems from
* over-zealous expansion of tree elements.
*
* [2007] Approx 8000 nodes takes ~8sec to expand and display.
* So a limit of 1000 should keep the initial open time down to ~1sec.
*/
public static final int AUTO_EXPAND_LIMIT = 1000;
void addMultiActions(IMenuManager manager);
void addItemActions(IMenuManager manager, Object menuElement);
PlatformObject buildViewerRoots();
Object findNodeObject(GraphNode node);
void updateExpandState(TreeViewer viewer);
}
|
google/guava | 1,084 | android/guava-testlib/src/com/google/common/collect/testing/TestQueueGenerator.java | /*
* Copyright (C) 2008 The Guava Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.common.collect.testing;
import com.google.common.annotations.GwtCompatible;
import java.util.Queue;
import org.jspecify.annotations.NullMarked;
import org.jspecify.annotations.Nullable;
/**
* Creates queues, containing sample elements, to be tested.
*
* @author Jared Levy
*/
@GwtCompatible
@NullMarked
public interface TestQueueGenerator<E extends @Nullable Object> extends TestCollectionGenerator<E> {
@Override
Queue<E> create(Object... elements);
}
|
google/guava | 1,084 | android/guava-tests/test/com/google/common/collect/HashBasedTableColumnMapTest.java | /*
* Copyright (C) 2008 The Guava Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.common.collect;
import com.google.common.annotations.GwtCompatible;
import com.google.common.collect.TableCollectionTest.ColumnMapTests;
import org.jspecify.annotations.NullMarked;
@GwtCompatible
@NullMarked
public class HashBasedTableColumnMapTest extends ColumnMapTests {
public HashBasedTableColumnMapTest() {
super(false, true, true, false);
}
@Override
Table<Integer, String, Character> makeTable() {
return HashBasedTable.create();
}
}
|
google/guava | 1,084 | android/guava-tests/test/com/google/common/collect/TreeBasedTableColumnMapTest.java | /*
* Copyright (C) 2008 The Guava Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.common.collect;
import com.google.common.annotations.GwtCompatible;
import com.google.common.collect.TableCollectionTest.ColumnMapTests;
import org.jspecify.annotations.NullMarked;
@GwtCompatible
@NullMarked
public class TreeBasedTableColumnMapTest extends ColumnMapTests {
public TreeBasedTableColumnMapTest() {
super(false, true, true, false);
}
@Override
Table<Integer, String, Character> makeTable() {
return TreeBasedTable.create();
}
}
|
google/guava | 1,101 | android/guava/src/com/google/common/collect/FilteredMultimap.java | /*
* Copyright (C) 2012 The Guava Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.common.collect;
import com.google.common.annotations.GwtCompatible;
import com.google.common.base.Predicate;
import java.util.Map.Entry;
import org.jspecify.annotations.Nullable;
/**
* An interface for all filtered multimap types.
*
* @author Louis Wasserman
*/
@GwtCompatible
interface FilteredMultimap<K extends @Nullable Object, V extends @Nullable Object>
extends Multimap<K, V> {
Multimap<K, V> unfiltered();
Predicate<? super Entry<K, V>> entryPredicate();
}
|
google/paco | 1,066 | Paco-Server/src/com/google/sampling/experiential/server/migration/jobs/TestTable.java | package com.google.sampling.experiential.server.migration.jobs;
import java.util.Date;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = "true")
public class TestTable {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Long id;
@Persistent
private String name;
@Persistent
private Date modifyDate;
public TestTable(String name, Date modified) {
this.name = name;
this.modifyDate = modified;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Date getModifyDate() {
return modifyDate;
}
public void setModifyDate(Date modifyDate) {
this.modifyDate = modifyDate;
}
} |
google/tsunami-security-scanner | 1,082 | plugin/src/main/java/com/google/tsunami/plugin/payload/Validator.java | /*
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.tsunami.plugin.payload;
import com.google.protobuf.ByteString;
import java.util.Optional;
/** Type used for functions which verify if a payload was executed */
@FunctionalInterface
public interface Validator {
/**
* Checks whether the payload is executed.
*
* @param input - an optional sequence of bytes in the {@link ByteString} format.
* @return whether a payload is executed on the scan target.
*/
boolean isExecuted(Optional<ByteString> input);
}
|
googleads/google-ads-java | 1,055 | google-ads-stubs-v19/src/main/java/com/google/ads/googleads/v19/common/AudienceInsightsEntityOrBuilder.java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v19/common/audience_insights_attribute.proto
// Protobuf Java Version: 3.25.7
package com.google.ads.googleads.v19.common;
public interface AudienceInsightsEntityOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v19.common.AudienceInsightsEntity)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* Required. The machine ID (mid) of the Knowledge Graph entity.
* </pre>
*
* <code>string knowledge_graph_machine_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
* @return The knowledgeGraphMachineId.
*/
java.lang.String getKnowledgeGraphMachineId();
/**
* <pre>
* Required. The machine ID (mid) of the Knowledge Graph entity.
* </pre>
*
* <code>string knowledge_graph_machine_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
* @return The bytes for knowledgeGraphMachineId.
*/
com.google.protobuf.ByteString
getKnowledgeGraphMachineIdBytes();
}
|
googleads/google-ads-java | 1,055 | google-ads-stubs-v20/src/main/java/com/google/ads/googleads/v20/common/AudienceInsightsEntityOrBuilder.java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v20/common/audience_insights_attribute.proto
// Protobuf Java Version: 3.25.7
package com.google.ads.googleads.v20.common;
public interface AudienceInsightsEntityOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v20.common.AudienceInsightsEntity)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* Required. The machine ID (mid) of the Knowledge Graph entity.
* </pre>
*
* <code>string knowledge_graph_machine_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
* @return The knowledgeGraphMachineId.
*/
java.lang.String getKnowledgeGraphMachineId();
/**
* <pre>
* Required. The machine ID (mid) of the Knowledge Graph entity.
* </pre>
*
* <code>string knowledge_graph_machine_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
* @return The bytes for knowledgeGraphMachineId.
*/
com.google.protobuf.ByteString
getKnowledgeGraphMachineIdBytes();
}
|
googleads/google-ads-java | 1,055 | google-ads-stubs-v21/src/main/java/com/google/ads/googleads/v21/common/AudienceInsightsEntityOrBuilder.java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v21/common/audience_insights_attribute.proto
// Protobuf Java Version: 3.25.7
package com.google.ads.googleads.v21.common;
public interface AudienceInsightsEntityOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v21.common.AudienceInsightsEntity)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* Required. The machine ID (mid) of the Knowledge Graph entity.
* </pre>
*
* <code>string knowledge_graph_machine_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
* @return The knowledgeGraphMachineId.
*/
java.lang.String getKnowledgeGraphMachineId();
/**
* <pre>
* Required. The machine ID (mid) of the Knowledge Graph entity.
* </pre>
*
* <code>string knowledge_graph_machine_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
* @return The bytes for knowledgeGraphMachineId.
*/
com.google.protobuf.ByteString
getKnowledgeGraphMachineIdBytes();
}
|
googleads/googleads-mobile-android-mediation | 1,034 | ThirdPartyAdapters/inmobi/inmobi/src/main/java/com/google/ads/mediation/inmobi/InMobiSdkWrapper.java | package com.google.ads.mediation.inmobi;
import android.content.Context;
import androidx.annotation.NonNull;
import com.inmobi.sdk.InMobiSdk;
import com.inmobi.sdk.SdkInitializationListener;
import java.util.Map;
import org.json.JSONObject;
/**
A wrapper class to enable mocking the static methods on InMobi SDK for adapter unit tests.
*/
public class InMobiSdkWrapper {
public String getToken(final Map<String, String> extras, final String keywords) {
return InMobiSdk.getToken(extras, keywords);
}
@NonNull
public String getVersion() {
return InMobiSdk.getVersion();
}
public boolean isSDKInitialized() {
return InMobiSdk.isSDKInitialized();
}
public void setIsAgeRestricted(Boolean isAgeRestricted) {
InMobiSdk.setIsAgeRestricted(isAgeRestricted);
}
public void init(
final Context context,
final String accountId,
final JSONObject consentObject,
final SdkInitializationListener listener) {
InMobiSdk.init(context, accountId, consentObject, listener);
}
}
|
hibernate/hibernate-orm | 1,059 | hibernate-core/src/main/java/org/hibernate/annotations/CollectionIdType.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.annotations;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import org.hibernate.usertype.UserType;
import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* Form of {@link Type} for describing the id of an id-bag mapping.
*
* @since 6.0
*/
@Target({METHOD, FIELD, ANNOTATION_TYPE})
@Retention(RUNTIME)
public @interface CollectionIdType {
/**
* The custom type implementor class
*
* @see Type#value
*/
Class<? extends UserType<?>> value();
/**
* Parameters to be injected into the custom type after
* it is instantiated.
*
* The type should implement {@link org.hibernate.usertype.ParameterizedType}
* to receive the parameters
*
* @see Type#parameters
*/
Parameter[] parameters() default {};
}
|
hibernate/hibernate-orm | 1,068 | hibernate-core/src/main/java/org/hibernate/annotations/EmbeddableInstantiatorRegistration.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.annotations;
import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import org.hibernate.metamodel.spi.EmbeddableInstantiator;
import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
import static java.lang.annotation.ElementType.PACKAGE;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* Registers a custom instantiator implementation to be used
* for all references to a particular {@link jakarta.persistence.Embeddable}.
* <p>
* May be overridden for a specific embedded using {@link org.hibernate.annotations.EmbeddableInstantiator}
*/
@Target( {TYPE, ANNOTATION_TYPE, PACKAGE} )
@Retention( RUNTIME )
@Repeatable( EmbeddableInstantiatorRegistrations.class )
public @interface EmbeddableInstantiatorRegistration {
Class<?> embeddableClass();
Class<? extends EmbeddableInstantiator> instantiator();
}
|
hibernate/hibernate-orm | 1,085 | hibernate-core/src/main/java/org/hibernate/binder/package-info.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
/**
* This package defines an easy way to extend Hibernate with user-defined
* annotations that define customized O/R mappings of annotated entities
* and annotated entity attributes.
* <ul>
* <li>The meta-annotation
* {@link org.hibernate.annotations.TypeBinderType @TypeBinderType}
* associates a {@link org.hibernate.binder.TypeBinder} with a
* user-written annotation which targets entity and embeddable
* {@linkplain java.lang.annotation.ElementType#TYPE types}.
* <li>The meta-annotation
* {@link org.hibernate.annotations.AttributeBinderType @AttributeBinderType}
* associates an {@link org.hibernate.binder.AttributeBinder}
* with a user-written annotation which targets
* {@linkplain java.lang.annotation.ElementType#FIELD fields} and
* properties of entity types and embeddable classes.
* </ul>
*
* @see org.hibernate.binder.AttributeBinder
* @see org.hibernate.binder.TypeBinder
*/
package org.hibernate.binder;
|
hibernate/hibernate-search | 1,058 | engine/src/main/java/org/hibernate/search/engine/impl/EngineBeanConfigurer.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.search.engine.impl;
import org.hibernate.search.engine.environment.bean.BeanHolder;
import org.hibernate.search.engine.environment.bean.spi.BeanConfigurationContext;
import org.hibernate.search.engine.environment.bean.spi.BeanConfigurer;
import org.hibernate.search.engine.environment.thread.impl.EmbeddedThreadProvider;
import org.hibernate.search.engine.environment.thread.spi.ThreadProvider;
import org.hibernate.search.engine.reporting.FailureHandler;
import org.hibernate.search.engine.reporting.impl.LogFailureHandler;
public class EngineBeanConfigurer implements BeanConfigurer {
@Override
public void configure(BeanConfigurationContext context) {
context.define(
ThreadProvider.class, EmbeddedThreadProvider.NAME,
beanResolver -> BeanHolder.of( new EmbeddedThreadProvider() )
);
context.define(
FailureHandler.class, LogFailureHandler.NAME,
beanResolver -> BeanHolder.of( new LogFailureHandler() )
);
}
}
|
openjdk/jdk8 | 1,096 | jdk/test/java/rmi/server/RMIClassLoader/loadProxyClasses/NonpublicInterface1.java | /*
* Copyright (c) 2000, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
*
*/
interface NonpublicInterface1 {}
|
openjdk/jdk8 | 1,103 | jdk/test/com/sun/jmx/remote/NotificationMarshalVersions/Client/ConfigKey.java | /*
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
public enum ConfigKey {
CONSTANT3, CONSTANT2;
} |
openjdk/jdk8 | 1,103 | jdk/test/com/sun/jmx/remote/NotificationMarshalVersions/Server/ConfigKey.java | /*
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
public enum ConfigKey {
CONSTANT1, CONSTANT2;
} |
openjdk/jdk8 | 1,104 | jdk/test/com/sun/jmx/remote/NotificationMarshalVersions/Server/SteMBean.java | /*
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
public interface SteMBean {
public void foo();
} |
openjdk/jdk8 | 1,108 | langtools/test/tools/javac/processing/model/element/8009367/p/RR.java | /*
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package p;
public @interface RR {
R.Q[] value();
}
|
openjdk/jdk8 | 1,111 | langtools/test/tools/javadoc/generics/genericInterface/pkg1/A.java | /*
* Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package pkg1;
public interface A<T> {
void m1(T t);
}
|
openjdk/jdk8 | 1,114 | langtools/test/com/sun/javadoc/testNonFrameWarning/pkg/C.java | /*
* Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package pkg;
/**
* Source file for C
*/
public class C {
}
|
openjdk/jdk8 | 1,129 | jdk/test/java/lang/instrument/DummyClass.java | /*
* Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* Copyright 2003 Wily Technology, Inc.
*/
public class DummyClass
{
}
|
oracle-samples/oracle-db-examples | 1,028 | sagas/CloudBank-DEMO/cloudbank/src/main/java/com/oracle/saga/cloudbank/data/ValidateCustomerCreditScoreDTO.java | /**
* Copyright (c) 2024 Oracle and/or its affiliates.
* Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
*/
package com.oracle.saga.cloudbank.data;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
/**
* ValidateCustomerCreditScoreDTO class is used for validating new customer while creating new account.
*/
public class ValidateCustomerCreditScoreDTO {
public String getOssn() {
return ossn;
}
public void setOssn(String ossn) {
this.ossn = ossn;
}
public String getFullName() {
return fullName;
}
public void setFullName(String fullName) {
this.fullName = fullName;
}
private String ossn;
private String fullName;
@Override
public String toString() {
try {
return new ObjectMapper().writeValueAsString(this);
} catch (JsonProcessingException e) {
return "";
}
}
}
|
oracle/coherence | 1,078 | prj/coherence-core/src/main/java/com/tangosol/net/internal/SimpleConverterEntry.java | /*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
package com.tangosol.net.internal;
import com.tangosol.util.Converter;
import com.tangosol.util.ConverterCollections.ConverterEntry;
import com.tangosol.util.SimpleMapEntry;
/**
* Simple read-only {@link java.util.Map.Entry Entry} implementation that lazily
* converts the underlying key and value.
*
* @author gg 2013.01.07
* @since Coherence 12.1.3
*/
public class SimpleConverterEntry
extends ConverterEntry
{
/**
* Construct the SimpleConverterEntry based on the key, value in internal
* format and the converter to convert from that format.
*/
public SimpleConverterEntry(Object oKey, Object oValue, Converter converter)
{
super(new SimpleMapEntry(oKey, oValue), converter, converter, null);
}
@Override
public Object setValue(Object value)
{
throw new UnsupportedOperationException();
}
}
|
apache/cxf | 1,088 | rt/databinding/aegis/src/test/java/org/apache/cxf/aegis/inheritance/Employee.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
*
*/
package org.apache.cxf.aegis.inheritance;
public class Employee extends AbstractUser {
private String division;
public String getDivision() {
return division;
}
public void setDivision(String division) {
this.division = division;
}
}
|
apache/cxf | 1,105 | core/src/main/java/org/apache/cxf/common/jaxb/JAXBBeanInfo.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.cxf.common.jaxb;
import java.util.Collection;
import javax.xml.namespace.QName;
public interface JAXBBeanInfo {
boolean isElement();
Collection<QName> getTypeNames();
String getElementNamespaceURI(Object object);
String getElementLocalName(Object object);
}
|
apache/deltaspike | 1,064 | deltaspike/modules/data/impl/src/test/java/org/apache/deltaspike/data/test/domain/OneToMany.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.deltaspike.data.test.domain;
import jakarta.persistence.Entity;
@Entity
public class OneToMany extends NamedEntity
{
public OneToMany()
{
super();
}
public OneToMany(String name)
{
super(name);
}
}
|
apache/directory-kerby | 1,072 | kerby-pkix/src/main/java/org/apache/kerby/cms/type/ContentEncryptionAlgorithmIdentifier.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.kerby.cms.type;
import org.apache.kerby.x509.type.AlgorithmIdentifier;
/**
* ContentEncryptionAlgorithmIdentifier ::= AlgorithmIdentifier
*/
public class ContentEncryptionAlgorithmIdentifier extends AlgorithmIdentifier {
}
|
apache/distributedlog | 1,077 | distributedlog-core/src/main/java/org/apache/distributedlog/lock/LockAction.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.distributedlog.lock;
/**
* Lock Action.
*/
interface LockAction {
/**
* Execute a lock action.
*/
void execute();
/**
* Get lock action name.
*
* @return lock action name
*/
String getActionName();
}
|
apache/dolphinscheduler | 1,065 | dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/entity/ResponseTaskLog.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.dolphinscheduler.dao.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
/**
* log of the logger service response
*/
@Data
@AllArgsConstructor
public class ResponseTaskLog {
private int lineNum;
private String message;
}
|
apache/doris-manager | 1,036 | manager/general/src/main/java/org/apache/doris/stack/exception/UserDisabledException.java | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
package org.apache.doris.stack.exception;
public class UserDisabledException extends Exception {
public static final String MESSAGE = "用户已经被停用,请联系管理员激活后再操作";
public UserDisabledException() {
super(MESSAGE);
}
}
|
apache/druid | 1,092 | processing/src/main/java/org/apache/druid/query/BySegmentResultValue.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.druid.query;
import org.apache.druid.guice.annotations.PublicApi;
import org.joda.time.Interval;
import java.util.List;
/**
*/
@PublicApi
public interface BySegmentResultValue<T>
{
List<T> getResults();
String getSegmentId();
Interval getInterval();
}
|
apache/dubbo | 1,075 | dubbo-rpc/dubbo-rpc-triple/src/test/java/org/apache/dubbo/rpc/protocol/tri/support/IGreeter2.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.dubbo.rpc.protocol.tri.support;
public interface IGreeter2 {
String SERVER_MSG = "HELLO WORLD";
/**
* Use request to respond
*/
String echo(String request) throws IGreeterException;
Exception echoException(String request);
}
|
apache/dubbo | 1,088 | dubbo-cluster/src/test/java/org/apache/dubbo/rpc/cluster/filter/DemoServiceStub.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.dubbo.rpc.cluster.filter;
class DemoServiceStub implements DemoService {
public DemoServiceStub(DemoService demoService) {}
public String sayHello(String name) {
return name;
}
public int plus(int a, int b) {
return a + b;
}
}
|
apache/eagle | 1,061 | eagle-core/eagle-data-process/src/main/java/org/apache/eagle/dataproc/impl/storm/partition/DataDistributionDao.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.eagle.dataproc.impl.storm.partition;
import java.io.Serializable;
import java.util.List;
public interface DataDistributionDao extends Serializable {
List<Weight> fetchDataDistribution(long startTime, long endTime) throws Exception;
}
|
apache/eventmesh | 1,051 | eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/AbstractHttpRequestProcessor.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.eventmesh.runtime.core.protocol.http.processor;
import org.apache.eventmesh.runtime.core.protocol.http.processor.inf.HttpRequestProcessor;
public abstract class AbstractHttpRequestProcessor implements HttpRequestProcessor {
}
|
apache/falcon | 1,061 | falcon-regression/merlin-core/src/main/java/org/apache/falcon/regression/core/response/lineage/NODE_TYPE.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.falcon.regression.core.response.lineage;
import com.google.gson.annotations.SerializedName;
/** Enum for all the allowed node types. */
public enum NODE_TYPE {
@SerializedName("vertex")VERTEX,
@SerializedName("edge")EDGE,
}
|
apache/felix-dev | 1,035 | ipojo/manipulator/manipulator-it/online-manipulator-it/src/main/java/org/apache/felix/ipojo/test/online/components/MyProvider.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.felix.ipojo.test.online.components;
import org.apache.felix.ipojo.test.online.services.Hello;
public class MyProvider implements Hello {
public String sayHello() {
return "Hello";
}
}
|
apache/fineract | 1,050 | fineract-e2e-tests-core/src/test/java/org/apache/fineract/test/messaging/event/loan/repayment/LoanRepaymentDueEvent.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.fineract.test.messaging.event.loan.repayment;
public class LoanRepaymentDueEvent extends AbstractLoanRepaymentDueEvent {
@Override
public String getEventName() {
return "LoanRepaymentDueBusinessEvent";
}
}
|
apache/flink | 1,104 | flink-core/src/main/java/org/apache/flink/util/SerializableObject.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.flink.util;
/**
* A simple object that only implements {@link java.io.Serializable}, so it can be used in
* serializable classes.
*/
public class SerializableObject implements java.io.Serializable {
private static final long serialVersionUID = -7322636177391854669L;
}
|
apache/fory | 1,106 | java/fory-core/src/main/java/org/apache/fory/annotation/Public.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.fory.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
/** Annotation for marking classes as public, stable interfaces. */
@Documented
@Target(ElementType.TYPE)
@Public
public @interface Public {}
|
apache/geaflow | 1,030 | geaflow/geaflow-core/geaflow-metaserver/geaflow-metaserver-common/src/main/java/org/apache/geaflow/metaserver/model/protocal/MetaRequest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.geaflow.metaserver.model.protocal;
import org.apache.geaflow.metaserver.service.NamespaceType;
public interface MetaRequest {
NamespaceType namespaceType();
MetaRequestType requestType();
}
|
apache/geaflow | 1,049 | geaflow/geaflow-state/geaflow-state-common/src/main/java/org/apache/geaflow/state/pushdown/project/ProjectType.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.geaflow.state.pushdown.project;
public enum ProjectType {
/**
* dst id projector.
*/
DST_ID,
/**
* time projector.
*/
TIME,
/**
* property projector.
*/
PROPERTY,
}
|
apache/geaflow | 1,066 | geaflow-console/app/common/dal/src/main/java/org/apache/geaflow/console/common/dal/model/JobSearch.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.geaflow.console.common.dal.model;
import lombok.Getter;
import lombok.Setter;
import org.apache.geaflow.console.common.util.type.GeaflowJobType;
@Getter
@Setter
public class JobSearch extends DataSearch {
GeaflowJobType jobType;
}
|
apache/geode | 1,055 | extensions/geode-modules-session-internal/src/main/java/org/apache/geode/modules/session/internal/filter/Constants.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License. You may obtain a
* copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package org.apache.geode.modules.session.internal.filter;
/**
* Various constant values used through the app
*/
public class Constants {
static final String SESSION_STATISTICS_MBEAN_NAME =
"org.apache:type=SessionStatistics,name=sessionStatistics";
}
|
apache/geode | 1,071 | geode-web-api/src/main/java/org/apache/geode/rest/internal/web/controllers/support/QueryResultTypes.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License. You may obtain a
* copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package org.apache.geode.rest.internal.web.controllers.support;
/**
* The QueryResultTypes type describes possible query result types
* <p>
*
* @since GemFire 8.0
*/
public enum QueryResultTypes {
OBJECT_COLLECTION, PDX_COLLECTION, STRUCT_COLLECTION, NESTED_COLLECTION
}
|
apache/geode | 1,079 | geode-junit/src/main/java/org/apache/geode/test/junit/rules/serializable/SerializableTestRule.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License. You may obtain a
* copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package org.apache.geode.test.junit.rules.serializable;
import java.io.Serializable;
import org.junit.rules.TestRule;
/**
* Specifies that a {@link org.junit.rules.TestRule TestRule} is {@code Serializable}.
*/
public interface SerializableTestRule extends Serializable, TestRule {
}
|
apache/giraph | 1,095 | giraph-core/src/main/java/org/apache/giraph/conf/ConfOptionType.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.giraph.conf;
/**
* Type of value for a Configuration option
*/
public enum ConfOptionType {
/** boolean */
BOOLEAN,
/** class */
CLASS,
/** enum */
ENUM,
/** integer */
INTEGER,
/** float */
FLOAT,
/** long */
LONG,
/** string */
STRING
}
|
apache/hadoop | 1,030 | hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/jobhistory/package-info.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
@InterfaceAudience.Private
@InterfaceStability.Unstable
package org.apache.hadoop.mapreduce.jobhistory;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceStability;
|
apache/harmony | 1,092 | classlib/modules/annotation/src/main/java/java/lang/annotation/Documented.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with this
* work for additional information regarding copyright ownership. The ASF
* licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package java.lang.annotation;
/**
* Defines a meta-annotation for indicating that an annotation is documented and
* considered part of the public API.
*
* @since 1.5
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.ANNOTATION_TYPE)
public @interface Documented {
}
|
apache/hertzbeat | 1,064 | hertzbeat-manager/src/main/java/org/apache/hertzbeat/manager/support/exception/MonitorMetricsException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hertzbeat.manager.support.exception;
/**
* Description: Abnormal monitoring indicators
*/
public class MonitorMetricsException extends RuntimeException {
public MonitorMetricsException(String message) {
super(message);
}
}
|
apache/hive | 1,090 | hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/BadParam.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.hive.hcatalog.templeton;
import org.eclipse.jetty.http.HttpStatus;
/**
* Missing required or badly configured paramater.
*/
public class BadParam extends SimpleWebException {
public BadParam(String msg) {
super(HttpStatus.BAD_REQUEST_400, msg);
}
}
|
apache/hive | 1,105 | ql/src/java/org/apache/hadoop/hive/ql/exec/DynamicValueRegistry.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hadoop.hive.ql.exec;
public interface DynamicValueRegistry {
// Abstract class to hold info required for the implementation
public static abstract class RegistryConf {
}
Object getValue(String key) throws Exception;
void init(RegistryConf conf) throws Exception;
}
|
apache/hop | 1,098 | engine/src/main/java/org/apache/hop/core/auth/core/IAuthenticationPerformer.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hop.core.auth.core;
public interface IAuthenticationPerformer<ReturnType, CreateArgType> {
ReturnType perform(CreateArgType consumerCreateArg) throws AuthenticationConsumptionException;
String getDisplayName();
IAuthenticationProvider getAuthenticationProvider();
}
|
apache/ignite-3 | 1,101 | modules/raft/src/main/java/org/apache/ignite/raft/jraft/rpc/Message.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.ignite.raft.jraft.rpc;
import java.io.Serializable;
import org.apache.ignite.internal.network.NetworkMessage;
/**
* Base raft message. Temporary extends Serializable for compatibility with JDK serialization.
*/
public interface Message extends NetworkMessage, Serializable {
}
|
apache/ignite | 1,077 | modules/core/src/test/java/org/apache/ignite/testframework/configvariations/CacheStartMode.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.ignite.testframework.configvariations;
/**
* Cache start mode.
*/
public enum CacheStartMode {
/** Start caches together with nodes (not dynamically). */
STATIC,
/** Starts nodes first and then starts caches dynamically. */
DYNAMIC
}
|
apache/incubator-atlas | 1,102 | server-api/src/main/java/org/apache/atlas/aspect/Loggable.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.atlas.aspect;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface Loggable {
} |
apache/incubator-hugegraph | 1,066 | hugegraph-store/hg-store-core/src/main/java/org/apache/hugegraph/store/HgStoreStateListener.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hugegraph.store;
import org.apache.hugegraph.pd.grpc.Metapb;
import org.apache.hugegraph.store.meta.Store;
public interface HgStoreStateListener {
void stateChanged(Store store, Metapb.StoreState oldState, Metapb.StoreState newState);
}
|
apache/incubator-kie-drools | 1,062 | kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/DMNDecisionLogicCompilerFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.kie.dmn.core.compiler;
/**
* for internal use
*/
public interface DMNDecisionLogicCompilerFactory {
DMNDecisionLogicCompiler newDMNDecisionLogicCompiler(DMNCompilerImpl dmnCompiler, DMNCompilerConfigurationImpl dmnCompilerConfig);
}
|
apache/incubator-kie-drools | 1,078 | kie-api/src/main/java/org/kie/api/runtime/conf/MultiValueKieSessionOption.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.kie.api.runtime.conf;
import org.kie.api.conf.MultiValueOption;
/**
* A markup interface for MultiValueKieSessionConfiguration options
*/
public interface MultiValueKieSessionOption
extends
KieSessionOption,
MultiValueOption {
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.