repo_id
stringclasses
875 values
size
int64
974
38.9k
file_path
stringlengths
10
308
content
stringlengths
974
38.9k
apache/olingo-odata4
1,072
fit/src/main/java/org/apache/olingo/fit/OAuth2.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.olingo.fit; import java.io.IOException; import jakarta.ws.rs.Path; import org.springframework.stereotype.Service; @Service @Path("/V40/OAuth2.svc") public class OAuth2 extends Services { public OAuth2() throws IOException { super(); } }
apache/oltu
1,068
jose/jws/src/main/java/org/apache/oltu/jose/jws/JWSConstants.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.oltu.jose.jws; public class JWSConstants { public static final String RS256 = "RS256"; public static final String RS384 = "RS384"; public static final String RS512 = "RS512"; public static final String HS256 = "HS256"; }
apache/openjpa
1,032
openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/common/apps/HorizAppC.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.openjpa.persistence.jdbc.common.apps; public interface HorizAppC extends HorizAppA { void setStringC(String stringC); String getStringC(); void setIntC(int intC); int getIntC(); }
apache/openwebbeans
1,047
webbeans-impl/src/main/java/org/apache/webbeans/component/EnterpriseBeanMarker.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.webbeans.component; /** * Marker interface for enterprise beans. * All those beans will not get intercepted. * * @version $Rev$ $Date$ * */ public interface EnterpriseBeanMarker { boolean isPassivationCapable(); }
apache/ozhera
1,039
ozhera-monitor/ozhera-monitor-api/src/main/java/org/apache/ozhera/monitor/service/MiFeiShuService.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.ozhera.monitor.service; import java.util.List; public interface MiFeiShuService { List<String> getBatchPhoneByUserNames(List<String> userNames); boolean batchSendMsg(List<String> emails, String msg); }
apache/ozone
1,045
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/safemode/SafeModeManager.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.hdds.scm.safemode; /** * Interface for SafeModeManager. */ public interface SafeModeManager { /** * Returns if the component is in Safemode or not. * @return true/false. */ boolean getInSafeMode(); }
apache/pekko-http
1,050
http-core/src/main/java/org/apache/pekko/http/javadsl/model/headers/ContentEncoding.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * license agreements; and to You under the Apache License, version 2.0: * * https://www.apache.org/licenses/LICENSE-2.0 * * This file is part of the Apache Pekko project, which was derived from Akka. */ /* * Copyright (C) 2009-2022 Lightbend Inc. <https://www.lightbend.com> */ package org.apache.pekko.http.javadsl.model.headers; /** * Model for the `Content-Encoding` header. Specification: * http://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-26#section-3.1.2.2 */ public abstract class ContentEncoding extends org.apache.pekko.http.scaladsl.model.HttpHeader { public abstract Iterable<HttpEncoding> getEncodings(); public static ContentEncoding create(HttpEncoding... encodings) { return new org.apache.pekko.http.scaladsl.model.headers.Content$minusEncoding( org.apache.pekko.http.impl.util.Util .<HttpEncoding, org.apache.pekko.http.scaladsl.model.headers.HttpEncoding>convertArray( encodings)); } }
apache/polaris
1,044
polaris-core/src/test/java/org/apache/polaris/core/secrets/UnsafeInMemorySecretsManagerTest.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.polaris.core.secrets; class UnsafeInMemorySecretsManagerTest extends UserSecretsManagerBaseTest { @Override protected UserSecretsManager newSecretsManager() { return new UnsafeInMemorySecretsManager(); } }
apache/qpid-jms
1,054
qpid-jms-client/src/main/java/org/apache/qpid/jms/util/ResourceNotFoundException.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.qpid.jms.util; public class ResourceNotFoundException extends Exception { private static final long serialVersionUID = -4410424250899087436L; public ResourceNotFoundException(String cause) { super(cause); } }
apache/ratis
1,059
ratis-test/src/test/java/org/apache/ratis/netty/TestServerPauseResumeWithNetty.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.ratis.netty; import org.apache.ratis.server.impl.ServerPauseResumeTest; public class TestServerPauseResumeWithNetty extends ServerPauseResumeTest<MiniRaftClusterWithNetty> implements MiniRaftClusterWithNetty.FactoryGet { }
apache/ratis
1,064
ratis-common/src/main/java/org/apache/ratis/util/UncheckedAutoCloseable.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.ratis.util; /** * The same as {@link AutoCloseable} * except that the close method does not throw {@link Exception}. */ @FunctionalInterface public interface UncheckedAutoCloseable extends AutoCloseable { @Override void close(); }
apache/royale-compiler
1,037
compiler/src/main/java/org/apache/royale/compiler/tree/metadata/IResourceBundleTagNode.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.royale.compiler.tree.metadata; /** * Represents an ResourceBundle metadata tag, of the form * [ResourceBundle("bundlename")] */ public interface IResourceBundleTagNode extends IMetaTagNode { }
apache/samza
1,059
samza-api/src/main/java/org/apache/samza/system/SystemStreamPartitionMatcher.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.samza.system; import org.apache.samza.config.Config; import java.util.Set; public interface SystemStreamPartitionMatcher { Set<SystemStreamPartition> filter(Set<SystemStreamPartition> systemStreamPartitions, Config config); }
apache/servicecomb-pack
1,027
alpha/alpha-core/src/main/java/org/apache/servicecomb/pack/alpha/core/metrics/AlphaMetricsEndpoint.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.pack.alpha.core.metrics; import org.apache.servicecomb.pack.alpha.core.NodeStatus.TypeEnum; public interface AlphaMetricsEndpoint { MetricsBean getMetrics(); TypeEnum getNodeType(); }
apache/shiro
1,058
support/aspectj/src/test/java/org/apache/shiro/aspectj/DummyService.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.shiro.aspectj; /** * Basic service for test purposes. */ public interface DummyService { void log(String aMessage); void anonymous(); void guest(); void peek(); void retrieve(); void change(); }
apache/sirona
1,086
api/src/main/java/org/apache/sirona/spi/DefaultSPI.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.spi; import org.apache.sirona.util.SironaServiceLoader; public class DefaultSPI implements SPI { @Override public <T> Iterable<T> find(final Class<T> api, final ClassLoader loader) { return SironaServiceLoader.load( api, loader ); } }
apache/solr
1,072
solr/solrj/src/java/org/apache/solr/client/solrj/SolrClientFunction.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.solr.client.solrj; import java.io.IOException; /** A lambda intended for invoking SolrClient operations */ @FunctionalInterface public interface SolrClientFunction<C extends SolrClient, R> { R apply(C c) throws IOException, SolrServerException; }
apache/storm
1,073
storm-client/src/jvm/org/apache/storm/trident/planner/TupleReceiver.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.trident.planner; import org.apache.storm.trident.tuple.TridentTuple; public interface TupleReceiver { //streaId indicates where tuple came from void execute(ProcessorContext processorContext, String streamId, TridentTuple tuple); void flush(); }
apache/storm
1,074
storm-client/src/jvm/org/apache/storm/trident/testing/TrueFilter.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.trident.testing; import org.apache.storm.trident.operation.BaseFilter; import org.apache.storm.trident.tuple.TridentTuple; public class TrueFilter extends BaseFilter { @Override public boolean isKeep(TridentTuple tuple) { return true; } }
apache/submarine
1,051
submarine-client/src/main/java/org/apache/submarine/client/cli/param/yaml/PsRole.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.submarine.client.cli.param.yaml; /** * Holds configuration values for PS (parameter server). * 'ps' is a section underneath the 'roles' section of the YAML * configuration file. */ public class PsRole extends Role { }
apache/syncope
1,037
ext/scimv2/scim-rest-api/src/main/java/org/apache/syncope/ext/scimv2/api/service/SCIMUserService.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.ext.scimv2.api.service; import jakarta.ws.rs.Path; import org.apache.syncope.ext.scimv2.api.data.SCIMUser; @Path("v2/Users") public interface SCIMUserService extends SCIMResourceService<SCIMUser> { }
apache/syncope
1,038
core/persistence-api/src/main/java/org/apache/syncope/core/persistence/api/entity/task/TaskExec.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.core.persistence.api.entity.task; import org.apache.syncope.core.persistence.api.entity.Exec; public interface TaskExec<T extends Task<T>> extends Exec { T getTask(); void setTask(T task); }
apache/tapestry-5
1,039
tapestry-latest-java-tests/src/test/java/org/apache/tapestry5/ioc/services/Java9Service.java
// 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.services; public interface Java9Service { void tryWithResources(); void callSafeVarArgs(); default void defaultMethod() { privateMethodInInterface(); } /** * For testing Support for Private Interface Methods * https://docs.oracle.com/en/java/javase/17/language/java-language-changes.html#GUID-015392DB-F5C4-4A8E-B190-E797707E7BFB */ private void privateMethodInInterface() { } }
apache/thrift
1,068
lib/java/src/test/java/org/apache/thrift/test/fuzz/ParseJSONFuzzer.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.thrift.test.fuzz; import org.apache.thrift.protocol.TJSONProtocol; public class ParseJSONFuzzer { public static void fuzzerTestOneInput(byte[] input) throws Exception { FuzzTestUtils.testParse(input, new TJSONProtocol.Factory()); } }
apache/thrift
1,070
lib/java/src/main/java/org/apache/thrift/meta_data/ListMetaData.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.thrift.meta_data; public class ListMetaData extends FieldValueMetaData { public final FieldValueMetaData elemMetaData; public ListMetaData(byte type, FieldValueMetaData eMetaData) { super(type); this.elemMetaData = eMetaData; } }
apache/tomee
1,053
examples/security-tomcat-user-identitystore/src/main/java/org/superbiz/movie/Api.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.superbiz.movie; import jakarta.annotation.security.DeclareRoles; import jakarta.ws.rs.ApplicationPath; import jakarta.ws.rs.core.Application; @ApplicationPath("/api") @DeclareRoles({"admin"}) public class Api extends Application { }
apache/tomee
1,055
itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/beans/Calculator.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.beans; import java.rmi.RemoteException; public interface Calculator extends jakarta.ejb.EJBObject { public int add(int a, int b) throws RemoteException; public int sub(int a, int b) throws RemoteException; }
apache/tomee
1,066
server/openejb-server/src/main/java/org/apache/openejb/server/Restart.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.server; public class Restart { public static void main(String[] args) throws Exception { // System.exit(new Start().start()?0:1); new Stop().stop(); Thread.sleep(1000); new Start().start(); } }
apache/tomee
1,074
examples/mtom/src/main/java/org/superbiz/mtom/AbstractService.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.mtom; import jakarta.activation.DataHandler; public class AbstractService { public Response convertToBytes(final Request request) { return new Response(new DataHandler(request.getMessage().getBytes(), "application/octet-stream")); } }
apache/wicket
1,050
wicket-core-tests/src/test/java/org/apache/wicket/noheadnobody/NoHeadNoBodyPanel.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.noheadnobody; import org.apache.wicket.markup.html.panel.Panel; public class NoHeadNoBodyPanel extends Panel { private static final long serialVersionUID = 1L; public NoHeadNoBodyPanel(String id) { super(id); } }
apache/xmlgraphics-fop
1,042
fop-core/src/main/java/org/apache/fop/render/pdf/extensions/PDFNavigatorExtension.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. */ /* $Id$ */ package org.apache.fop.render.pdf.extensions; // CSOFF: LineLengthCheck public class PDFNavigatorExtension extends PDFDictionaryExtension { PDFNavigatorExtension() { super(PDFDictionaryType.Navigator); } }
google-ar/sceneform-android-sdk
1,029
sceneformsrc/sceneform/src/main/java/com/google/ar/sceneform/lullmodel/MaterialTextureUsage.java
// automatically generated by the FlatBuffers compiler, do not modify package com.google.ar.sceneform.lullmodel; public final class MaterialTextureUsage { private MaterialTextureUsage() { } public static final int BaseColor = 0; public static final int Metallic = 1; public static final int Normal = 2; public static final int Bump = 3; public static final int Height = 4; public static final int Specular = 5; public static final int Ambient = 6; public static final int Emissive = 7; public static final int Light = 8; public static final int Shadow = 9; public static final int Reflection = 10; public static final int Opacity = 11; public static final int Roughness = 12; public static final int Occlusion = 13; public static final int Shininess = 14; public static final int BrdfLookupTable = 15; public static final int DiffuseEnvironment = 16; public static final int SpecularEnvironment = 17; public static final int DiffuseColor = 18; public static final int Unused = 255; }
google/binnavi
1,050
src/main/java/com/google/security/zynamics/binnavi/disassembly/INaviOperandTree.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.disassembly; import com.google.security.zynamics.zylib.disassembly.IOperandTree; /** * Interface that represents operand trees. */ public interface INaviOperandTree extends IOperandTree { /** * Returns the instruction the operand tree belongs to. * * @return The instruction the operand tree belongs to. */ INaviInstruction getInstruction(); @Override INaviOperandTreeNode getRootNode(); }
google/error-prone
1,063
check_api/src/main/java/com/google/errorprone/matchers/Matcher.java
/* * Copyright 2011 The Error Prone 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.errorprone.matchers; import com.google.errorprone.VisitorState; import com.sun.source.tree.Tree; import java.io.Serializable; /** * Define a predicate on a {@link Tree}, which also accesses the state of AST traversal. * * @param <T> a javac AST node * @author alexeagle@google.com (Alex Eagle) */ @FunctionalInterface public interface Matcher<T extends Tree> extends Serializable { boolean matches(T t, VisitorState state); }
google/filament
1,050
android/gltfio-android/src/main/java/com/google/android/filament/gltfio/Gltfio.java
/* * Copyright (C) 2020 The Android Open Source Project * * 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.android.filament.gltfio; import com.google.android.filament.Filament; public class Gltfio { /** * Initializes the gltfio JNI layer. Must be called before using any gltfio functionality. */ public static void init() { // Load Filament first to ensure that the NioUtils Java class is available in the JNIEnv. Filament.init(); System.loadLibrary("gltfio-jni"); } }
google/guava
1,065
guava-tests/test/com/google/common/collect/HashBasedTableRowTest.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.RowTests; import org.jspecify.annotations.NullMarked; @GwtCompatible @NullMarked public class HashBasedTableRowTest extends RowTests { public HashBasedTableRowTest() { super(false, true, true, true, true); } @Override Table<Character, String, Integer> makeTable() { return HashBasedTable.create(); } }
google/guava
1,065
guava-tests/test/com/google/common/collect/TreeBasedTableRowTest.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.RowTests; import org.jspecify.annotations.NullMarked; @GwtCompatible @NullMarked public class TreeBasedTableRowTest extends RowTests { public TreeBasedTableRowTest() { super(false, true, true, true, true); } @Override Table<Character, String, Integer> makeTable() { return TreeBasedTable.create(); } }
google/j2cl
1,038
junit/generator/javatests/com/google/j2cl/junit/apt/JUnit4TestCaseWithArgumentsOnClassMethod.java
/* * Copyright 2022 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.j2cl.junit.apt; import org.junit.BeforeClass; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; /** A simple Unit test to test processing in {@link J2clTestingProcessingStepTest}. */ @RunWith(JUnit4.class) public class JUnit4TestCaseWithArgumentsOnClassMethod { @BeforeClass public static void beforeClass(@SuppressWarnings("unused") Object o) {} @Test public void test() {} }
google/nomulus
1,041
core/src/main/java/google/registry/flows/exceptions/UnauthorizedForSuperuserExtensionException.java
// Copyright 2017 The Nomulus Authors. All Rights Reserved. // // 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 google.registry.flows.exceptions; import google.registry.flows.EppException.AuthorizationErrorException; /** Superuser extension used by non-superuser or not passed by tool. */ public class UnauthorizedForSuperuserExtensionException extends AuthorizationErrorException { public UnauthorizedForSuperuserExtensionException() { super("Superuser extension used by non-superuser or not passed by tool."); } }
googlearchive/abelana
1,045
Android/app/src/main/java/com/examples/abelanav2/grpcclient/AbelanaClientException.java
/* * Copyright 2015 Google Inc. All Rights Reserved. * * 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.examples.abelanav2.grpcclient; /** * Created by gangloff on 5/29/15. */ public class AbelanaClientException extends Exception { public AbelanaClientException() { super(); } public AbelanaClientException(String message) { super(message); } public AbelanaClientException(String message, Throwable cause) { super(message, cause); } public AbelanaClientException(Throwable cause) { super(cause); } }
openjdk/jdk8
1,085
langtools/test/com/sun/javadoc/JavascriptWinTitle/p2/C2.java
/* * Copyright (c) 2002, 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 p2; public class C2 { }
openjdk/jdk8
1,087
langtools/test/com/sun/javadoc/testTypeParams/pkg/Foo4.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; public class Foo4 {}
openjdk/jdk8
1,092
langtools/test/tools/javac/CyclicInheritance6/p1/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 p1; public class A extends B {}
openjdk/jdk8
1,092
langtools/test/tools/javac/CyclicInheritance6/p1/B.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 p1; public class B extends C {}
openjdk/jdk8
1,094
langtools/test/tools/javac/varargs/6313164/p1/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 p1; public class C extends A { }
oracle/coherence
1,039
prj/test/functional/trigger/src/main/java/trigger/DistMapTriggerTests.java
/* * Copyright (c) 2000, 2022, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at * https://oss.oracle.com/licenses/upl. */ package trigger; import org.junit.BeforeClass; /** * A collection of functional tests for the MapTrigger functionality that use * the "dist-std-test1" cache. * * @author gg 2008.03.14 */ public class DistMapTriggerTests extends AbstractMapTriggerTests { // ----- constructors --------------------------------------------------- /** * Default constructor. */ public DistMapTriggerTests() { super("dist-std-test1"); } // ----- test lifecycle ------------------------------------------------- /** * Initialize the test class. */ @BeforeClass public static void _startup() { // this test requires local storage to be enabled System.setProperty("coherence.distributed.localstorage", "true"); AbstractMapTriggerTests._startup(); } }
oracle/coherence
1,039
prj/test/functional/trigger/src/main/java/trigger/NearMapTriggerTests.java
/* * Copyright (c) 2000, 2022, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at * https://oss.oracle.com/licenses/upl. */ package trigger; import org.junit.BeforeClass; /** * A collection of functional tests for the MapTrigger functionality that use * the "near-std-test1" cache. * * @author gg 2008.03.14 */ public class NearMapTriggerTests extends AbstractMapTriggerTests { // ----- constructors --------------------------------------------------- /** * Default constructor. */ public NearMapTriggerTests() { super("near-std-test1"); } // ----- test lifecycle ------------------------------------------------- /** * Initialize the test class. */ @BeforeClass public static void _startup() { // this test requires local storage to be enabled System.setProperty("coherence.distributed.localstorage", "true"); AbstractMapTriggerTests._startup(); } }
oracle/nosql
1,061
kvmain/src/main/java/com/sleepycat/je/dbi/ReservedDBMap.java
/*- * Copyright (C) 2002, 2024, Oracle and/or its affiliates. All rights reserved. * * This file was distributed by Oracle as part of a version of Oracle NoSQL * Database made available at: * * http://www.oracle.com/technetwork/database/database-technologies/nosqldb/downloads/index.html * * Please see the LICENSE file included in the top-level directory of the * appropriate version of Oracle NoSQL Database for a copy of the license and * additional information. */ package com.sleepycat.je.dbi; import java.util.Map; /* * As -1 to -255 are databaseid's which are reserved, this class maintain the * static mappings of reserved databases. Assumes that what ever reserved * database we will add , is also added as a enum in DbType */ public class ReservedDBMap { private static final Map<String, Integer> reservedMap = Map.ofEntries( Map.entry(DbType.BEFORE_IMAGE.getInternalName(), -1)); /*cannot instantiate */ private ReservedDBMap() { } public static Integer getValue(String name) { return reservedMap.get(name); } }
oracle/nosql
1,070
kvmain/src/main/java/com/sleepycat/je/utilint/Pair.java
/*- * Copyright (C) 2002, 2025, Oracle and/or its affiliates. All rights reserved. * * This file was distributed by Oracle as part of a version of Oracle NoSQL * Database made available at: * * http://www.oracle.com/technetwork/database/database-technologies/nosqldb/downloads/index.html * * Please see the LICENSE file included in the top-level directory of the * appropriate version of Oracle NoSQL Database for a copy of the license and * additional information. */ package com.sleepycat.je.utilint; /** * Generic immutable pair, intended for grouping two data elements when a more * specific class is unwarranted. */ public class Pair<FIRST, SECOND> { private final FIRST first; private final SECOND second; public Pair(FIRST first, SECOND second) { this.first = first; this.second = second; } public FIRST first() { return first; } public SECOND second() { return second; } @Override public String toString() { return "[" + first + ", " + second + "]"; } }
oracle/oci-java-sdk
1,053
bmc-common/src/main/java/com/oracle/bmc/auth/internal/StringRptPathProvider.java
/** * Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ package com.oracle.bmc.auth.internal; import org.slf4j.Logger; /** This path provider directly takes a string and returns it. */ public class StringRptPathProvider implements RptPathProvider { private static final Logger LOG = org.slf4j.LoggerFactory.getLogger(StringRptPathProvider.class); private final String path; /** * Constructor of StringRptPathProvider. * * @param path string that represents the path for resource principal token. */ public StringRptPathProvider(String path) { this.path = path; LOG.debug("Found String RPT Path Provider with path {}", path); } @Override public String getPath() { return path; } }
apache/crunch
1,074
crunch-lambda/src/main/java/org/apache/crunch/lambda/LDoFn.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.crunch.lambda; import org.apache.crunch.DoFn; import java.io.Serializable; /** * A Java lambdas friendly version of the {@link DoFn} class. */ public interface LDoFn<S, T> extends Serializable { void process(LDoFnContext<S, T> context); }
apache/ctakes
1,049
ctakes-fhir/src/main/java/org/apache/ctakes/fhir/cr/FhirJsonFileReader.java
package org.apache.ctakes.fhir.cr; import org.apache.ctakes.core.cr.AbstractFileTreeReader; import org.apache.ctakes.core.pipeline.PipeBitInfo; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.apache.uima.jcas.JCas; import org.hl7.fhir.dstu3.model.Bundle; import java.io.File; import java.io.IOException; /** * Unfinished collection reader to create ctakes annotations from fhir files. * * @author SPF , chip-nlp * @version %I% * @since 1/22/2018 */ @PipeBitInfo( name = "FhirJsonFileReader", description = "Reads fhir information from json.", role = PipeBitInfo.Role.READER ) public class FhirJsonFileReader extends AbstractFileTreeReader { static private final Logger LOGGER = LoggerFactory.getLogger( "FhirJsonFileReader" ); /** * {@inheritDoc} */ @Override protected void readFile( final JCas jCas, final File file ) throws IOException { jCas.reset(); final Bundle bundle = BundleReader.readJsonBundle( file ); BundleParser.parseBundle( jCas, bundle ); } }
apache/curator
1,056
curator-framework/src/main/java/org/apache/curator/framework/api/Versionable.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.curator.framework.api; public interface Versionable<T> { /** * Use the given version (the default is -1) * * @param version version to use * @return this */ public T withVersion(int version); }
apache/cxf
1,046
rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/fortest/jaxb/packageinfo/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. */ @jakarta.xml.bind.annotation.XmlSchema(namespace = "http://superbooks", xmlns = { @XmlNs(prefix = "os", namespaceURI = "http://superbooks") }) package org.apache.cxf.jaxrs.fortest.jaxb.packageinfo; import jakarta.xml.bind.annotation.XmlNs;
apache/cxf
1,054
tools/javato/ws/src/test/java/org/apache/cxf/tools/fortest/exception/ListException2.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.tools.fortest.exception; import java.util.List; public class ListException2 extends Exception { private static final long serialVersionUID = 1L; //CHECKSTYLE:OFF public List<MyData> address; //CHECKSTYLE:ON }
apache/cxf
1,063
rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/util/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. */ /** * Utility classes to make it easier to work with the JMS API. * * This package might later be moved to a jms library independent of cxf. * So any classes in this package should only depend on the jms API. */ package org.apache.cxf.transport.jms.util;
apache/deltaspike
1,037
deltaspike/examples/jse-examples/src/main/java/org/apache/deltaspike/example/config/LocationId.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.example.config; /** * Enum as an example for a type-safe config with * {@link org.apache.deltaspike.core.api.config.ConfigProperty} */ public enum LocationId { LOCATION_X, LOCATION_Y, LOCATION_Z }
apache/deltaspike
1,045
deltaspike/core/api/src/main/java/org/apache/deltaspike/core/api/projectstage/TestStage.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.core.api.projectstage; /** * Marker interface for {@link ProjectStage} implementations which are used for tests. E.g. used to enable logging in * all 'testing' ProjectStages. */ public interface TestStage { }
apache/directory-kerby
1,050
kerby-pkix/src/main/java/org/apache/kerby/cms/type/DigestAlgorithmIdentifier.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; /** * DigestAlgorithmIdentifier ::= AlgorithmIdentifier */ public class DigestAlgorithmIdentifier extends AlgorithmIdentifier { }
apache/directory-kerby
1,050
kerby-pkix/src/main/java/org/apache/kerby/x509/type/SubjectKeyIdentifier.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.x509.type; import org.apache.kerby.asn1.type.Asn1OctetString; /** * * <pre> * SubjectKeyIdentifier::= OCTET STRING * </pre> */ public class SubjectKeyIdentifier extends Asn1OctetString { }
apache/druid
1,043
indexing-service/src/main/java/org/apache/druid/indexing/overlord/autoscaling/Provisioner.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.indexing.overlord.autoscaling; import org.apache.druid.guice.annotations.PublicApi; @PublicApi public interface Provisioner { boolean doTerminate(); boolean doProvision(); ScalingStats getStats(); }
apache/dubbo-samples
1,048
online_bontique_demo/common/src/main/java/org/apache/dubbo/shop/common/pojo/Empty.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.shop.common.pojo; import lombok.NoArgsConstructor; import java.io.Serializable; @NoArgsConstructor public class Empty implements Serializable { // This class can be left empty or you can add fields if necessary }
apache/dubbo
1,036
dubbo-rpc/dubbo-rpc-triple/src/main/java/org/apache/dubbo/rpc/protocol/tri/compressor/MessageEncoding.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.compressor; public interface MessageEncoding { /** * message encoding of current compressor * * @return return message encoding */ String getMessageEncoding(); }
apache/dubbo
1,061
dubbo-compatible/src/test/java/org/apache/dubbo/metadata/tools/Ancestor.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.metadata.tools; import java.io.Serializable; public class Ancestor implements Serializable { private boolean z; public boolean isZ() { return z; } public void setZ(boolean z) { this.z = z; } }
apache/eventmesh
1,025
eventmesh-common/src/main/java/org/apache/eventmesh/common/config/connector/knative/SourceConnectorConfig.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.common.config.connector.knative; import lombok.Data; @Data public class SourceConnectorConfig { private String connectorName; public String emurl; public String serviceAddr; }
apache/eventmesh
1,050
eventmesh-spi/src/test/java/org/apache/eventmesh/spi/example/PrototypeExtension.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.spi.example; import lombok.extern.slf4j.Slf4j; @Slf4j public class PrototypeExtension implements TestPrototypeExtension { @Override public void hello() { log.info("I am PrototypeExtension"); } }
apache/eventmesh
1,050
eventmesh-spi/src/test/java/org/apache/eventmesh/spi/example/SingletonExtension.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.spi.example; import lombok.extern.slf4j.Slf4j; @Slf4j public class SingletonExtension implements TestSingletonExtension { @Override public void hello() { log.info("I am SingletonExtension"); } }
apache/felix-dev
1,054
ipojo/manipulator/manipulator/src/test/java/test/PojoWithStaticInterface.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 test; public class PojoWithStaticInterface { private final InterfaceWithStatic intf = InterfaceWithStatic.ofString("test"); // This is a simple POJO public String doSomething() { return intf.getString(); } }
apache/felix-dev
1,056
healthcheck/annotation/src/main/java/org/apache/felix/hc/annotation/Sticky.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 SF 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.hc.annotation; import org.osgi.service.component.annotations.ComponentPropertyType; @ComponentPropertyType public @interface Sticky { public static final String PREFIX_ = "hc."; long keepNonOkResultsStickyForSec(); }
apache/felix-dev
1,064
systemready/src/main/java/org/apache/felix/systemready/SystemReady.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.systemready; /** * Marker service that is registered when all system checks succeed. * * This framework is deprecated. * @deprecated Use the Apache Felix Healthchecks instead. */ @Deprecated public interface SystemReady { }
apache/felix-dev
1,069
scr/src/main/java/org/apache/felix/scr/impl/inject/OpenStatus.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.scr.impl.inject; import java.util.Collection; import java.util.concurrent.atomic.AtomicInteger; /** * @version $Rev$ $Date$ */ public interface OpenStatus<S, T> { Collection<RefPair<S, T>> getRefs(AtomicInteger trackingCount); }
apache/flink
1,052
flink-streaming-java/src/main/java/org/apache/flink/streaming/experimental/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. */ /** * This package holds classes that are experimental. * * <p>They are NOT battle-tested code and may be changed or removed in future versions. * * <p>None of the classes should be @Public. */ package org.apache.flink.streaming.experimental;
apache/flink
1,053
flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/metrics/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. */ /** * This package contains classes implementing various metrics for the job execution, based on the * {@link org.apache.flink.runtime.executiongraph.ExecutionGraph Execution Graph}. */ package org.apache.flink.runtime.executiongraph.metrics;
apache/geaflow
1,030
geaflow/geaflow-state/geaflow-state-api/src/main/java/org/apache/geaflow/state/DynamicOneDegreeGraphState.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; import org.apache.geaflow.state.data.OneDegreeGraph; public interface DynamicOneDegreeGraphState<K, VV, EV> extends DynamicQueryableState<K, VV, EV, OneDegreeGraph<K, VV, EV>> { }
apache/gobblin
1,033
gobblin-modules/gobblin-compliance/src/main/java/org/apache/gobblin/compliance/purger/PurgeableDataset.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.gobblin.compliance.purger; import java.io.IOException; import org.apache.gobblin.data.management.dataset.Dataset; public interface PurgeableDataset extends Dataset { void purge() throws IOException; }
apache/guacamole-client
1,046
guacamole/src/main/java/org/apache/guacamole/tunnel/websocket/tomcat/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. */ /** * Tomcat WebSocket tunnel implementation. The classes here require at least * Tomcat 7.0, and may change significantly as there is no common WebSocket * API for Java yet. */ package org.apache.guacamole.tunnel.websocket.tomcat;
apache/hadoop
1,039
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/contracts/exceptions/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.Public @InterfaceStability.Evolving package org.apache.hadoop.fs.azurebfs.contracts.exceptions; import org.apache.hadoop.classification.InterfaceAudience; import org.apache.hadoop.classification.InterfaceStability;
apache/harmony
1,042
classlib/modules/print/src/main/java/common/javax/print/attribute/PrintRequestAttributeSet.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. */ /** * @author Elena V. Sayapina */ package javax.print.attribute; public interface PrintRequestAttributeSet extends AttributeSet { boolean add(Attribute attribute); boolean addAll(AttributeSet attributeSet); }
apache/harmony
1,049
classlib/modules/print/src/main/java/common/org/apache/harmony/x/print/ipp/IppException.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.harmony.x.print.ipp; public class IppException extends Exception { private static final long serialVersionUID = -5855422273043510539L; IppException(String message) { super(message); } }
apache/harmony
1,058
classlib/modules/rmi/src/main/java/java/rmi/activation/UnknownObjectException.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.rmi.activation; public class UnknownObjectException extends ActivationException { private static final long serialVersionUID = 3425547551622251430L; public UnknownObjectException(String message) { super(message); } }
apache/harmony
1,061
classlib/modules/imageio/src/main/java/javax/imageio/spi/RegisterableService.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. */ /** * @author Rustem V. Rafikov */ package javax.imageio.spi; public interface RegisterableService { void onRegistration(ServiceRegistry registry, Class<?> category); void onDeregistration(ServiceRegistry registry, Class<?> category); }
apache/harmony
1,065
classlib/modules/awt/src/main/java/common/java/awt/Transparency.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. */ /** * @author Pavel Dolgov */ package java.awt; public interface Transparency { public static final int OPAQUE = 1; public static final int BITMASK = 2; public static final int TRANSLUCENT = 3; public int getTransparency(); }
apache/hertzbeat
1,036
hertzbeat-common/src/main/java/org/apache/hertzbeat/common/support/exception/SendMessageException.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.common.support.exception; /** * send message exception */ public class SendMessageException extends RuntimeException { public SendMessageException(String message) { super(message); } }
apache/hive
1,061
serde/src/java/org/apache/hadoop/hive/serde2/variant/VariantSizeLimitException.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.serde2.variant; /** * An exception indicating that we are attempting to build a variant with it value or metadata * exceeding the 16MiB size limit. */ public class VariantSizeLimitException extends RuntimeException { }
apache/hudi
1,041
hudi-flink-datasource/hudi-flink2.0.x/src/main/java/org/apache/hudi/adapter/SourceFunctionAdapter.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.hudi.adapter; import org.apache.flink.streaming.api.functions.source.legacy.SourceFunction; /** * Adapter clazz for {@link SourceFunction}. */ public interface SourceFunctionAdapter<T> extends SourceFunction<T> { }
apache/hudi
1,066
hudi-common/src/main/java/org/apache/hudi/expression/LeafExpression.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.hudi.expression; import java.util.List; /** * Expression that without any child expressions. */ public abstract class LeafExpression implements Expression { @Override public List<Expression> getChildren() { return null; } }
apache/iceberg
1,080
core/src/main/java/org/apache/iceberg/rest/ErrorHandler.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.iceberg.rest; import java.util.function.Consumer; import org.apache.iceberg.rest.responses.ErrorResponse; public abstract class ErrorHandler implements Consumer<ErrorResponse> { public abstract ErrorResponse parseResponse(int code, String json); }
apache/ignite-3
1,028
modules/low-watermark/src/main/java/org/apache/ignite/internal/lowwatermark/event/LowWatermarkEventParameters.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.internal.lowwatermark.event; import org.apache.ignite.internal.event.EventParameters; /** Low watermark event parameters. */ public interface LowWatermarkEventParameters extends EventParameters { }
apache/ignite-3
1,052
modules/cli/src/main/java/org/apache/ignite/internal/cli/core/style/element/UiElement.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.internal.cli.core.style.element; /** Can represent UI Element as an ANSI string. */ public interface UiElement { /** Represents the UI Element as ansi String. For example '@|fg(1) text |@'. */ String represent(); }
apache/incubator-hivemall
1,066
core/src/main/java/hivemall/utils/function/IntPredicate.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 hivemall.utils.function; public interface IntPredicate { /** * Evaluates this predicate on the given argument. * * @return true if the input argument matches the predicate, otherwise false */ boolean test(int value); }
apache/incubator-kie-drools
1,028
drools-drl/drools-drl-ast/src/main/java/org/drools/drl/ast/descr/MultiPatternDestinationDescr.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.drools.drl.ast.descr; /** * An interface to represent pattern destinations */ public interface MultiPatternDestinationDescr { public BaseDescr getInput(); public void setInput(BaseDescr input); }
apache/incubator-kie-drools
1,043
kie-dmn/kie-dmn-model/src/main/java/org/kie/dmn/model/api/Iterator.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.model.api; public interface Iterator extends Expression { TypedChildExpression getIn(); void setIn(TypedChildExpression value); String getIteratorVariable(); void setIteratorVariable(String value); }
apache/incubator-livy
1,076
rsc/src/main/java/org/apache/livy/rsc/FutureListener.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.livy.rsc; /** A simplified future listener for netty futures. See Utils.addListener(). */ public abstract class FutureListener<T> { public void onSuccess(T result) throws Exception { } public void onFailure(Throwable error) throws Exception { } }
apache/incubator-retired-wave
1,053
wave/src/main/java/org/waveprotocol/wave/model/operation/Visitor.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.waveprotocol.wave.model.operation; /** * Semantic marker interface for visitors. * * Implementations should have a visitXXX() method for each leaf type of the abstract type being * visited. * */ public interface Visitor { }
apache/inlong
1,037
inlong-sdk/dataproxy-sdk/src/main/java/org/apache/inlong/sdk/dataproxy/network/http/HttpContentType.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.inlong.sdk.dataproxy.network.http; /** * HTTP Report Content Type enum * * This enumeration defines of HTTP reporting supported content types. */ public enum HttpContentType { APPLICATION_X_WWW_FORM_URLENCODED }
apache/inlong
1,050
inlong-common/src/main/java/org/apache/inlong/common/pojo/sort/node/PulsarNodeConfig.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.inlong.common.pojo.sort.node; import lombok.Data; @Data public class PulsarNodeConfig extends NodeConfig { private String serviceUrl; private String adminUrl; private String token; private String compressionType; }
apache/iotdb
1,043
integration-test/src/main/java/org/apache/iotdb/itbase/exception/ParallelRequestTimeoutException.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.iotdb.itbase.exception; public class ParallelRequestTimeoutException extends RuntimeException { public ParallelRequestTimeoutException(String message, Throwable throwable) { super(message, throwable); } }
apache/jackrabbit
1,037
jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authorization/acl/EntryFilter.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.jackrabbit.core.security.authorization.acl; import java.util.List; /** * <code>EntryFilter</code>... */ public interface EntryFilter { void filterEntries(List<Entry> entries, List<Entry>... resultLists); }
apache/jackrabbit
1,049
jackrabbit-core/src/main/java/org/apache/jackrabbit/core/session/SessionWriteOperation.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.jackrabbit.core.session; /** * Marker interface that marks a {@link SessionOperation} that modifies * the state of the session or the repository. */ public interface SessionWriteOperation<T> extends SessionOperation<T> { }
apache/jackrabbit
1,055
jackrabbit-spi/src/main/java/org/apache/jackrabbit/spi/PrivilegeDefinition.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.jackrabbit.spi; import java.util.Set; /** * <code>PrivilegeDefinition</code>... */ public interface PrivilegeDefinition { Name getName(); public boolean isAbstract(); public Set<Name> getDeclaredAggregateNames(); }