repo_id
stringclasses
875 values
size
int64
974
38.9k
file_path
stringlengths
10
308
content
stringlengths
974
38.9k
apache/sentry
1,050
sentry-service/sentry-service-server/src/main/java/org/apache/sentry/service/thrift/SentryServiceFactory.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.sentry.service.thrift; import org.apache.hadoop.conf.Configuration; public class SentryServiceFactory { public static SentryService create(Configuration conf) throws Exception { return new SentryService(conf); } }
apache/shiro
1,084
web/src/main/java/org/apache/shiro/web/tags/LacksPermissionTag.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.web.tags; /** * @since 0.1 */ public class LacksPermissionTag extends PermissionTag { //TODO - complete JavaDoc public LacksPermissionTag() { } protected boolean showTagBody(String p) { return !isPermitted(p); } }
apache/skywalking
1,024
oap-server/server-core/src/test/java/org/apache/skywalking/oap/server/core/profiling/ebpf/analyze/EBPFProfilingAnalyzerHolder.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package org.apache.skywalking.oap.server.core.profiling.ebpf.analyze; import lombok.Data; import java.util.List; @Data public class EBPFProfilingAnalyzerHolder { private List<EBPFProfilingAnalyzeContext> list; }
apache/solr
1,090
solr/core/src/java/org/apache/solr/cluster/events/NodesUpEvent.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.cluster.events; import java.util.Iterator; /** Event generated when some nodes went up. */ public interface NodesUpEvent extends ClusterEvent { @Override default EventType getType() { return EventType.NODES_UP; } Iterator<String> getNodeNames(); }
apache/storm
1,084
storm-client/src/jvm/org/apache/storm/messaging/netty/INettySerializable.java
/** * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version * 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package org.apache.storm.messaging.netty; import org.apache.storm.shade.io.netty.buffer.ByteBuf; public interface INettySerializable { /** * Serialize this object to ByteBuf. * @param dest The ByteBuf to serialize to */ void write(ByteBuf dest); int encodeLength(); }
apache/storm
1,095
storm-client/src/jvm/org/apache/storm/trident/state/StateSpec.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.state; import java.io.Serializable; public class StateSpec implements Serializable { public StateFactory stateFactory; public Integer requiredNumPartitions = null; public StateSpec(StateFactory stateFactory) { this.stateFactory = stateFactory; } }
apache/struts-examples
1,039
interceptors/src/main/java/org/apache/struts/register/model/Person.java
package org.apache.struts.register.model; /** * Models a Person who registers. * @author bruce phillips * */ public class Person { private String firstName; private String lastName; private String email; private int age; public String getFirstName() { return firstName; } public void setFirstName(String firstName) { this.firstName = firstName; } public String getLastName() { return lastName; } public void setLastName(String lastName) { this.lastName = lastName; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public int getAge() { return age; } public void setAge( int age) { this.age = age; } public String toString() { return "First Name: " + getFirstName() + " Last Name: " + getLastName() + " Email: " + getEmail() + " Age: " + getAge() ; } }
apache/struts-examples
1,039
unit-testing/src/main/java/org/apache/struts/register/model/Person.java
package org.apache.struts.register.model; /** * Models a Person who registers. * @author bruce phillips * */ public class Person { private String firstName; private String lastName; private String email; private int age; public String getFirstName() { return firstName; } public void setFirstName(String firstName) { this.firstName = firstName; } public String getLastName() { return lastName; } public void setLastName(String lastName) { this.lastName = lastName; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public int getAge() { return age; } public void setAge( int age) { this.age = age; } public String toString() { return "First Name: " + getFirstName() + " Last Name: " + getLastName() + " Email: " + getEmail() + " Age: " + getAge() ; } }
apache/struts
1,064
core/src/test/java/org/apache/struts2/interceptor/annotations/InterfaceAnnotatedAction.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.struts2.interceptor.annotations; public interface InterfaceAnnotatedAction { @Before String interfaceBefore(); @BeforeResult(priority=3) void interfaceBeforeResult(); @After(priority=3) void interfaceAfter(); }
apache/tapestry-5
1,042
tapestry-core/src/test/java/org/apache/tapestry5/integration/cluster/pages/SessionPersistedObjectAnalyzerDemo.java
// Copyright 2011 The Apache Software Foundation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package org.apache.tapestry5.integration.cluster.pages; import org.apache.tapestry5.integration.cluster.base.BaseSessionDemo; import org.apache.tapestry5.integration.cluster.data.AnalyzedSessionObject; public class SessionPersistedObjectAnalyzerDemo extends BaseSessionDemo<AnalyzedSessionObject> { @Override public AnalyzedSessionObject create(String value) { return new AnalyzedSessionObject(value); } }
apache/tapestry-5
1,054
tapestry-core/src/main/java/org/apache/tapestry5/internal/services/RequestEncodingInitializer.java
// Copyright 2007 The Apache Software Foundation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package org.apache.tapestry5.internal.services; /** * Determines the reuest encoding for the given page and applies that to the request, so that parameters may be properly * decoded. */ public interface RequestEncodingInitializer { /** * Initializes the request encoding to match the encoding defined for the page. * * @param pageName logical name of the page */ void initializeRequestEncoding(String pageName); }
apache/thrift
1,079
lib/java/src/test/java/org/apache/thrift/protocol/TestTBinaryProtocol.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.protocol; public class TestTBinaryProtocol extends ProtocolTestBase { @Override protected TProtocolFactory getFactory() { return new TBinaryProtocol.Factory(); } @Override protected boolean canBeUsedNaked() { return true; } }
apache/tomcat-maven-plugin
1,049
tomcat7-maven-plugin/src/test/resources/deploy-only-war-project/src/test/java/WaitIT.java
import org.junit.Test; /* * 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. */ @SuppressWarnings({"WrongPackageStatement"}) public final class WaitIT { @Test public void testWait() throws Exception { System.out.println("Just wait a while..."); Thread.sleep(${it.sleep.time}); } }
apache/tomcat-maven-plugin
1,049
tomcat7-maven-plugin/src/test/resources/tomcat-run-multi-config/src/test/java/WaitIT.java
import org.junit.Test; /* * 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. */ @SuppressWarnings({"WrongPackageStatement"}) public final class WaitIT { @Test public void testWait() throws Exception { System.out.println("Just wait a while..."); Thread.sleep(${it.sleep.time}); } }
apache/tomcat-maven-plugin
1,049
tomcat8-maven-plugin/src/test/resources/deploy-only-war-project/src/test/java/WaitIT.java
import org.junit.Test; /* * 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. */ @SuppressWarnings({"WrongPackageStatement"}) public final class WaitIT { @Test public void testWait() throws Exception { System.out.println("Just wait a while..."); Thread.sleep(${it.sleep.time}); } }
apache/tomcat-maven-plugin
1,049
tomcat8-maven-plugin/src/test/resources/tomcat-run-multi-config/src/test/java/WaitIT.java
import org.junit.Test; /* * 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. */ @SuppressWarnings({"WrongPackageStatement"}) public final class WaitIT { @Test public void testWait() throws Exception { System.out.println("Just wait a while..."); Thread.sleep(${it.sleep.time}); } }
apache/tomcat
1,102
java/jakarta/security/auth/message/MessageInfo.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package jakarta.security.auth.message; import java.util.Map; public interface MessageInfo { Object getRequestMessage(); Object getResponseMessage(); void setRequestMessage(Object request); void setResponseMessage(Object response); Map<String,Object> getMap(); }
apache/tomcat
1,123
java/jakarta/mail/Session.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package jakarta.mail; import java.util.Properties; @SuppressWarnings("unused") // Dummy implementation public class Session { public static Session getInstance(Properties props, Authenticator auth) { return null; } public static Session getInstance(Properties props) { return null; } }
apache/tomee
1,057
container/openejb-jpa-integration/src/main/java/org/apache/openejb/jpa/integration/JPAThreadContext.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.jpa.integration; import java.util.HashMap; import java.util.Map; // use to store info while creating the EMF public class JPAThreadContext { public static final Map<String, Object> infos = new HashMap<String, Object>(); }
apache/uniffle
1,072
common/src/main/java/org/apache/uniffle/common/exception/FileNotFoundException.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.uniffle.common.exception; public class FileNotFoundException extends RssException { public FileNotFoundException(String message) { super(message); } public FileNotFoundException(String message, Throwable e) { super(message, e); } }
apache/wicket
1,052
wicket-core-tests/src/test/java/org/apache/wicket/markup/resolver/issue3559/HomePage.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.markup.resolver.issue3559; /** * */ public final class HomePage extends BasePage { private static final long serialVersionUID = 1L; /** * Construct. */ public HomePage() { add(new SimplePanel("panel")); } }
apache/wicket
1,059
wicket-core-tests/src/test/java/org/apache/wicket/markup/html/autolink/sub/PageB.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.markup.html.autolink.sub; /** * * @author Juergen Donnerstag */ public class PageB extends BasePage { private static final long serialVersionUID = 1L; /** * Creates a new instance of MyPage */ public PageB() { } }
apache/wicket
1,062
wicket-core-tests/src/test/java/org/apache/wicket/markup/html/border/ExtendedBorder.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.markup.html.border; public class ExtendedBorder extends ExtedableBorder { /** * */ private static final long serialVersionUID = -3807276374784563518L; public ExtendedBorder(final String id) { super(id); } }
apache/zookeeper
1,042
zookeeper-contrib/zookeeper-contrib-loggraph/src/main/java/org/apache/zookeeper/graph/filterops/StringArg.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.zookeeper.graph.filterops; import org.apache.zookeeper.graph.FilterOp.*; public class StringArg extends Arg<String> { public StringArg(String value) { super(ArgType.STRING); this.value = value; } };
google/android-arscblamer
1,068
java/com/google/devrel/gmscore/tools/apk/arsc/XmlNamespaceEndChunk.java
/* * Copyright 2016 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.google.devrel.gmscore.tools.apk.arsc; import java.nio.ByteBuffer; import javax.annotation.Nullable; /** Represents the ending tag of a namespace in an XML document. */ public final class XmlNamespaceEndChunk extends XmlNamespaceChunk { protected XmlNamespaceEndChunk(ByteBuffer buffer, @Nullable Chunk parent) { super(buffer, parent); } @Override protected Type getType() { return Chunk.Type.XML_END_NAMESPACE; } }
google/binnavi
1,062
src/main/java/com/google/security/zynamics/binnavi/API/debug/DebuggerSetRegisterReply.java
// Copyright 2011-2016 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package com.google.security.zynamics.binnavi.API.debug; import com.google.security.zynamics.binnavi.debug.connection.packets.replies.SetRegisterReply; public class DebuggerSetRegisterReply extends DebuggerReply { public DebuggerSetRegisterReply(final SetRegisterReply reply) { super(reply); } public int getIndex() { return ((SetRegisterReply) reply).getIndex(); } public long getThreadId() { return ((SetRegisterReply) reply).getThread(); } }
google/graphicsfuzz
1,067
ast/src/test/java/com/graphicsfuzz/common/ast/stmt/DefaultCaseLabelTest.java
/* * Copyright 2019 The GraphicsFuzz Project 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.graphicsfuzz.common.ast.stmt; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotSame; import org.junit.Test; public class DefaultCaseLabelTest { @Test public void testDefaultCaseLabel() { assertEquals("default:\n", new DefaultCaseLabel().getText()); final DefaultCaseLabel defaultCaseLabel = new DefaultCaseLabel(); assertNotSame(defaultCaseLabel, defaultCaseLabel.clone()); } }
google/guava
1,081
guava-testlib/src/com/google/common/collect/testing/features/Feature.java
/* * Copyright (C) 2008 The Guava Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.common.collect.testing.features; import com.google.common.annotations.GwtCompatible; import java.util.Set; /** * Base class for enumerating the features of an interface to be tested. * * @param <T> The interface whose features are to be enumerated. * @author George van den Driessche */ @GwtCompatible public interface Feature<T> { /** Returns the set of features that are implied by this feature. */ Set<Feature<? super T>> getImpliedFeatures(); }
google/j2cl
1,068
transpiler/javatests/com/google/j2cl/readable/java/nobridgemethods/CharSet.java
/* * Copyright 2017 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package nobridgemethods; interface Entry<K> {} abstract class Map<K> { public abstract Entry<K> getCeilingEntry(K key); } class TreeMap<K> extends Map<K> { static class InnerEntry<K> implements Entry<K> {} @Override public InnerEntry<K> getCeilingEntry(K key) { return new InnerEntry<K>(); } } public class CharSet { @SuppressWarnings("unused") public static void main(String... args) { TreeMap<String> treeMap = new TreeMap<String>() {}; } }
google/oss-fuzz
1,093
projects/apache-commons-compress/ArchiverTarStreamFuzzer.java
// Copyright 2023 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. // //////////////////////////////////////////////////////////////////////////////// import org.apache.commons.compress.archivers.tar.TarArchiveInputStream; import java.io.ByteArrayInputStream; import java.io.IOException; public class ArchiverTarStreamFuzzer extends BaseTests { public static void fuzzerTestOneInput(byte[] data) { try { fuzzArchiveInputStream(new TarArchiveInputStream(new ByteArrayInputStream(data))); } catch (IOException ignored) { } } }
google/oss-fuzz
1,093
projects/apache-commons-compress/ArchiverZipStreamFuzzer.java
// Copyright 2023 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. // //////////////////////////////////////////////////////////////////////////////// import org.apache.commons.compress.archivers.zip.ZipArchiveInputStream; import java.io.ByteArrayInputStream; import java.io.IOException; public class ArchiverZipStreamFuzzer extends BaseTests { public static void fuzzerTestOneInput(byte[] data) { try { fuzzArchiveInputStream(new ZipArchiveInputStream(new ByteArrayInputStream(data))); } catch (IOException ignored) { } } }
googlearchive/gwt-google-apis
1,074
maps/maps/src/com/google/gwt/maps/jsio/client/Binding.java
/* * Copyright 2008 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.gwt.maps.jsio.client; import com.google.gwt.maps.jsio.client.impl.MetaDataName; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Target; /** * Indicates that a flyweight-style method should be used to bind exported * functions from a type into a JavaScriptObject. */ @Documented @MetaDataName("gwt.binding") @Target(ElementType.METHOD) public @interface Binding { String value() default ""; }
hibernate/hibernate-orm
1,030
hibernate-envers/src/main/java/org/hibernate/envers/boot/spi/ModifiedColumnNamingStrategy.java
/* * SPDX-License-Identifier: Apache-2.0 * Copyright Red Hat Inc. and Hibernate Authors */ package org.hibernate.envers.boot.spi; import org.hibernate.Incubating; import org.hibernate.envers.boot.model.AttributeContainer; import org.hibernate.envers.configuration.Configuration; import org.hibernate.envers.configuration.internal.metadata.reader.PropertyAuditingData; import org.hibernate.mapping.Value; /** * Defines a naming strategy for applying modified columns to the audited entity metamodel. * * @author Chris Cranford * @since 5.4.7 */ @Incubating public interface ModifiedColumnNamingStrategy { /** * Adds modified columns to the audited entity metamodel. * * @param configuration the envers configuration * @param value the property value * @param mapping the entity mapping model * @param propertyAuditingData the property auditing data */ void addModifiedColumns( Configuration configuration, Value value, AttributeContainer mapping, PropertyAuditingData propertyAuditingData); }
openjdk/jdk8
1,096
langtools/test/tools/javadoc/annotations/shortcuts/pkg1/Marker.java
/* * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package pkg1; public @interface Marker { }
openjdk/jdk8
1,102
langtools/test/com/sun/javadoc/testUnnamedPackage/BadSource.java
/* * Copyright (c) 2004, 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. */ Just a dummy file that should not cause an error.
openjdk/jdk8
1,106
langtools/test/tools/javac/AnonymousProtect/P1/priv.java
/* * Copyright (c) 2001, 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; class priv { public void foo() {}; }
openjdk/jdk8
1,114
jdk/test/sun/rmi/rmic/classFileVersion/G1Impl.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. */ public class G1Impl implements G1 { public void m() { } }
openjdk/jdk8
1,116
langtools/test/tools/javac/overrridecrash/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. */ public class A { private protected int m() { return -1; } }
openjdk/jdk8
1,123
langtools/test/tools/jdeps/m/Gee.java
/* * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ package m; class Gee extends g.G { public sun.misc.Lock lock; }
openjdk/jtreg
1,112
test/modlibs/mainAction/patchmods/RunPatchMod.java
/* * Copyright (c) 2015, 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. */ /* * @test * @run main java.base/java.util.TestHelper */
oracle-samples/clara-rules
1,109
src/main/java/clara/rules/package-info.java
/** * The Java API for working Clara rules. It contains three simple pieces: * * <ul> * <li>The {@link clara.rules.RuleLoader RuleLoader}, responsible for loading rules into a new working memory</li> * <li>The {@link clara.rules.WorkingMemory WorkingMemory}, an immutable instance of a rule session.</li> * <li>The {@link clara.rules.QueryResult QueryResult}, a container of query results.</li> * </ul> * * <p> * Note this API does not have a separate "knowledge base" class like those of other rules engines. Instead, * the user can simply create and reuse a single, empty WorkingMemory object for multiple rule instances -- optionally * sticking the initial empty working memory in a static variable. This type of pattern is efficient and possible * since the WorkingMemory is immutable, creating a new instance that shares internal state when changes occur. * </p> * * See the <a href="https://github.com/cerner/clara-examples/blob/main/src/main/java/clara/examples/java/ExampleMain.java">Clara Examples</a> * project for an example of this in action. */ package clara.rules;
oracle-samples/oracle-graph
1,050
graphviz-demo/src/main/java/com/oracle/example/response/Result.java
package com.oracle.example.response; public class Result { private String pgqlStatement; private String result; private boolean success; private Object error; private String started; private String ended; public void setPgqlStatement(String pgqlStatement) { this.pgqlStatement = pgqlStatement; } public void setResult(String result) { this.result = result; } public void setSuccess(boolean success) { this.success = success; } public void setError(Object error) { this.error = error; } public void setStarted(String started) { this.started = started; } public void setEnded(String ended) { this.ended = ended; } public String getPgqlStatement() { return this.pgqlStatement; } public String getResult() { return this.result; } public boolean getSuccess() { return this.success; } public Object getError() { return this.error; } public String getStarted() { return this.started; } public String getEnded() { return this.ended; } }
oracle/coherence
1,055
prj/coherence-core/src/main/java/com/tangosol/coherence/reporter/locator/BatchLocator.java
/* * Copyright (c) 2000, 2020, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at * http://oss.oracle.com/licenses/upl. */ package com.tangosol.coherence.reporter.locator; import com.tangosol.coherence.reporter.extractor.ConstantExtractor; import com.tangosol.util.Base; import com.tangosol.util.ValueExtractor; /** * Global column to include a Batch identifier into a report. The batch identifier * is incremented with each execution of the Report Group. The batch identifier * is helpfull when needing to associate data from related reports. * * @author ew 2008.01.28 * @since Coherence 3.4 */ public class BatchLocator extends BaseLocator { /** * @inheritDoc */ public ValueExtractor getExtractor() { super.getExtractor(); if (m_veExtractor == null) { m_veExtractor = new ConstantExtractor( Long.valueOf(m_queryHandler.getBatch())); } return m_veExtractor; } }
apache/commons-imaging
1,070
src/main/java/org/apache/commons/imaging/formats/webp/WebPImagingParameters.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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.commons.imaging.formats.webp; import org.apache.commons.imaging.common.XmpImagingParameters; /** * WebP format parameters. * * @since 1.0.0-alpha4 */ public class WebPImagingParameters extends XmpImagingParameters<WebPImagingParameters> { }
apache/ctakes
1,067
ctakes-fhir/src/main/java/org/apache/ctakes/fhir/resource/BaseTokenCreator.java
package org.apache.ctakes.fhir.resource; import org.apache.ctakes.fhir.element.FhirElementFactory; import org.apache.ctakes.fhir.util.FhirNoteSpecs; import org.apache.ctakes.typesystem.type.syntax.BaseToken; import org.apache.uima.jcas.JCas; import org.hl7.fhir.dstu3.model.Basic; /** * @author SPF , chip-nlp * @version %I% * @since 12/25/2017 */ final public class BaseTokenCreator implements FhirBasicCreator<BaseToken> { static public final String ID_NAME_BASE_TOKEN = "BaseToken"; /** * {@inheritDoc} */ @Override public String getIdName() { return ID_NAME_BASE_TOKEN; } /** * {@inheritDoc} */ @Override public Basic createResource( final JCas jCas, final BaseToken baseToken, final FhirPractitioner practitioner, final FhirNoteSpecs noteSpecs ) { final Basic basic = createAnnotationBasic( jCas, baseToken, practitioner ); // The 'code' is the part of speech. basic.setCode( FhirElementFactory.createPosCode( baseToken ) ); return basic; } }
apache/derby
1,072
java/org.apache.derby.tests/org/apache/derbyTesting/unitTests/harness/T_Bombable.java
/* Derby - Class org.apache.derbyTesting.unitTests.harness.T_Bombable 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.derbyTesting.unitTests.harness; import org.apache.derby.shared.common.error.StandardException; public interface T_Bombable { public void lastChance() throws StandardException; }
apache/directory-kerby
1,071
kerby-pkix/src/main/java/org/apache/kerby/cms/type/RecipientEncryptedKeys.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.asn1.type.Asn1SequenceOf; /** * RecipientEncryptedKeys ::= SEQUENCE OF RecipientEncryptedKey */ public class RecipientEncryptedKeys extends Asn1SequenceOf<RecipientEncryptedKey> { }
apache/distributedlog
1,045
distributedlog-proxy-server/src/main/java/org/apache/distributedlog/service/balancer/StreamChooser.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.distributedlog.service.balancer; /** * Choose a stream to rebalance. */ public interface StreamChooser { /** * Choose a stream to rebalance. * * @return stream chose */ String choose(); }
apache/dolphinscheduler
1,044
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/constants/TenantConstants.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.dolphinscheduler.common.constants; public class TenantConstants { public static final String DEFAULT_TENANT_CODE = "default"; public static final String BOOTSTRAP_SYSTEM_USER = System.getProperty("user.name"); }
apache/doris-manager
1,029
manager/general/src/main/java/org/apache/doris/stack/exception/UserActiveException.java
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. package org.apache.doris.stack.exception; public class UserActiveException extends Exception { public static final String MESSAGE = "用户处于激活状态,不能进行这个操作"; public UserActiveException() { super(MESSAGE); } }
apache/doris-manager
1,034
manager/general/src/main/java/org/apache/doris/stack/exception/LdapNotExistException.java
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. package org.apache.doris.stack.exception; public class LdapNotExistException extends Exception { public static final String MESSAGE = "缺少LDAP配置信息,请补全后重试"; public LdapNotExistException() { super(MESSAGE); } }
apache/doris-manager
1,060
manager/resource-common/src/main/java/org/apache/doris/stack/dao/ClusterTemplateRepository.java
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. package org.apache.doris.stack.dao; import org.apache.doris.stack.entity.ClusterTemplateEntity; import org.springframework.data.jpa.repository.JpaRepository; public interface ClusterTemplateRepository extends JpaRepository<ClusterTemplateEntity, Long> { }
apache/doris-manager
1,060
manager/resource-common/src/main/java/org/apache/doris/stack/dao/ResourceClusterRepository.java
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. package org.apache.doris.stack.dao; import org.apache.doris.stack.entity.ResourceClusterEntity; import org.springframework.data.jpa.repository.JpaRepository; public interface ResourceClusterRepository extends JpaRepository<ResourceClusterEntity, Long> { }
apache/drill
1,066
exec/java-exec/src/main/java/org/apache/drill/exec/exception/FunctionValidationException.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.drill.exec.exception; import org.apache.drill.common.exceptions.DrillRuntimeException; public class FunctionValidationException extends DrillRuntimeException { public FunctionValidationException(String message) { super(message); } }
apache/drill
1,084
drill-yarn/src/main/java/org/apache/drill/yarn/zk/ZKRuntimeException.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.drill.yarn.zk; public class ZKRuntimeException extends Exception { private static final long serialVersionUID = 1L; public ZKRuntimeException(String msg, Exception e) { super(msg, e); } public ZKRuntimeException(String msg) { super(msg); } }
apache/drill
1,088
exec/vector/src/main/java/org/apache/drill/exec/record/TransferPair.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.drill.exec.record; import org.apache.drill.exec.vector.ValueVector; public interface TransferPair { public void transfer(); public void splitAndTransfer(int startIndex, int length); public ValueVector getTo(); public void copyValueSafe(int from, int to); }
apache/dubbo
1,038
dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/migration/PreMigratingConditionChecker.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.registry.client.migration; import org.apache.dubbo.common.URL; import org.apache.dubbo.common.extension.SPI; @SPI public interface PreMigratingConditionChecker { boolean checkCondition(URL consumerUrl); }
apache/dubbo
1,055
dubbo-remoting/dubbo-remoting-http12/src/main/java/org/apache/dubbo/remoting/http12/h2/Http2Header.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.remoting.http12.h2; import org.apache.dubbo.remoting.http12.RequestMetadata; public interface Http2Header extends RequestMetadata, Http2StreamFrame { @Override default String name() { return "HEADER"; } }
apache/falcon
1,046
falcon-regression/merlin-core/src/main/java/org/apache/falcon/regression/core/response/lineage/VertexResult.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.falcon.regression.core.response.lineage; /** Class for Lineage API result having one vertex. */ public class VertexResult { private Vertex results; public Vertex getResults() { return results; } }
apache/felix-dev
1,031
ipojo/runtime/core-it/ipojo-core-bad-configuration-test/src/test/java/org/apache/felix/ipojo/runtime/bad/test/Common.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.felix.ipojo.runtime.bad.test; import org.ow2.chameleon.testing.helpers.BaseTest; /** * Bootstrap the test from this project */ public class Common extends BaseTest { // Nothing to customize. }
apache/fineract
1,059
fineract-provider/src/main/java/org/apache/fineract/infrastructure/hooks/listener/HookListener.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.fineract.infrastructure.hooks.listener; import org.apache.fineract.infrastructure.hooks.event.HookEvent; import org.springframework.context.ApplicationListener; public interface HookListener extends ApplicationListener<HookEvent> { }
apache/fineract
1,059
fineract-provider/src/main/java/org/apache/fineract/mix/service/NamespaceReadPlatformService.java
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.fineract.mix.service; import org.apache.fineract.mix.data.NamespaceData; public interface NamespaceReadPlatformService { NamespaceData retrieveNamespaceById(Long id); NamespaceData retrieveNamespaceByPrefix(String prefix); }
apache/fluss
1,067
fluss-server/src/main/java/org/apache/fluss/server/exception/EndpointNotAvailableException.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.fluss.server.exception; /** Exception thrown when the endpoint is not available. */ public class EndpointNotAvailableException extends RuntimeException { public EndpointNotAvailableException(String message) { super(message); } }
apache/fluss
1,078
fluss-common/src/test/java/org/apache/fluss/plugin/jar/pluginb/TestServiceB.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.fluss.plugin.jar.pluginb; import org.apache.fluss.plugin.TestSpi; /** Second implementation of {@link TestSpi}. */ public class TestServiceB implements TestSpi { @Override public String testMethod() { return getClass().getName(); } }
apache/ftpserver
1,077
core/src/test/java/org/apache/ftpserver/ssl/MinaExplicitSSLTest.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.ftpserver.ssl; /** * * @author <a href="http://mina.apache.org">Apache MINA Project</a> * */ public class MinaExplicitSSLTest extends ExplicitSecurityTestTemplate { @Override protected String getAuthValue() { return "SSL"; } }
apache/ftpserver
1,077
core/src/test/java/org/apache/ftpserver/ssl/MinaExplicitTLSTest.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.ftpserver.ssl; /** * * @author <a href="http://mina.apache.org">Apache MINA Project</a> * */ public class MinaExplicitTLSTest extends ExplicitSecurityTestTemplate { @Override protected String getAuthValue() { return "TLS"; } }
apache/ftpserver
1,077
core/src/test/java/org/apache/ftpserver/ssl/MinaImplicitSSLTest.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.ftpserver.ssl; /** * * @author <a href="http://mina.apache.org">Apache MINA Project</a> * */ public class MinaImplicitSSLTest extends ImplicitSecurityTestTemplate { @Override protected String getAuthValue() { return "SSL"; } }
apache/ftpserver
1,077
core/src/test/java/org/apache/ftpserver/ssl/MinaImplicitTLSTest.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.ftpserver.ssl; /** * * @author <a href="http://mina.apache.org">Apache MINA Project</a> * */ public class MinaImplicitTLSTest extends ImplicitSecurityTestTemplate { @Override protected String getAuthValue() { return "TLS"; } }
apache/geaflow
1,034
geaflow-console/app/common/util/src/main/java/org/apache/geaflow/console/common/util/exception/GeaflowSecurityException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.geaflow.console.common.util.exception; public class GeaflowSecurityException extends GeaflowException { public GeaflowSecurityException(String fmt, Object... args) { super(fmt, args); } }
apache/geaflow
1,062
geaflow-console/app/common/util/src/main/java/org/apache/geaflow/console/common/util/Fmt.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.geaflow.console.common.util; import org.slf4j.helpers.MessageFormatter; public class Fmt { public static String as(String fmt, Object... values) { return MessageFormatter.arrayFormat(fmt, values).getMessage(); } }
apache/geode
1,076
geode-core/src/distributedTest/java/org/apache/geode/distributed/MyPrincipal.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance with the License. You may obtain a * copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. */ package org.apache.geode.distributed; /** a security class used by LocatorTest */ public class MyPrincipal implements java.security.Principal { public static MyPrincipal create() { return new MyPrincipal(); } @Override public String getName() { return "Bruce"; } }
apache/harmony
1,047
classlib/modules/auth/src/main/java/common/org/apache/harmony/auth/internal/kerberos/v5/KerberosException.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.auth.internal.kerberos.v5; public class KerberosException extends RuntimeException { public KerberosException() { } public KerberosException(String message) { super(message); } }
apache/harmony
1,067
classlib/modules/awt/src/main/java/common/org/apache/harmony/awt/state/ChoiceState.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 org.apache.harmony.awt.state; import java.awt.Rectangle; /** * State of Choice component */ public interface ChoiceState extends ButtonState { Rectangle getButtonBounds(); Rectangle getTextBounds(); }
apache/harmony
1,081
classlib/modules/awt/src/main/java/common/java/awt/CompositeContext.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 Igor V. Stolyarov */ package java.awt; import java.awt.image.Raster; import java.awt.image.WritableRaster; public interface CompositeContext { public void compose(Raster src, Raster dstIn, WritableRaster dstOut); public void dispose(); }
apache/harmony
1,088
classlib/modules/sql/src/main/java/javax/sql/rowset/spi/XmlReader.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 javax.sql.rowset.spi; import java.io.Reader; import java.sql.SQLException; import javax.sql.RowSetReader; import javax.sql.rowset.WebRowSet; public interface XmlReader extends RowSetReader { void readXML(WebRowSet caller, Reader reader) throws SQLException; }
apache/harmony
1,114
drlvm/vm/tests/smoke/gc/Force.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 Salikh Zakirov */ package gc; /** * GC tests have no dependecy on class library. * * @keyword gc */ public class Force { public static void main (String[] args) { System.out.println("forcing gc..."); System.gc(); System.out.println("PASS"); } }
apache/hbase
1,051
hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/generated/TThriftServerType.java
/** * Autogenerated by Thrift Compiler (0.14.1) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift.generated; /** * Specify type of thrift server: thrift and thrift2 */ @javax.annotation.Generated(value = "Autogenerated by Thrift Compiler (0.14.1)", date = "2025-08-16") public enum TThriftServerType implements org.apache.thrift.TEnum { ONE(1), TWO(2); private final int value; private TThriftServerType(int value) { this.value = value; } /** * Get the integer value of this enum value, as defined in the Thrift IDL. */ public int getValue() { return value; } /** * Find a the enum type by its integer value, as defined in the Thrift IDL. * @return null if the value is not found. */ @org.apache.thrift.annotation.Nullable public static TThriftServerType findByValue(int value) { switch (value) { case 1: return ONE; case 2: return TWO; default: return null; } } }
apache/hcatalog
1,071
webhcat/svr/src/main/java/org/apache/hcatalog/templeton/tool/NotFoundException.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.hcatalog.templeton.tool; /** * Simple not found exception. */ public class NotFoundException extends Exception { private static final long serialVersionUID = 1L; public NotFoundException(String msg) { super(msg); } }
apache/hive
1,061
ql/src/java/org/apache/hadoop/hive/ql/exec/vector/mapjoin/hashtable/VectorMapJoinHashSetResult.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hadoop.hive.ql.exec.vector.mapjoin.hashtable; /* * Abstract class for a hash set result. */ public abstract class VectorMapJoinHashSetResult extends VectorMapJoinHashTableResult { // Nothing currently available for hash sets. }
apache/hop
1,068
plugins/transforms/mapping/src/main/java/org/apache/hop/pipeline/transforms/mapping/IPutRow.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hop.pipeline.transforms.mapping; import org.apache.hop.core.exception.HopTransformException; import org.apache.hop.core.row.IRowMeta; public interface IPutRow { void putRow(IRowMeta rowMeta, Object[] rowData) throws HopTransformException; }
apache/hop
1,092
core/src/main/java/org/apache/hop/core/gui/ITextFileInputField.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.hop.core.gui; public interface ITextFileInputField extends Comparable<ITextFileInputField> { int getPosition(); int getLength(); String getName(); void setLength(int i); ITextFileInputField createNewInstance(String newFieldname, int x, int newlength); }
apache/hudi
1,052
hudi-flink-datasource/hudi-flink1.17.x/src/main/java/org/apache/hudi/adapter/AbstractRichFunctionAdapter.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.api.common.functions.AbstractRichFunction; /** * Adapter clazz for {@code AbstractRichFunction}. */ public abstract class AbstractRichFunctionAdapter extends AbstractRichFunction { }
apache/hudi
1,052
hudi-flink-datasource/hudi-flink1.18.x/src/main/java/org/apache/hudi/adapter/AbstractRichFunctionAdapter.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.api.common.functions.AbstractRichFunction; /** * Adapter clazz for {@code AbstractRichFunction}. */ public abstract class AbstractRichFunctionAdapter extends AbstractRichFunction { }
apache/hudi
1,052
hudi-flink-datasource/hudi-flink1.19.x/src/main/java/org/apache/hudi/adapter/AbstractRichFunctionAdapter.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.api.common.functions.AbstractRichFunction; /** * Adapter clazz for {@code AbstractRichFunction}. */ public abstract class AbstractRichFunctionAdapter extends AbstractRichFunction { }
apache/hudi
1,052
hudi-flink-datasource/hudi-flink1.20.x/src/main/java/org/apache/hudi/adapter/AbstractRichFunctionAdapter.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.api.common.functions.AbstractRichFunction; /** * Adapter clazz for {@code AbstractRichFunction}. */ public abstract class AbstractRichFunctionAdapter extends AbstractRichFunction { }
apache/ignite-3
1,068
modules/cli/src/main/java/org/apache/ignite/internal/cli/core/call/ProgressTracker.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.call; /** Progress tracker that will be called periodically during the call execution. */ public interface ProgressTracker { void track(long size); void maxSize(long size); void done(); void close(); }
apache/ignite
1,049
modules/core/src/main/java/org/apache/ignite/internal/processors/query/stat/GatherStatisticCancelException.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.processors.query.stat; import org.apache.ignite.IgniteException; /** */ public class GatherStatisticCancelException extends IgniteException { /** */ private static final long serialVersionUID = 0L; }
apache/incubator-datalab
1,038
services/self-service/src/main/java/com/epam/datalab/backendapi/resources/dto/ConnectedPlatformType.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 com.epam.datalab.backendapi.resources.dto; import lombok.AllArgsConstructor; import lombok.Getter; @Getter @AllArgsConstructor public enum ConnectedPlatformType { MLFLOW("MLflow"); private final String name; }
apache/incubator-kie-drools
1,051
drools-verifier/drools-verifier-drl/src/main/java/org/drools/verifier/VerifierError.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.verifier; public class VerifierError { private final String message; public VerifierError(String message) { this.message = message; } public String getMessage() { return message; } }
apache/incubator-kie-drools
1,052
drools-model/drools-mvel-parser/src/main/java/org/drools/mvel/parser/ast/expr/RuleItem.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.mvel.parser.ast.expr; import com.github.javaparser.TokenRange; import com.github.javaparser.ast.Node; public abstract class RuleItem extends Node { public RuleItem( TokenRange range ) { super( range ); } }
apache/incubator-kie-drools
1,062
kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/typesafe/DMNTypeSafeException.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.typesafe; public class DMNTypeSafeException extends RuntimeException { public DMNTypeSafeException(String message) { super(message); } public DMNTypeSafeException(Throwable cause) { super(cause); } }
apache/incubator-kie-drools
1,063
drools-examples/src/main/java/org/drools/games/adventures/model/Key.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.games.adventures.model; public class Key extends Thing { public Key(String name) { super(name); } @Override public String toString() { return "Key{id=" + getId() +", name=" + getName() + "} "; } }
apache/incubator-kie-drools
1,068
drools-core/src/test/java/org/drools/core/util/asm/MethodCompareB.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.core.util.asm; public class MethodCompareB { public boolean evaluate(final String foox) { if ( foox == null || foox.startsWith( "42" ) ) { return true; } else { return false; } } }
apache/incubator-kie-drools
1,072
drools-model/drools-model-codegen/src/test/resources/model/Child.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.model; public class Child extends Person { private final int toysNr; public Child(String name, int age, int toysNr) { super( name, age ); this.toysNr = toysNr; } public int getToysNr() { return toysNr; } }
apache/incubator-kie-kogito-runtimes
1,028
kogito-codegen-modules/kogito-codegen-processes/src/test/java/org/kie/kogito/codegen/data/AnswerBroken.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.kogito.codegen.data; import org.infinispan.protostream.annotations.ProtoEnumValue; public enum AnswerBroken { @ProtoEnumValue(number = 1) YES, @ProtoEnumValue(number = 2) MAYBE, NO }
apache/incubator-kie-kogito-runtimes
1,047
api/kogito-events-core/src/main/java/org/kie/kogito/event/impl/NoOpEventMarshaller.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.kogito.event.impl; import org.kie.kogito.event.EventMarshaller; public class NoOpEventMarshaller implements EventMarshaller<Object> { @Override public <T> Object marshall(T event) { return event; } }
apache/incubator-retired-wave
1,054
wave/src/main/java/org/waveprotocol/wave/client/gadget/renderer/EditingIndicator.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.client.gadget.renderer; /** * Interface for editing mode indicator. * */ public interface EditingIndicator { /** * @returns True if the object is being edited, false if not. */ boolean isEditing(); }
apache/incubator-seata
1,065
compatible/src/main/java/io/seata/rm/datasource/undo/parser/spi/KryoTypeSerializer.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 io.seata.rm.datasource.undo.parser.spi; /** * The interface Kryo type serializer. * * @param <T> the type parameter */ @Deprecated public interface KryoTypeSerializer<T> extends org.apache.seata.rm.datasource.undo.parser.spi.KryoTypeSerializer<T> {}
apache/incubator-seata
1,079
core/src/main/java/org/apache/seata/core/constants/ConfigurationKeys.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.seata.core.constants; /** * The type Configuration keys. * * @deprecated The constants are moved to {@link org.apache.seata.common.ConfigurationKeys} */ @Deprecated public interface ConfigurationKeys extends org.apache.seata.common.ConfigurationKeys {}
apache/incubator-tez
1,081
tez-dag/src/main/java/org/apache/tez/dag/app/rm/AMSchedulerEvent.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.tez.dag.app.rm; import org.apache.hadoop.yarn.event.AbstractEvent; public class AMSchedulerEvent extends AbstractEvent<AMSchedulerEventType> { // TODO Not a very useful class... public AMSchedulerEvent(AMSchedulerEventType type) { super(type); } }