repo_id stringclasses 875
values | size int64 974 38.9k | file_path stringlengths 10 308 | content stringlengths 974 38.9k |
|---|---|---|---|
apache/servicecomb-java-chassis | 1,030 | swagger/swagger-generator/generator-core/src/test/java/org/apache/servicecomb/swagger/generator/core/utils/methodUtilsModel/AbstractBaseClass.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.servicecomb.swagger.generator.core.utils.methodUtilsModel;
public abstract class AbstractBaseClass<T extends AbstractBean> {
abstract T get(T param);
public T getBase(T param) {
return param;
}
}
|
apache/servicecomb-java-chassis | 1,038 | swagger/swagger-generator/generator-jaxrs/src/test/java/org/apache/servicecomb/swagger/generator/jaxrs/model/enums/DynamicStatusModel.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.servicecomb.swagger.generator.jaxrs.model.enums;
import io.swagger.v3.oas.annotations.Parameter;
public class DynamicStatusModel {
@Parameter(description = "dynamic status model")
public DynamicStatus status;
}
|
apache/servicecomb-toolkit | 1,051 | oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/ComponentsValidatorFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.servicecomb.toolkit.oasv.validation.factory;
import org.apache.servicecomb.toolkit.oasv.validation.api.ComponentsValidator;
public interface ComponentsValidatorFactory extends OasObjectValidatorFactory<ComponentsValidator> {
}
|
apache/shiro | 1,095 | integration-tests/jakarta-ee/src/main/java/org/apache/shiro/testing/jaxrs/WhoamiBean.java | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.shiro.testing.jaxrs;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import org.apache.shiro.authz.annotation.RequiresUser;
import org.apache.shiro.subject.Subject;
@ApplicationScoped
public class WhoamiBean {
@Inject
Subject subject;
@RequiresUser
JsonPojo whoami() {
return JsonPojo.builder().userId(subject.getPrincipal().toString()).build();
}
JsonPojo noUser() {
return JsonPojo.builder().userId("unauthenticated").build();
}
}
|
apache/skywalking | 1,069 | oap-server/server-library/library-util/src/main/java/org/apache/skywalking/oap/server/library/util/prometheus/Parser.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.library.util.prometheus;
import java.io.IOException;
import org.apache.skywalking.oap.server.library.util.prometheus.metrics.MetricFamily;
public interface Parser {
MetricFamily parse(long now) throws IOException;
}
|
apache/storm | 1,120 | storm-server/src/main/java/org/apache/storm/metricstore/MetricException.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.metricstore;
/**
* A MetricException is used to describe an error using a MetricStore.
*/
public class MetricException extends Exception {
public MetricException(String message) {
super(message);
}
public MetricException(String message, Throwable e) {
super(message, e);
}
}
|
apache/stratos | 1,068 | components/org.apache.stratos.load.balancer/src/main/java/org/apache/stratos/load/balancer/conf/domain/MemberIpType.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.stratos.load.balancer.conf.domain;
/**
* Created with IntelliJ IDEA.
* User: imesh
* Date: 2/5/14
* Time: 11:18 AM
* To change this template use File | Settings | File Templates.
*/
public enum MemberIpType {
Private, Public
}
|
apache/streampipes | 1,077 | streampipes-extensions-api/src/main/java/org/apache/streampipes/extensions/api/pe/context/IContextGenerator.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.streampipes.extensions.api.pe.context;
import org.apache.streampipes.model.base.InvocableStreamPipesEntity;
public interface IContextGenerator<RcT extends RuntimeContext, IvT extends InvocableStreamPipesEntity> {
RcT makeContext(IvT invocation);
}
|
apache/struts | 1,118 | core/src/main/java/org/apache/struts2/util/ObjectFactoryDestroyable.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.util;
/**
* An interface to be implemented by any ObjectFactory implementation
* if it requires shutdown hook whenever an ObjectFactory is to be
* destroyed.
*
* @see org.apache.struts2.dispatcher.Dispatcher
*/
public interface ObjectFactoryDestroyable {
void destroy();
}
|
apache/submarine | 1,090 | submarine-client/src/main/java/org/apache/submarine/client/cli/param/yaml/YamlParseException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.submarine.client.cli.param.yaml;
/**
* This exception is thrown if any issue arises while parsing the
* YAML configuration.
*/
public class YamlParseException extends RuntimeException {
public YamlParseException(String message) {
super(message);
}
}
|
apache/syncope | 1,082 | core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/dao/repo/OIDCRPClientAppRepoExt.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.syncope.core.persistence.jpa.dao.repo;
import org.apache.syncope.core.persistence.api.entity.am.OIDCRPClientApp;
public interface OIDCRPClientAppRepoExt extends ClientAppRepoExt<OIDCRPClientApp> {
OIDCRPClientApp save(OIDCRPClientApp clientApp);
}
|
apache/syncope | 1,088 | core/persistence-api/src/main/java/org/apache/syncope/core/persistence/api/entity/user/URelationship.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.syncope.core.persistence.api.entity.user;
import org.apache.syncope.core.persistence.api.entity.Relationship;
import org.apache.syncope.core.persistence.api.entity.anyobject.AnyObject;
public interface URelationship extends Relationship<User, AnyObject> {
}
|
apache/syncope | 1,108 | common/idrepo/lib/src/main/java/org/apache/syncope/common/lib/RealmMember.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.syncope.common.lib;
import java.util.Set;
import org.apache.syncope.common.lib.to.AttributableTO;
public interface RealmMember extends AttributableTO {
String getRealm();
void setRealm(String realm);
Set<String> getAuxClasses();
Set<String> getResources();
}
|
apache/tajo | 1,090 | tajo-storage/tajo-storage-hdfs/src/main/java/org/apache/tajo/storage/text/TextLineParsingError.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.tajo.storage.text;
public class TextLineParsingError extends Exception {
public TextLineParsingError(Throwable t) {
super(t);
}
public TextLineParsingError(String message, Throwable t) {
super(t.getMessage() + ", Error line: " + message);
}
}
|
apache/tapestry-5 | 1,090 | tapestry-ioc/src/test/java/org/apache/tapestry5/ioc/test/SpecificDecoratorModuleAgain.java | // Copyright 2014 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package org.apache.tapestry5.ioc.test;
/**
* Part of the test for two different decorate() methods in different classes, but the same name.
* TAP5-1305
*/
public class SpecificDecoratorModuleAgain
{
public Greeter decorateHelloGreeter(final Greeter delegate)
{
return new Greeter()
{
@Override
public String getGreeting()
{
return delegate.getGreeting() + " again!";
}
};
}
}
|
apache/tapestry-5 | 1,116 | tapestry-ioc/src/main/java/org/apache/tapestry5/ioc/def/ServiceDef2.java | // Copyright 2009 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package org.apache.tapestry5.ioc.def;
/**
* Extension to {@link org.apache.tapestry5.ioc.def.ServiceDef} containing new methods added for Tapestry 5.1.
* Tapestry 5.3 added {@link ServiceDef3}.
*/
public interface ServiceDef2 extends ServiceDef
{
/**
* Returns true if the service should not be decorated. Most services allow decoration, unless the {@link
* org.apache.tapestry5.ioc.annotations.PreventServiceDecoration} annotation is present.
*/
boolean isPreventDecoration();
}
|
apache/thrift | 1,127 | lib/javame/src/org/apache/thrift/protocol/TField.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;
/**
* Helper class that encapsulates field metadata.
*
*/
public class TField {
public TField() {}
public TField(String n, byte t, short i) {
name = n;
type = t;
id = i;
}
public String name = "";
public byte type = TType.STOP;
public short id = 0;
}
|
apache/tomee | 1,044 | arquillian/arquillian-tomee-tests/arquillian-tomee-webprofile-tests/src/test/java/org/apache/openejb/arquillian/tests/core/ejb/ejbjar/SecondBean.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.arquillian.tests.core.ejb.ejbjar;
import jakarta.ejb.Stateless;
@Stateless
public class SecondBean implements Bean {
@Override
public String getName() {
return SecondBean.class.getName();
}
}
|
apache/tomee | 1,104 | examples/webservice-inheritance/src/main/java/org/superbiz/inheritance/Wearable.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.superbiz.inheritance;
import jakarta.persistence.MappedSuperclass;
@MappedSuperclass
public abstract class Wearable extends Item {
protected String size;
public String getSize() {
return size;
}
public void setSize(String size) {
this.size = size;
}
}
|
apache/trafodion | 1,101 | dcs/src/main/java/org/trafodion/dcs/master/listener/PendingRequest.java | /**
* @@@ START COPYRIGHT @@@
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.
* @@@ END COPYRIGHT @@@
*/
package org.trafodion.dcs.master.listener;
import java.nio.*;
import java.nio.channels.*;
import java.nio.channels.spi.*;
class PendingRequest {
SelectionKey key;
int request;
public PendingRequest(SelectionKey key, int request) {
this.request = request;
this.key = key;
}
}
|
apache/usergrid | 1,123 | stack/core/src/test/java/org/apache/usergrid/TestEntityIndex.java | /*
*
* * Licensed to the Apache Software Foundation (ASF) under one or more
* * contributor license agreements. The ASF licenses this file to You
* * under the Apache License, Version 2.0 (the "License"); you may not
* * use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* * See the License for the specific language governing permissions and
* * limitations under the License. For additional information regarding
* * copyright in this work, please see the NOTICE file in the top level
* * directory of this distribution.
*
*/
package org.apache.usergrid;
import java.util.UUID;
/**
* abstract refresh implementation
*/
public interface TestEntityIndex {
void refresh(UUID appId);
void waitForQueueDrainAndRefresh(UUID appId, int waitTimeMillis);
}
|
apache/wicket | 1,099 | wicket-core-tests/src/test/java/org/apache/wicket/markup/parser/Page_1.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.parser;
import org.apache.wicket.markup.html.WebPage;
/**
* Mock page for testing.
*
* @author Chris Turner
*/
public class Page_1 extends WebPage
{
private static final long serialVersionUID = 1L;
/**
* Construct.
*
*/
public Page_1()
{
}
}
|
apache/wicket | 1,099 | wicket-core-tests/src/test/java/org/apache/wicket/markup/parser/Page_2.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.parser;
import org.apache.wicket.markup.html.WebPage;
/**
* Mock page for testing.
*
* @author Chris Turner
*/
public class Page_2 extends WebPage
{
private static final long serialVersionUID = 1L;
/**
* Construct.
*
*/
public Page_2()
{
}
}
|
apache/xmlbeans | 1,118 | src/main/java/org/apache/xmlbeans/xml/stream/CharacterData.java | /* Copyright 2004 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.xmlbeans.xml.stream;
/**
* A marker interface for character data
*
* @since Weblogic XML Input Stream 1.0
* @version 1.0
* @see org.apache.xmlbeans.xml.stream.XMLEvent
*/
public interface CharacterData extends XMLEvent {
/**
* Get the content of this element,
* returns null if the element has no content
*/
public String getContent();
/**
* Returns true if this element has content and false otherwise
*/
public boolean hasContent();
}
|
apache/xmlgraphics-fop | 1,110 | fop-core/src/test/java/org/apache/fop/pdf/PDFFilterListTestCase.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* $Id$ */
package org.apache.fop.pdf;
import org.junit.Test;
import static org.junit.Assert.assertFalse;
public class PDFFilterListTestCase {
@Test
public void testFilterList() {
PDFFilterList filterList = new PDFFilterList();
assertFalse(filterList.isInitialized());
}
}
|
google/auto | 1,111 | factory/src/test/resources/expected/Generics_FooImplWithClassFactory.java | /*
* Copyright 2021 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 tests;
import javax.annotation.processing.Generated;
import javax.inject.Inject;
@Generated(
value = "com.google.auto.factory.processor.AutoFactoryProcessor",
comments = "https://github.com/google/auto/tree/main/factory"
)
final class Generics_FooImplWithClassFactory<M extends Generics.Bar>
extends Generics.FooFactoryClass<M> {
@Inject
Generics_FooImplWithClassFactory() {}
@Override
public Generics.FooImplWithClass<M> create() {
return new Generics.FooImplWithClass<M>();
}
}
|
google/bindiff | 1,084 | java/zylib/src/main/java/com/google/security/zynamics/zylib/gui/zygraph/layouters/CircularStyle.java | // Copyright 2011-2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.security.zynamics.zylib.gui.zygraph.layouters;
public enum CircularStyle {
COMPACT,
ISOLATED,
SINGLE_CIRCLE;
public static CircularStyle parseInt(final int style) {
if (style == COMPACT.ordinal()) {
return COMPACT;
} else if (style == ISOLATED.ordinal()) {
return ISOLATED;
} else if (style == SINGLE_CIRCLE.ordinal()) {
return SINGLE_CIRCLE;
} else {
throw new IllegalStateException("Error: Invalid style");
}
}
}
|
google/bindiff | 1,088 | java/zylib/src/main/java/com/google/security/zynamics/zylib/gui/zygraph/editmode/IStateAction.java | // Copyright 2011-2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.security.zynamics.zylib.gui.zygraph.editmode;
import java.awt.event.MouseEvent;
/**
* Interface for all objects to be used as default actions that are executed as soon as a state
* change was triggered.
*
* @param <T> The type of the state change object.
*/
public interface IStateAction<T> {
/**
* Executes an action.
*
* @param state The new state.
* @param event The event that led to the new state.
*/
void execute(T state, MouseEvent event);
}
|
google/binnavi | 1,098 | src/main/java/com/google/security/zynamics/binnavi/Plugins/PluginStatus.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.Plugins;
/**
* Identifiers for all known plugin states.
*/
public enum PluginStatus {
/**
* The plugin has a valid structure.
*/
Valid,
/**
* The plugin has an invalid name and an invalid GUID.
*/
InvalidNameGuid,
/**
* The plugin has an invalid name.
*/
InvalidName,
/**
* The plugin has an invalid GUID.
*/
InvalidGuid,
/**
* The plugin has the same GUID as a previously loaded plugin.
*/
DuplicateGuid
}
|
google/closure-compiler | 1,100 | src/com/google/javascript/jscomp/parsing/parser/trees/YieldExpressionTree.java | /*
* Copyright 2011 The Closure Compiler 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.javascript.jscomp.parsing.parser.trees;
import com.google.javascript.jscomp.parsing.parser.util.SourceRange;
public class YieldExpressionTree extends ParseTree {
public final ParseTree expression;
public final boolean isYieldAll;
public YieldExpressionTree(
SourceRange location, boolean isYieldAll, ParseTree expression) {
super(ParseTreeType.YIELD_EXPRESSION, location);
this.isYieldAll = isYieldAll;
this.expression = expression;
}
}
|
google/depan | 1,084 | DepanEdgeUI/prod/src/com/google/devtools/depan/relations/persistence/RelationSetResourcesInstaller.java | /**
* Copyright 2017 The Depan 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
*
* 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.devtools.depan.relations.persistence;
import com.google.devtools.depan.resources.ResourceContainer;
import com.google.devtools.depan.resources.analysis.AnalysisResourceInstaller;
/**
* @author <a href="leeca@pnambic.com">Lee Carver</a>
*/
public class RelationSetResourcesInstaller
implements AnalysisResourceInstaller {
@Override
public void installResource(ResourceContainer root) {
RelationSetResources.installResources(root);
}
}
|
google/depan | 1,100 | DepanRemap/prod/src/com/google/devtools/depan/remap_doc/eclipse/RemapResources.java | package com.google.devtools.depan.remap_doc.eclipse;
import com.google.devtools.depan.platform.PlatformResources;
import org.eclipse.core.runtime.Platform;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.swt.graphics.Image;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.Bundle;
public class RemapResources {
public static final String PLUGIN_ID = "com.google.devtools.depan.view_doc";
public static final Bundle BUNDLE = Platform.getBundle(PLUGIN_ID);
RemapResources() {
// Prevent instantiation.
}
public static final String NAME_REFACTORING = "Refactoring";
public static final ImageDescriptor IMAGE_DESC_REFACTORING =
getImageDescriptor("icons/refactoring.png");
public static final Image IMAGE_REFACTORING =
getImage(IMAGE_DESC_REFACTORING);
private static ImageDescriptor getImageDescriptor(String path) {
return AbstractUIPlugin.imageDescriptorFromPlugin(PLUGIN_ID, path);
}
private static Image getImage(ImageDescriptor descriptor) {
return PlatformResources.getImage(descriptor);
}
}
|
google/j2cl | 1,102 | transpiler/javatests/com/google/j2cl/integration/java/overridinginterfacemethods/Main.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 overridinginterfacemethods;
import static com.google.j2cl.integration.testing.Asserts.assertTrue;
/**
* Test overriding interface methods.
*/
public class Main {
public static void main(String... args) {
SomeInterface instance = new SomeClass();
assertTrue(instance.overrideWithNoChange() instanceof SomeClass);
assertTrue(instance.overrideWithReturnChange() instanceof SomeClass);
assertTrue(((SomeClass) instance).overrideWithReturnChange(null) instanceof SomeClass);
}
}
|
google/nomulus | 1,115 | core/src/main/java/google/registry/tools/params/YearMonthParameter.java | // Copyright 2017 The Nomulus Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package google.registry.tools.params;
import org.joda.time.YearMonth;
import org.joda.time.format.ISODateTimeFormat;
/** {@linkplain YearMonth} CLI parameter converter/validator (e.g. 1984-12) */
public final class YearMonthParameter extends ParameterConverterValidator<YearMonth> {
public YearMonthParameter() {
super("not a valid YearMonth (YYYY-MM)");
}
@Override
public YearMonth convert(String value) {
return YearMonth.parse(value, ISODateTimeFormat.yearMonth());
}
}
|
google/santa-tracker-android | 1,085 | playgames/src/main/java/com/google/android/apps/playgames/simpleengine/ui/Widget.java | /*
* Copyright 2019. Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.android.apps.playgames.simpleengine.ui;
public class Widget {
public interface WidgetTriggerListener {
public void onWidgetTriggered(int message);
}
public void doFrame(float deltaT) {}
public void onPointerDown(int pointerId, float x, float y) {}
public void onPointerMove(int pointerId, float x, float y, float deltaX, float deltaY) {}
public void onPointerUp(int pointerId, float x, float y) {}
public void dispose() {}
}
|
googleads/google-ads-java | 1,063 | google-ads-stubs-v19/src/main/java/com/google/ads/googleads/v19/common/PlacementInfoOrBuilder.java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v19/common/criteria.proto
// Protobuf Java Version: 3.25.7
package com.google.ads.googleads.v19.common;
public interface PlacementInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v19.common.PlacementInfo)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* URL of the placement.
*
* For example, "http://www.domain.com".
* </pre>
*
* <code>optional string url = 2;</code>
* @return Whether the url field is set.
*/
boolean hasUrl();
/**
* <pre>
* URL of the placement.
*
* For example, "http://www.domain.com".
* </pre>
*
* <code>optional string url = 2;</code>
* @return The url.
*/
java.lang.String getUrl();
/**
* <pre>
* URL of the placement.
*
* For example, "http://www.domain.com".
* </pre>
*
* <code>optional string url = 2;</code>
* @return The bytes for url.
*/
com.google.protobuf.ByteString
getUrlBytes();
}
|
googleads/google-ads-java | 1,063 | google-ads-stubs-v20/src/main/java/com/google/ads/googleads/v20/common/PlacementInfoOrBuilder.java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v20/common/criteria.proto
// Protobuf Java Version: 3.25.7
package com.google.ads.googleads.v20.common;
public interface PlacementInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v20.common.PlacementInfo)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* URL of the placement.
*
* For example, "http://www.domain.com".
* </pre>
*
* <code>optional string url = 2;</code>
* @return Whether the url field is set.
*/
boolean hasUrl();
/**
* <pre>
* URL of the placement.
*
* For example, "http://www.domain.com".
* </pre>
*
* <code>optional string url = 2;</code>
* @return The url.
*/
java.lang.String getUrl();
/**
* <pre>
* URL of the placement.
*
* For example, "http://www.domain.com".
* </pre>
*
* <code>optional string url = 2;</code>
* @return The bytes for url.
*/
com.google.protobuf.ByteString
getUrlBytes();
}
|
googleads/google-ads-java | 1,063 | google-ads-stubs-v21/src/main/java/com/google/ads/googleads/v21/common/PlacementInfoOrBuilder.java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v21/common/criteria.proto
// Protobuf Java Version: 3.25.7
package com.google.ads.googleads.v21.common;
public interface PlacementInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v21.common.PlacementInfo)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* URL of the placement.
*
* For example, "http://www.domain.com".
* </pre>
*
* <code>optional string url = 2;</code>
* @return Whether the url field is set.
*/
boolean hasUrl();
/**
* <pre>
* URL of the placement.
*
* For example, "http://www.domain.com".
* </pre>
*
* <code>optional string url = 2;</code>
* @return The url.
*/
java.lang.String getUrl();
/**
* <pre>
* URL of the placement.
*
* For example, "http://www.domain.com".
* </pre>
*
* <code>optional string url = 2;</code>
* @return The bytes for url.
*/
com.google.protobuf.ByteString
getUrlBytes();
}
|
googleads/google-ads-java | 1,072 | google-ads-stubs-v19/src/main/java/com/google/ads/googleads/v19/common/YouTubeVideoInfoOrBuilder.java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v19/common/criteria.proto
// Protobuf Java Version: 3.25.7
package com.google.ads.googleads.v19.common;
public interface YouTubeVideoInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v19.common.YouTubeVideoInfo)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* YouTube video id as it appears on the YouTube watch page.
* </pre>
*
* <code>optional string video_id = 2;</code>
* @return Whether the videoId field is set.
*/
boolean hasVideoId();
/**
* <pre>
* YouTube video id as it appears on the YouTube watch page.
* </pre>
*
* <code>optional string video_id = 2;</code>
* @return The videoId.
*/
java.lang.String getVideoId();
/**
* <pre>
* YouTube video id as it appears on the YouTube watch page.
* </pre>
*
* <code>optional string video_id = 2;</code>
* @return The bytes for videoId.
*/
com.google.protobuf.ByteString
getVideoIdBytes();
}
|
googleads/google-ads-java | 1,072 | google-ads-stubs-v20/src/main/java/com/google/ads/googleads/v20/common/YouTubeVideoInfoOrBuilder.java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v20/common/criteria.proto
// Protobuf Java Version: 3.25.7
package com.google.ads.googleads.v20.common;
public interface YouTubeVideoInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v20.common.YouTubeVideoInfo)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* YouTube video id as it appears on the YouTube watch page.
* </pre>
*
* <code>optional string video_id = 2;</code>
* @return Whether the videoId field is set.
*/
boolean hasVideoId();
/**
* <pre>
* YouTube video id as it appears on the YouTube watch page.
* </pre>
*
* <code>optional string video_id = 2;</code>
* @return The videoId.
*/
java.lang.String getVideoId();
/**
* <pre>
* YouTube video id as it appears on the YouTube watch page.
* </pre>
*
* <code>optional string video_id = 2;</code>
* @return The bytes for videoId.
*/
com.google.protobuf.ByteString
getVideoIdBytes();
}
|
googleads/google-ads-java | 1,072 | google-ads-stubs-v21/src/main/java/com/google/ads/googleads/v21/common/YouTubeVideoInfoOrBuilder.java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v21/common/criteria.proto
// Protobuf Java Version: 3.25.7
package com.google.ads.googleads.v21.common;
public interface YouTubeVideoInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v21.common.YouTubeVideoInfo)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* YouTube video id as it appears on the YouTube watch page.
* </pre>
*
* <code>optional string video_id = 2;</code>
* @return Whether the videoId field is set.
*/
boolean hasVideoId();
/**
* <pre>
* YouTube video id as it appears on the YouTube watch page.
* </pre>
*
* <code>optional string video_id = 2;</code>
* @return The videoId.
*/
java.lang.String getVideoId();
/**
* <pre>
* YouTube video id as it appears on the YouTube watch page.
* </pre>
*
* <code>optional string video_id = 2;</code>
* @return The bytes for videoId.
*/
com.google.protobuf.ByteString
getVideoIdBytes();
}
|
googleads/google-ads-java | 1,074 | google-ads-stubs-v19/src/main/java/com/google/ads/googleads/v19/common/HotelStateInfoOrBuilder.java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v19/common/criteria.proto
// Protobuf Java Version: 3.25.7
package com.google.ads.googleads.v19.common;
public interface HotelStateInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v19.common.HotelStateInfo)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* The Geo Target Constant resource name.
* </pre>
*
* <code>optional string state_criterion = 2;</code>
* @return Whether the stateCriterion field is set.
*/
boolean hasStateCriterion();
/**
* <pre>
* The Geo Target Constant resource name.
* </pre>
*
* <code>optional string state_criterion = 2;</code>
* @return The stateCriterion.
*/
java.lang.String getStateCriterion();
/**
* <pre>
* The Geo Target Constant resource name.
* </pre>
*
* <code>optional string state_criterion = 2;</code>
* @return The bytes for stateCriterion.
*/
com.google.protobuf.ByteString
getStateCriterionBytes();
}
|
googleads/google-ads-java | 1,074 | google-ads-stubs-v20/src/main/java/com/google/ads/googleads/v20/common/HotelStateInfoOrBuilder.java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v20/common/criteria.proto
// Protobuf Java Version: 3.25.7
package com.google.ads.googleads.v20.common;
public interface HotelStateInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v20.common.HotelStateInfo)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* The Geo Target Constant resource name.
* </pre>
*
* <code>optional string state_criterion = 2;</code>
* @return Whether the stateCriterion field is set.
*/
boolean hasStateCriterion();
/**
* <pre>
* The Geo Target Constant resource name.
* </pre>
*
* <code>optional string state_criterion = 2;</code>
* @return The stateCriterion.
*/
java.lang.String getStateCriterion();
/**
* <pre>
* The Geo Target Constant resource name.
* </pre>
*
* <code>optional string state_criterion = 2;</code>
* @return The bytes for stateCriterion.
*/
com.google.protobuf.ByteString
getStateCriterionBytes();
}
|
googleads/google-ads-java | 1,074 | google-ads-stubs-v21/src/main/java/com/google/ads/googleads/v21/common/HotelStateInfoOrBuilder.java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v21/common/criteria.proto
// Protobuf Java Version: 3.25.7
package com.google.ads.googleads.v21.common;
public interface HotelStateInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v21.common.HotelStateInfo)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* The Geo Target Constant resource name.
* </pre>
*
* <code>optional string state_criterion = 2;</code>
* @return Whether the stateCriterion field is set.
*/
boolean hasStateCriterion();
/**
* <pre>
* The Geo Target Constant resource name.
* </pre>
*
* <code>optional string state_criterion = 2;</code>
* @return The stateCriterion.
*/
java.lang.String getStateCriterion();
/**
* <pre>
* The Geo Target Constant resource name.
* </pre>
*
* <code>optional string state_criterion = 2;</code>
* @return The bytes for stateCriterion.
*/
com.google.protobuf.ByteString
getStateCriterionBytes();
}
|
googleapis/google-cloud-java | 1,032 | java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchReadFeatureValuesResponseOrBuilder.java | /*
* Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/aiplatform/v1beta1/featurestore_service.proto
// Protobuf Java Version: 3.25.8
package com.google.cloud.aiplatform.v1beta1;
public interface BatchReadFeatureValuesResponseOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse)
com.google.protobuf.MessageOrBuilder {}
|
hibernate/hibernate-ogm | 1,078 | core/src/main/java/org/hibernate/ogm/datastore/spi/BaseDatastoreProvider.java | /*
* Hibernate OGM, Domain model persistence for NoSQL datastores
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.ogm.datastore.spi;
import org.hibernate.ogm.query.spi.QueryParserService;
import org.hibernate.resource.transaction.spi.TransactionCoordinatorBuilder;
/**
* Recommended base class for {@link DatastoreProvider} implementations.
*
* @author Gunnar Morling
*
*/
public abstract class BaseDatastoreProvider implements DatastoreProvider {
@Override
public Class<? extends QueryParserService> getDefaultQueryParserServiceType() {
return null;
}
@Override
public Class<? extends SchemaDefiner> getSchemaDefinerType() {
return BaseSchemaDefiner.class;
}
@Override
public boolean allowsTransactionEmulation() {
return false;
}
@Override
public TransactionCoordinatorBuilder getTransactionCoordinatorBuilder(TransactionCoordinatorBuilder coordinatorBuilder) {
return coordinatorBuilder;
}
}
|
hibernate/hibernate-orm | 1,030 | hibernate-core/src/test/java/org/hibernate/orm/test/jpa/CompositeId.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.orm.test.jpa;
import java.io.Serializable;
import jakarta.persistence.Embeddable;
/**
*
*/
@Embeddable
public class CompositeId implements Serializable {
private int id1;
private int id2;
public CompositeId() {
}
public CompositeId(int id1, int id2) {
this.id1 = id1;
this.id2 = id2;
}
public int getId1() {
return id1;
}
public void setId1( int id1 ) {
this.id1 = id1;
}
public int getId2() {
return id2;
}
public void setId2( int id2 ) {
this.id2 = id2;
}
@Override
public boolean equals( Object obj ) {
if (obj == null) return false;
if (getClass() != obj.getClass()) return false;
final CompositeId other = (CompositeId)obj;
if (this.id1 != other.id1) return false;
if (this.id2 != other.id2) return false;
return true;
}
@Override
public int hashCode() {
int hash = 5;
hash = 73 * hash + this.id1;
hash = 73 * hash + this.id2;
return hash;
}
}
|
hibernate/hibernate-orm | 1,035 | hibernate-core/src/test/java/org/hibernate/orm/test/cdi/general/hibernatesearch/TheMainNamedDependentBeanImpl.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.orm.test.cdi.general.hibernatesearch;
import jakarta.annotation.PostConstruct;
import jakarta.annotation.PreDestroy;
import jakarta.enterprise.context.Dependent;
import jakarta.inject.Named;
/**
* @author Yoann Rodiere
*/
@Dependent
@Named(TheMainNamedDependentBeanImpl.NAME)
public class TheMainNamedDependentBeanImpl implements TheNamedDependentBean {
public static final String NAME = "TheMainNamedDependentBeanImpl_name";
@jakarta.inject.Inject
private TheNestedDependentBean nestedDependentBean;
public TheMainNamedDependentBeanImpl() {
Monitor.theMainNamedDependentBean().instantiated();
}
@Override
public void ensureInitialized() {
nestedDependentBean.ensureInitialized();
}
@PostConstruct
public void postConstruct() {
Monitor.theMainNamedDependentBean().postConstructCalled();
}
@PreDestroy
public void preDestroy() {
Monitor.theMainNamedDependentBean().preDestroyCalled();
}
}
|
hibernate/hibernate-orm | 1,041 | hibernate-core/src/test/java/org/hibernate/orm/test/collection/ordercol/Book.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.orm.test.collection.ordercol;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.OneToMany;
import jakarta.persistence.OrderColumn;
import jakarta.validation.constraints.Size;
import org.hibernate.annotations.ListIndexBase;
import java.util.ArrayList;
import java.util.List;
import static jakarta.persistence.CascadeType.PERSIST;
@Entity
class Book {
@Id
@Size(min=10, max = 13)
String isbn;
@OneToMany(cascade = PERSIST,
mappedBy = "isbn")
@OrderColumn(name = "page_number")
@ListIndexBase(1)
List<Page> pages;
Book(String isbn) {
this.isbn = isbn;
pages = new ArrayList<>();
}
Book() {
}
}
@Entity
class Page {
@Id String isbn;
@Id @Column(name = "page_number") int number;
String text;
Page(String isbn, int number, String text) {
this.isbn = isbn;
this.number = number;
this.text = text;
}
Page() {
}
}
|
hibernate/hibernate-orm | 1,052 | hibernate-core/src/main/java/org/hibernate/boot/models/annotations/internal/ParentAnnotation.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.boot.models.annotations.internal;
import java.lang.annotation.Annotation;
import java.util.Map;
import org.hibernate.annotations.Parent;
import org.hibernate.models.spi.ModelsContext;
@SuppressWarnings({ "ClassExplicitlyAnnotation", "unused" })
@jakarta.annotation.Generated("org.hibernate.orm.build.annotations.ClassGeneratorProcessor")
public class ParentAnnotation implements Parent {
/**
* Used in creating dynamic annotation instances (e.g. from XML)
*/
public ParentAnnotation(ModelsContext modelContext) {
}
/**
* Used in creating annotation instances from JDK variant
*/
public ParentAnnotation(Parent annotation, ModelsContext modelContext) {
}
/**
* Used in creating annotation instances from Jandex variant
*/
public ParentAnnotation(Map<String, Object> attributeValues, ModelsContext modelContext) {
}
@Override
public Class<? extends Annotation> annotationType() {
return Parent.class;
}
}
|
hibernate/hibernate-orm | 1,056 | hibernate-core/src/main/java/org/hibernate/dialect/lock/LockingStrategyException.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.dialect.lock;
import org.hibernate.HibernateException;
/**
* Represents an error trying to apply a {@link LockingStrategy} to an entity
*
* @author Steve Ebersole
*/
public abstract class LockingStrategyException extends HibernateException {
private final Object entity;
/**
* Constructs a LockingStrategyException
*
* @param entity The entity we were trying to lock
* @param message Message explaining the condition
*/
public LockingStrategyException(Object entity, String message) {
super( message );
this.entity = entity;
}
/**
* Constructs a LockingStrategyException
*
* @param entity The entity we were trying to lock
* @param message Message explaining the condition
* @param cause The underlying cause
*/
public LockingStrategyException(Object entity, String message, Throwable cause) {
super( message, cause );
this.entity = entity;
}
public Object getEntity() {
return entity;
}
}
|
hibernate/hibernate-orm | 1,083 | hibernate-core/src/main/java/org/hibernate/boot/model/internal/SetBinder.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.boot.model.internal;
import java.util.function.Supplier;
import org.hibernate.boot.spi.MetadataBuildingContext;
import org.hibernate.mapping.Collection;
import org.hibernate.mapping.PersistentClass;
import org.hibernate.mapping.Set;
import org.hibernate.resource.beans.spi.ManagedBean;
import org.hibernate.usertype.UserCollectionType;
/**
* A {@link CollectionBinder} for {@link org.hibernate.collection.spi.PersistentSet sets},
* whose mapping model type is {@link Set}.
*
* @author Matthew Inger
*/
public class SetBinder extends CollectionBinder {
public SetBinder(
Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver,
boolean sorted,
MetadataBuildingContext buildingContext) {
super( customTypeBeanResolver, sorted, buildingContext );
}
@Override
protected Collection createCollection(PersistentClass persistentClass) {
return new Set( getCustomTypeBeanResolver(), persistentClass, getBuildingContext() );
}
}
|
hibernate/hibernate-search | 1,031 | documentation/src/test/java/org/hibernate/search/documentation/backend/lucene/type/asnative/WebPage.java | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.search.documentation.backend.lucene.type.asnative;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import org.hibernate.search.mapper.pojo.bridge.mapping.annotation.ValueBinderRef;
import org.hibernate.search.mapper.pojo.mapping.definition.annotation.Indexed;
import org.hibernate.search.mapper.pojo.mapping.definition.annotation.NonStandardField;
// tag::include[]
@Entity
@Indexed
public class WebPage {
@Id
private Integer id;
@NonStandardField( // <1>
valueBinder = @ValueBinderRef(type = PageRankValueBinder.class) // <2>
)
private Float pageRank;
// Getters and setters
// ...
// tag::getters-setters[]
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Float getPageRank() {
return pageRank;
}
public void setPageRank(Float pageRank) {
this.pageRank = pageRank;
}
// end::getters-setters[]
}
// end::include[]
|
hibernate/hibernate-tools | 1,098 | jbt/src/main/java/org/hibernate/tool/orm/jbt/api/wrp/QueryWrapper.java | /*
* Hibernate Tools, Tooling for your Hibernate Projects
*
* Copyright 2024-2025 Red Hat, 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 org.hibernate.tool.orm.jbt.api.wrp;
import java.util.List;
public interface QueryWrapper extends Wrapper {
List<?> list();
void setMaxResults(int i);
void setParameterList(String parameter, List<?> list, Object anything);
void setParameter(String parameter, Object value, Object anything);
void setParameter(int position, Object value, Object anything);
String[] getReturnAliases();
TypeWrapper[] getReturnTypes();
}
|
openjdk/jdk8 | 1,127 | langtools/test/tools/javac/ImportPackagePrivateInner/foo/Accessor.java | /*
* Copyright (c) 1997, 2000, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package foo;
import foo.Accessee.Inside;
public class Accessor { }
|
openjdk/jdk8 | 1,131 | langtools/test/com/sun/javadoc/testOverridenMethods/pkg3/I3.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 pkg3;
public interface I3 extends I4 {
public void foo();
}
|
openjdk/jdk8 | 1,134 | langtools/test/tools/javac/lambda/inaccessibleMref02/p1/C.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 p1;
class Sup {
public void m() { }
}
public class C extends Sup { }
|
openjdk/jdk8 | 1,135 | langtools/test/tools/javac/diags/examples/EnumNoSubclassing.java | /*
* Copyright (c) 2010, 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.
*/
// key: compiler.err.enum.no.subclassing
class EnumNoSubclassing extends Enum { }
|
openjdk/jtreg | 1,153 | test/problemList/ExcludeGenericArch.java | /*
* Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
*/
public class ExcludeGenericArch {
public static void main(String[] args) { }
}
|
openjdk/jtreg | 1,162 | test/vmopts/compile/Compile.java | /*
* Copyright (c) 2006, 2007, 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
* @compile AnnProc.java
* @compile -processor AnnProc Compile.java
*/
class Compile { }
|
oracle/coherence | 1,100 | prj/coherence-core/src/main/java/com/tangosol/dev/assembler/Ifge.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.dev.assembler;
import java.io.IOException;
import java.io.DataInput;
import java.io.DataOutput;
/**
* The IFGE op branches to the label if the top integer on the stack is
* greater than or equal to zero.
* <p><code><pre>
* JASM op : IFGE (0x9c)
* JVM byte code(s): IFGE (0x9c)
* Details :
* </pre></code>
*
* @version 0.50, 06/14/98, assembler/dis-assembler
* @author Cameron Purdy
*/
public class Ifge extends OpBranch implements Constants
{
// ----- constructors ---------------------------------------------------
/**
* Construct the op.
*
* @param label the label to branch to
*/
public Ifge(Label label)
{
super(IFGE, label);
}
// ----- data members ---------------------------------------------------
/**
* The name of this class.
*/
private static final String CLASS = "Ifge";
}
|
oracle/nosql | 1,130 | kvmain/src/main/java/com/sleepycat/util/ExceptionWrapper.java | /*-
* Copyright (C) 2002, 2025, Oracle and/or its affiliates. All rights reserved.
*
* This file was distributed by Oracle as part of a version of Oracle NoSQL
* Database made available at:
*
* http://www.oracle.com/technetwork/database/database-technologies/nosqldb/downloads/index.html
*
* Please see the LICENSE file included in the top-level directory of the
* appropriate version of Oracle NoSQL Database for a copy of the license and
* additional information.
*/
package com.sleepycat.util;
/**
* Interface implemented by exceptions that can contain nested exceptions.
*
* @author Mark Hayes
*/
public interface ExceptionWrapper {
/**
* Returns the nested exception or null if none is present.
*
* <p>This method is intentionally defined to be the same signature as the
* <code>java.lang.Throwable.getCause</code> method in Java 1.4 and
* greater. By defining this method to return a nested exception, the Java
* 1.4 runtime will print the nested stack trace.</p>
*
* @return the nested exception or null if none is present.
*/
Throwable getCause();
}
|
apache/druid | 1,067 | extensions-contrib/gce-extensions/src/main/java/org/apache/druid/indexing/overlord/autoscaling/gce/GceServiceException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.druid.indexing.overlord.autoscaling.gce;
/**
* Provides a specialized Exception type for the GCE module
*/
public class GceServiceException extends Exception
{
public GceServiceException(String message)
{
super(message);
}
}
|
apache/druid | 1,117 | multi-stage-query/src/main/java/org/apache/druid/msq/input/InputSpec.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.druid.msq.input;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
/**
* Description of an input. Sliced into {@link InputSlice} by {@link InputSpecSlicer} and then assigned to workers.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
public interface InputSpec
{
}
|
apache/dubbo-samples | 1,065 | 2-advanced/dubbo-samples-api-with-registry/src/main/java/org/apache/dubbo/samples/api/provider/GreetingsServiceImpl.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.samples.api.provider;
import org.apache.dubbo.samples.api.api.GreetingsService;
public class GreetingsServiceImpl implements GreetingsService {
@Override
public String sayHi(String name) {
return "hi, " + name;
}
}
|
apache/dubbo | 1,113 | dubbo-common/src/main/java/org/apache/dubbo/common/resource/Initializable.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.common.resource;
import org.apache.dubbo.common.extension.ExtensionAccessor;
/**
* An interface for Initializing resources
*/
public interface Initializable {
default void initialize(ExtensionAccessor accessor) {
initialize();
}
default void initialize() {}
}
|
apache/felix-dev | 1,081 | scr/src/test/java/org/apache/felix/scr/integration/components/activatesignature/Signature_Public_Map.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.felix.scr.integration.components.activatesignature;
import java.util.Map;
public class Signature_Public_Map extends AbstractActivateSignatureTestComponent
{
public void activate(Map<?, ?> config)
{
setMethodCalled( config );
}
}
|
apache/felix-dev | 1,099 | tools/osgicheck-maven-plugin/src/main/java/org/apache/felix/scr/impl/metadata/Faker.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with this
* work for additional information regarding copyright ownership. The ASF
* licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package org.apache.felix.scr.impl.metadata;
import java.util.List;
public final class Faker {
private Faker() {
//
}
public static List<PropertyMetadata> getPropertyMetaData(ComponentMetadata componentMetadata) {
return componentMetadata.getPropertyMetaData();
}
}
|
apache/felix-dev | 1,112 | gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/Evaluate.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.gogo.runtime;
import java.nio.file.Path;
public interface Evaluate
{
Object eval(Token t) throws Exception;
Object get(String key);
Object put(String key, Object value);
Object expr(Token t);
Path currentDir();
ClassLoader classLoader();
}
|
apache/fineract | 1,071 | fineract-provider/src/main/java/org/apache/fineract/infrastructure/creditbureau/data/CreditBureauConfigurations.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.creditbureau.data;
public enum CreditBureauConfigurations {
THITSAWORKS, //
SUBSCRIPTIONID, //
SUBSCRIPTIONKEY, //
USERNAME, //
PASSWORD, //
TOKENURL, //
SEARCHURL, //
CREDITREPORTURL; //
}
|
apache/fineract | 1,083 | fineract-core/src/main/java/org/apache/fineract/infrastructure/core/service/database/DatabaseType.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.core.service.database;
public enum DatabaseType {
MYSQL, //
POSTGRESQL, //
;
public boolean isMySql() {
return this == MYSQL;
}
public boolean isPostgres() {
return this == POSTGRESQL;
}
}
|
apache/fineract | 1,089 | fineract-accounting/src/main/java/org/apache/fineract/accounting/journalentry/data/CreditDebit.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.accounting.journalentry.data;
import java.math.BigDecimal;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
@RequiredArgsConstructor
@Getter
public class CreditDebit {
private final Long glAccountId;
private final BigDecimal amount;
}
|
apache/fineract | 1,094 | fineract-core/src/main/java/org/apache/fineract/infrastructure/jobs/data/JobParameterDTO.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.jobs.data;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
@Data
@AllArgsConstructor
@EqualsAndHashCode
public class JobParameterDTO {
private String parameterName;
private String parameterValue;
}
|
apache/flex-blazeds | 1,111 | core/src/main/java/flex/messaging/io/amf/translator/decoder/NativeDecoder.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 flex.messaging.io.amf.translator.decoder;
/**
* Decodes an ActionScript native object to a Java native object.
*/
public class NativeDecoder extends ActionScriptDecoder {
public Object decodeObject(Object shell, Object encodedObject, Class desiredClass) {
return encodedObject;
}
}
|
apache/fluss | 1,106 | fluss-common/src/main/java/org/apache/fluss/exception/SecurityDisabledException.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.exception;
/**
* Exception for no security enabled.
*
* @since 0.7
*/
public class SecurityDisabledException extends ApiException {
private static final long serialVersionUID = 1L;
public SecurityDisabledException(String message) {
super(message);
}
}
|
apache/fluss | 1,110 | fluss-common/src/main/java/org/apache/fluss/exception/AuthorizationException.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.exception;
/**
* This exception is thrown if no authorization.
*
* @since 0.7
*/
public class AuthorizationException extends ApiException {
private static final long serialVersionUID = 1L;
public AuthorizationException(String message) {
super(message);
}
}
|
apache/freemarker | 1,089 | freemarker-core/src/test/java/freemarker/ext/beans/Java8BridgeMethodsWithDefaultMethodBeanBase2.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 freemarker.ext.beans;
public interface Java8BridgeMethodsWithDefaultMethodBeanBase2 extends Java8BridgeMethodsWithDefaultMethodBeanBase<String> {
@Override
default String m1() {
return Java8BridgeMethodsWithDefaultMethodBean.M1_RETURN_VALUE;
}
}
|
apache/geaflow | 1,042 | geaflow/geaflow-core/geaflow-metaserver/geaflow-metaserver-common/src/main/java/org/apache/geaflow/metaserver/model/protocal/MetaRequestType.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.geaflow.metaserver.model.protocal;
public enum MetaRequestType {
/**
* Register service request.
*/
REGISTER_SERVICE,
/**
* Query all service request.
*/
QUERY_ALL_SERVICE;
}
|
apache/geaflow | 1,058 | geaflow/geaflow-core/geaflow-engine/geaflow-highavailability/src/main/java/org/apache/geaflow/ha/service/HAServiceType.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.ha.service;
public enum HAServiceType {
/**
* Service based on redis.
*/
redis,
/**
* Service based on hbase.
*/
hbase,
/**
* Service based on memory.
*/
memory
}
|
apache/geaflow | 1,066 | geaflow/geaflow-plugins/geaflow-store/geaflow-store-api/src/main/java/org/apache/geaflow/store/api/graph/IPushDownStore.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.store.api.graph;
import org.apache.geaflow.state.pushdown.inner.IFilterConverter;
public interface IPushDownStore {
/**
* Filter can be code generated or converted.
*/
IFilterConverter getFilterConverter();
}
|
apache/geaflow | 1,084 | geaflow/geaflow-model/src/main/java/org/apache/geaflow/model/graph/IGraphElementWithTimeField.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.model.graph;
public interface IGraphElementWithTimeField {
/**
* Get time.
*
* @return timestamp
*/
long getTime();
/**
* Set time.
*
* @param time timestamp
*/
void setTime(long time);
}
|
apache/geode | 1,104 | geode-lucene/src/main/java/org/apache/geode/cache/lucene/internal/filesystem/package-info.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License. You may obtain a
* copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/**
* A distributed filesystem implementation that uses a geode region as the underlying storage
* mechanism.
*
* Users of this filesystem should interact with the
* {@link org.apache.geode.cache.lucene.internal.filesystem.FileSystem} class.
*
*/
package org.apache.geode.cache.lucene.internal.filesystem;
|
apache/gobblin | 1,084 | gobblin-modules/gobblin-kafka-common/src/main/java/org/apache/gobblin/metrics/reporter/KeyValuePusher.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.gobblin.metrics.reporter;
import java.util.List;
import org.apache.commons.lang3.tuple.Pair;
import org.apache.gobblin.metrics.kafka.Pusher;
public interface KeyValuePusher<K, V> extends Pusher<V> {
void pushKeyValueMessages(List<Pair<K, V>> messages);
}
|
apache/grails-core | 1,087 | grails-datastore-core/src/main/groovy/org/grails/datastore/mapping/engine/event/EventType.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.grails.datastore.mapping.engine.event;
/**
* @author Burt Beckwith
*/
public enum EventType {
PreDelete,
PreInsert,
PreLoad,
PreUpdate,
PostDelete,
PostInsert,
PostLoad,
PostUpdate,
SaveOrUpdate,
Validation
}
|
apache/groovy | 1,128 | src/test/groovy/gls/ch06/s05/testClasses/Tt1.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 gls.ch06.s05.testClasses;
public class Tt1 {
public String x = "field";
public String getX() {
return this.p1;
}
public void setX(final String x) {
this.p1 = x;
}
public String x() {
return "method";
}
private String p1 = "property";
}
|
apache/hadoop-common | 1,092 | hadoop-tools/hadoop-openstack/src/test/java/org/apache/hadoop/fs/swift/AcceptAllFilter.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.fs.swift;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.fs.PathFilter;
/**
* A path filter that accepts everything
*/
public class AcceptAllFilter implements PathFilter {
@Override
public boolean accept(Path file) {
return true;
}
}
|
apache/hadoop | 1,097 | hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/package-info.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* A collection of library classes for implementing metrics sources
*/
@InterfaceAudience.Public
@InterfaceStability.Evolving
package org.apache.hadoop.metrics2.lib;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceStability; |
apache/harmony | 1,089 | classlib/modules/beans/src/test/support/java/org/apache/harmony/beans/tests/support/MisprintEvent.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.beans.tests.support;
import java.util.EventObject;
public class MisprintEvent extends EventObject {
private static final long serialVersionUID = 6237503200476618235L;
public MisprintEvent(Object object) {
super(object);
}
}
|
apache/hbase | 1,114 | hbase-common/src/test/java/org/apache/hadoop/hbase/util/TestByteBufferUtils.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.hbase.util;
import org.apache.hadoop.hbase.testclassification.MiscTests;
import org.apache.hadoop.hbase.testclassification.SmallTests;
import org.junit.jupiter.api.Tag;
@Tag(MiscTests.TAG)
@Tag(SmallTests.TAG)
public class TestByteBufferUtils extends ByteBufferUtilsTestBase {
}
|
apache/helix | 1,101 | recipes/distributed-lock-manager/src/main/java/org/apache/helix/lockmanager/LockFactory.java | package org.apache.helix.lockmanager;
/*
* 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.
*/
import org.apache.helix.participant.statemachine.StateModelFactory;
public class LockFactory extends StateModelFactory<Lock> {
@Override
public Lock createNewStateModel(String resourceName, String lockName) {
return new Lock(lockName);
}
}
|
apache/helix | 1,131 | helix-core/src/main/java/org/apache/helix/MessageListener.java | package org.apache.helix;
/*
* 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.
*/
/**
* Interface to implement when there is a change to messages.
*
* @deprecated
* NOTE: This interface definition is moved to {@link org.apache.helix.api.listeners.MessageListener}
*/
@Deprecated
public interface MessageListener extends org.apache.helix.api.listeners.MessageListener {
}
|
apache/hudi | 1,083 | hudi-flink-datasource/hudi-flink1.19.x/src/main/java/org/apache/hudi/adapter/SupportsPreWriteTopologyAdapter.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hudi.adapter;
import org.apache.flink.streaming.api.connector.sink2.SupportsPreWriteTopology;
/**
* Adapter clazz for {@link SupportsPreWriteTopology}.
*/
public interface SupportsPreWriteTopologyAdapter<InputT> extends SupportsPreWriteTopology<InputT> {
}
|
apache/hudi | 1,083 | hudi-flink-datasource/hudi-flink1.20.x/src/main/java/org/apache/hudi/adapter/SupportsPreWriteTopologyAdapter.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hudi.adapter;
import org.apache.flink.streaming.api.connector.sink2.SupportsPreWriteTopology;
/**
* Adapter clazz for {@link SupportsPreWriteTopology}.
*/
public interface SupportsPreWriteTopologyAdapter<InputT> extends SupportsPreWriteTopology<InputT> {
}
|
apache/hudi | 1,091 | hudi-flink-datasource/hudi-flink2.0.x/src/test/java/org/apache/hudi/adapter/ExecutionAttemptUtil.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.runtime.executiongraph.ExecutionAttemptID;
/**
* Adapter utils for execution attempt.
*/
public class ExecutionAttemptUtil {
public static ExecutionAttemptID randomId() {
return ExecutionAttemptID.randomId();
}
}
|
apache/hudi | 1,104 | hudi-hadoop-mr/src/main/java/com/uber/hoodie/hadoop/realtime/HoodieRealtimeInputFormat.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.uber.hoodie.hadoop.realtime;
import org.apache.hudi.hadoop.realtime.HoodieParquetRealtimeInputFormat;
/**
* Temporary class to allow seamless migration of com.uber.hoodie to org.apache.hudi .
*/
public class HoodieRealtimeInputFormat extends HoodieParquetRealtimeInputFormat {
}
|
apache/iceberg | 1,077 | kafka-connect/kafka-connect-transforms/src/main/java/org/apache/iceberg/connect/transforms/JsonToMapException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.iceberg.connect.transforms;
class JsonToMapException extends RuntimeException {
JsonToMapException(String errorMessage) {
super(errorMessage);
}
JsonToMapException(String errorMessage, Throwable err) {
super(errorMessage, err);
}
}
|
apache/ignite-3 | 1,088 | modules/sql-engine/src/testFixtures/java/org/apache/ignite/internal/sql/engine/util/ColumnMatcher.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.sql.engine.util;
import org.apache.ignite.sql.ColumnMetadata;
/**
* Column metadata matcher interface.
*/
@FunctionalInterface
public interface ColumnMatcher {
/** Validates column metadata. */
void check(ColumnMetadata columnMetadata);
}
|
apache/ignite-3 | 1,102 | modules/catalog-dsl/src/main/java/org/apache/ignite/internal/catalog/sql/Zone.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.catalog.sql;
class Zone extends QueryPart {
private final Name name;
Zone(String name) {
this.name = Name.simple(name);
}
@Override
protected void accept(QueryContext ctx) {
ctx.sql("ZONE ");
ctx.visit(name);
}
}
|
apache/ignite | 1,072 | modules/core/src/test/java/org/apache/ignite/internal/processors/datastreamer/DataStreamProcessorPersistenceSelfTest.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.datastreamer;
/**
*
*/
public class DataStreamProcessorPersistenceSelfTest extends DataStreamProcessorSelfTest {
/** {@inheritDoc} */
@Override public boolean persistenceEnabled() {
return true;
}
}
|
apache/ignite | 1,081 | modules/clients/src/test/java/org/apache/ignite/internal/processors/rest/JettyRestProcessorUnsignedSelfTest.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.rest;
/**
* Unsigned REST tests.
*/
public class JettyRestProcessorUnsignedSelfTest extends JettyRestProcessorAbstractSelfTest {
/** {@inheritDoc} */
@Override protected String signature() {
return null;
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.