repo_id stringclasses 875 values | size int64 974 38.9k | file_path stringlengths 10 308 | content stringlengths 974 38.9k |
|---|---|---|---|
google/cdep | 1,062 | cdep/src/main/java/io/cdep/cdep/ast/finder/Expression.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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.cdep.cdep.ast.finder;
import io.cdep.annotations.Nullable;
import io.cdep.cdep.CreateStringVisitor;
abstract public class Expression {
@Nullable
private String string = null;
@Nullable
@Override
public String toString() {
if (string == null) {
string = getClass().toString();
string = string.substring(string.lastIndexOf(".") + 1);
string = string + ": " + CreateStringVisitor.convert(this);
}
return string;
}
}
|
google/j2cl | 1,056 | transpiler/javatests/com/google/j2cl/readable/java/nativekttypes/Throws.java | /*
* Copyright 2023 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.google.j2kt.annotations;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/** A super-sourced version of the annotation to avoid dependency on the original library. */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.CONSTRUCTOR})
@Documented
public @interface Throws {}
|
google/j2cl | 1,095 | jre/java/java/lang/Deprecated.java | /*
* Copyright 2007 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package java.lang;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* A program element annotated @Deprecated is one that programmers are discouraged from using,
* typically because it is dangerous, or because a better alternative exists. <a
* href="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Deprecated.html">[Sun docs]</a>
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)
public @interface Deprecated {}
|
google/paco | 1,051 | Paco-Server/src/com/google/sampling/experiential/dao/CSTempExperimentIdVersionGroupNameDao.java | package com.google.sampling.experiential.dao;
import java.sql.SQLException;
import java.util.List;
import com.google.sampling.experiential.dao.dataaccess.ExperimentLite;
public interface CSTempExperimentIdVersionGroupNameDao {
void insertExperimentIdVersionAndGroupName() throws SQLException;
List<Long> getExperimentIdsToBeDeleted() throws SQLException;
List<ExperimentLite> getAllExperimentLiteOfStatus(Integer status) throws SQLException;
List<ExperimentLite> getDistinctExperimentIdAndVersion(Integer status) throws SQLException;
boolean deleteExperiments(List<Long> toBeDeletedExperiments) throws SQLException;
boolean deleteExperiment(Long toBeDeletedExperimentId, Integer experimentVersion) throws SQLException;
boolean updateExperimentIdVersionGroupNameStatus(Long expId, Integer expVersion, String groupName, Integer status) throws SQLException;
boolean upsertExperimentIdVersionGroupName(Long expId, Integer expVersion, String groupName,
Integer status) throws SQLException;
}
|
google/paco | 1,052 | Shared/src/com/pacoapp/paco/shared/comm/Outcome.java | package com.pacoapp.paco.shared.comm;
public class Outcome implements java.io.Serializable {
private long eventId;
private boolean status;
private String errorMessage;
public Outcome(long eventId) {
this();
this.eventId = eventId;
}
public Outcome() {
super();
this.status = true;
}
public Outcome(long eventId, String errorMessage) {
this(eventId);
this.status = false;
this.errorMessage = errorMessage;
}
public long getEventId() {
return eventId;
}
public void setEventId(long eventId) {
this.eventId = eventId;
}
public boolean succeeded() {
return status;
}
public void setStatus(boolean status) {
this.status = status;
}
public String getErrorMessage() {
return errorMessage;
}
public void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
}
public void setError(String errorMessage) {
this.status = false;
this.errorMessage = errorMessage;
}
public boolean getStatus() {
return status;
}
}
|
google/schemaorg-java | 1,067 | src/main/java/com/google/schemaorg/ValueType.java | /*
* Copyright 2016 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.schemaorg;
/**
* Base interface of value type used in the package.
*/
public interface ValueType {
/**
* Base builder interface of value type used in the package.
*/
public interface Builder {}
/**
* Compares this ValueType to the specified ValueType. The result is true if and only if this
* ValueType contains the same value content as the specified ValueType.
*/
boolean contentEquals(ValueType that);
}
|
googlearchive/gwt-google-apis | 1,039 | maps/maps/src/com/google/gwt/maps/client/control/NavLabelControl.java | /*
* Copyright 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.google.gwt.maps.client.control;
import com.google.gwt.maps.client.impl.ControlImpl;
/**
* Creates a control with buttons to pan in four directions, and zoom in and
* zoom out.
*/
public final class NavLabelControl extends Control {
/**
* Creates a control with buttons to pan in four directions, and zoom in and
* zoom out.
*/
public NavLabelControl() {
super(ControlImpl.impl.createNavLabelControl());
}
}
|
googlearchive/gwt-google-apis | 1,039 | maps/maps/src/com/google/gwt/maps/client/control/SmallMapControl.java | /*
* Copyright 2008 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.google.gwt.maps.client.control;
import com.google.gwt.maps.client.impl.ControlImpl;
/**
* Creates a control with buttons to pan in four directions, and zoom in and
* zoom out.
*/
public final class SmallMapControl extends Control {
/**
* Creates a control with buttons to pan in four directions, and zoom in and
* zoom out.
*/
public SmallMapControl() {
super(ControlImpl.impl.createSmallMapControl());
}
}
|
hibernate/hibernate-orm | 1,026 | hibernate-core/src/main/java/org/hibernate/boot/model/internal/BagBinder.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.Bag;
import org.hibernate.mapping.Collection;
import org.hibernate.mapping.PersistentClass;
import org.hibernate.resource.beans.spi.ManagedBean;
import org.hibernate.usertype.UserCollectionType;
/**
* A {@link CollectionBinder} for {@link org.hibernate.collection.spi.PersistentBag bags},
* whose mapping model type is {@link Bag}.
*
* @author Matthew Inger
*/
public class BagBinder extends CollectionBinder {
public BagBinder(
Supplier<ManagedBean<? extends UserCollectionType>> customTypeBeanResolver,
MetadataBuildingContext context) {
super( customTypeBeanResolver, false, context );
}
@Override
protected Collection createCollection(PersistentClass owner) {
return new Bag( getCustomTypeBeanResolver(), owner, getBuildingContext() );
}
}
|
openjdk/jdk8 | 1,085 | langtools/test/com/sun/javadoc/ValidHtml/p2/C2.java | /*
* Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package p2;
public class C2 {
}
|
oracle/coherence | 1,040 | prj/coherence-core/src/main/java/com/tangosol/coherence/config/scheme/CachingScheme.java | /*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
package com.tangosol.coherence.config.scheme;
import com.tangosol.coherence.config.builder.BackingMapManagerBuilder;
import com.tangosol.coherence.config.builder.MapBuilder;
import com.tangosol.coherence.config.builder.NamedCacheBuilder;
import com.tangosol.net.BackingMapManager;
import com.tangosol.net.NamedCache;
import com.tangosol.net.Service;
import java.util.Map;
/**
* The {@link CachingScheme} is a multi-builder for cache-based infrastructure.
* In particular it defines mechanisms to build {@link NamedCache}s, {@link Map}s
* that are used as the basis for {@link NamedCache}s, and where appropriate,
* {@link Service}s and {@link BackingMapManager}s.
*
* @author pfm 2011.12.28
* @since Coherence 12.1.2
*/
public interface CachingScheme
extends ServiceScheme, NamedCacheBuilder, MapBuilder, BackingMapManagerBuilder
{
}
|
oracle/nosql | 1,060 | kvmain/src/main/java/com/sleepycat/je/tree/NodeNotEmptyException.java | /*-
* Copyright (C) 2002, 2025, Oracle and/or its affiliates. All rights reserved.
*
* This file was distributed by Oracle as part of a version of Oracle NoSQL
* Database made available at:
*
* http://www.oracle.com/technetwork/database/database-technologies/nosqldb/downloads/index.html
*
* Please see the LICENSE file included in the top-level directory of the
* appropriate version of Oracle NoSQL Database for a copy of the license and
* additional information.
*/
package com.sleepycat.je.tree;
/**
* Error to indicate that a bottom level IN is not empty during a
* delete subtree operation.
*/
public class NodeNotEmptyException extends Exception {
private static final long serialVersionUID = 933349511L;
/*
* Throw this static instance, in order to reduce the cost of
* fill in the stack trace.
*/
public static final NodeNotEmptyException NODE_NOT_EMPTY =
new NodeNotEmptyException();
/* Make the constructor public for serializability testing. */
public NodeNotEmptyException() {
}
}
|
apache/commons-jcs | 1,042 | commons-jcs3-core/src/main/java/org/apache/commons/jcs3/auxiliary/disk/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
*
* 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.
*/
/**
* The primary disk auxiliary.
* <p>
* Objects are serialized to a file on disk. This implementation uses memory keys and performs quite well. Recommended for most cases.
* </p>
*/
package org.apache.commons.jcs3.auxiliary.disk;
|
apache/commons-jcs | 1,050 | commons-jcs3-core/src/main/java/org/apache/commons/jcs3/access/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
*
* 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.
*/
/**
* Contains classes for accessing the cache.
* <p>
* The CacheAccess interface, which all classes in this package implement, provides all the methods a client should need to use a Cache.
* </p>
*/
package org.apache.commons.jcs3.access;
|
apache/cxf | 1,024 | rt/rs/security/jose-parent/jose/src/main/java/org/apache/cxf/rs/security/jose/jwe/ContentEncryptionProvider.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.cxf.rs.security.jose.jwe;
public interface ContentEncryptionProvider extends ContentEncryptionCipherProperties {
byte[] getInitVector();
byte[] getContentEncryptionKey(JweHeaders headers);
}
|
apache/cxf | 1,036 | maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/wsdl2js/WsdlArtifact.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.cxf.maven_plugin.wsdl2js;
/**
* This exists to move this into the same package as the mojo.
*/
public class WsdlArtifact extends org.apache.cxf.maven_plugin.WsdlArtifact {
public WsdlArtifact() {
}
}
|
apache/cxf | 1,052 | systests/transports/src/test/java/org/apache/cxf/systest/http_jetty/Dummy.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.cxf.systest.http_jetty;
import jakarta.jws.WebMethod;
import jakarta.jws.WebService;
@WebService
public class Dummy implements DummyInterface {
@WebMethod
public String echo(String what) {
return what;
}
}
|
apache/deltaspike | 1,024 | deltaspike/core/impl/src/test/java/org/apache/deltaspike/test/core/impl/activation/ActivatedClass.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.deltaspike.test.core.impl.activation;
import org.apache.deltaspike.core.spi.activation.Deactivatable;
/**
* Class which isn't deactivated
*/
public class ActivatedClass implements Deactivatable
{
}
|
apache/directory-server | 1,039 | protocol-ntp/src/main/java/org/apache/directory/server/ntp/io/package-info.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
/**
* Provides the encoder and decoder for NTP message conversions.
*
* @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
*/
package org.apache.directory.server.ntp.io;
|
apache/druid | 1,037 | processing/src/main/java/org/apache/druid/math/expr/vector/UnivariateVectorProcessorFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES 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.math.expr.vector;
import org.apache.druid.math.expr.Expr;
interface UnivariateVectorProcessorFactory
{
<T> ExprVectorProcessor<T> asProcessor(Expr.VectorInputBindingInspector inspector, Expr arg);
}
|
apache/druid | 1,043 | processing/src/main/java/org/apache/druid/common/utils/CurrentTimeMillisSupplier.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES 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.common.utils;
import java.util.function.LongSupplier;
public class CurrentTimeMillisSupplier implements LongSupplier
{
@Override
public long getAsLong()
{
return System.currentTimeMillis();
}
}
|
apache/dubbo | 1,035 | dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/bootstrap/builders/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 bunch of builder classes to facilitate programming of raw API.
* TODO, these are experimental APIs and are possible to change at any time before marked as production.
*/
package org.apache.dubbo.config.bootstrap.builders;
|
apache/dubbo | 1,056 | dubbo-compatible/src/main/java/com/alibaba/dubbo/rpc/service/GenericService.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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.alibaba.dubbo.rpc.service;
@Deprecated
public interface GenericService extends org.apache.dubbo.rpc.service.GenericService {
@Override
Object $invoke(String method, String[] parameterTypes, Object[] args) throws GenericException;
}
|
apache/eagle | 1,032 | eagle-core/eagle-app/eagle-app-utils/src/main/java/org/apache/eagle/app/utils/ha/HAURLSelector.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.eagle.app.utils.ha;
import java.io.IOException;
public interface HAURLSelector {
boolean checkUrl(String url);
void reSelectUrl() throws IOException;
String getSelectedUrl();
}
|
apache/eventmesh | 1,032 | eventmesh-sdks/eventmesh-sdk-java/src/main/java/org/apache/eventmesh/client/selector/Selector.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.eventmesh.client.selector;
/**
* Selector is the abstract of selecting registry service instances
*/
public interface Selector {
ServiceInstance selectOne(String serverName) throws SelectorException;
}
|
apache/fluss | 1,049 | fluss-common/src/main/java/org/apache/fluss/exception/InvalidCoordinatorException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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 thrown when the coordinator is invalid. */
public class InvalidCoordinatorException extends ApiException {
public InvalidCoordinatorException(String message) {
super(message);
}
}
|
apache/geode | 1,065 | geode-core/src/main/java/org/apache/geode/ra/GFConnectionFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License. You may obtain a
* copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package org.apache.geode.ra;
import java.io.Serializable;
import javax.resource.Referenceable;
import javax.resource.ResourceException;
public interface GFConnectionFactory extends Referenceable, Serializable {
GFConnection getConnection() throws ResourceException;
}
|
apache/gobblin | 1,037 | gobblin-core/src/main/java/org/apache/gobblin/converter/avro/UnsupportedDateTypeException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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.converter.avro;
public class UnsupportedDateTypeException extends Exception {
private static final long serialVersionUID = 1L;
public UnsupportedDateTypeException(String arg0) {
super(arg0);
}
}
|
apache/gora | 1,069 | gora-dynamodb/src/test/java/org/apache/gora/dynamodb/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.
*/
/**
* Tests for <code>gora-dynamodb</code> including
* the test driver for {@link org.apache.gora.dynamodb.GoraDynamoDBTestDriver}
* and all the unit tests for basic CRUD operations functionality of the
* DynamoDB dataStore.
*/
package org.apache.gora.dynamodb; |
apache/hadoop-mapreduce | 1,035 | src/contrib/mumak/src/test/org/apache/hadoop/mapred/TestSimulatorSerialJobSubmission.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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.mapred;
public class TestSimulatorSerialJobSubmission extends TestSimulatorEndToEnd {
public TestSimulatorSerialJobSubmission() {
super();
policy = SimulatorJobSubmissionPolicy.SERIAL;
}
}
|
apache/hadoop-mapreduce | 1,035 | src/contrib/mumak/src/test/org/apache/hadoop/mapred/TestSimulatorStressJobSubmission.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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.mapred;
public class TestSimulatorStressJobSubmission extends TestSimulatorEndToEnd {
public TestSimulatorStressJobSubmission() {
super();
policy = SimulatorJobSubmissionPolicy.STRESS;
}
}
|
apache/hadoop | 1,029 | hadoop-tools/hadoop-rumen/src/main/java/org/apache/hadoop/tools/rumen/anonymization/DataAnonymizer.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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.tools.rumen.anonymization;
import org.apache.hadoop.tools.rumen.state.State;
/**
* The data anonymizer interface.
*/
public interface DataAnonymizer<T> {
T anonymize(T data, State state);
}
|
apache/hadoop | 1,049 | hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/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.
*/
/**
* DistCp is a tool for replicating data using MapReduce jobs for concurrent
* copy operations.
*
* @version 2
*/
@InterfaceAudience.Public
package org.apache.hadoop.tools;
import org.apache.hadoop.classification.InterfaceAudience;
|
apache/harmony | 1,060 | classlib/modules/beans/src/main/java/java/beans/AppletInitializer.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package java.beans;
import java.applet.Applet;
import java.beans.beancontext.BeanContext;
public interface AppletInitializer {
public void initialize(Applet newAppletBean, BeanContext bCtxt);
public void activate(Applet newApplet);
}
|
apache/harmony | 1,079 | drlvm/vm/tests/kernel/java/lang/pkg3/Pkg3Antn.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @author Alexey V. Varlamov
*/
package java.lang.pkg3;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@Inherited
@Retention(RetentionPolicy.RUNTIME)
public @interface Pkg3Antn {}
|
apache/hbase | 1,041 | hbase-annotations/src/test/java/org/apache/hadoop/hbase/testclassification/RSGroupTests.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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.testclassification;
/**
* Tag the tests related to rs group feature.
*/
public interface RSGroupTests {
public static final String TAG = "org.apache.hadoop.hbase.testclassification.RSGroupTests";
}
|
apache/hop | 1,074 | rcp/src/main/java/org/apache/hop/ui/hopgui/HopGuiImpl.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hop.ui.hopgui;
public class HopGuiImpl implements ISingletonProvider {
private static HopGui instance;
@Override
public Object getInstanceInternal() {
if (instance == null) {
instance = new HopGui();
}
return instance;
}
}
|
apache/hudi | 1,055 | hudi-hadoop-mr/src/main/java/org/apache/hudi/hadoop/utils/shims/HiveShims.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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.hadoop.utils.shims;
/**
* Factory clazz for {@link HiveShim}.
*/
public class HiveShims {
public static HiveShim getInstance(boolean hive3) {
return hive3 ? Hive3Shim.getInstance() : Hive2Shim.getInstance();
}
}
|
apache/incubator-atlas | 1,030 | graphdb/titan0/src/main/java/com/thinkaurelius/titan/diskstorage/hbase/ConnectionMask.java | /*
* Copyright 2012-2013 Aurelius 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.thinkaurelius.titan.diskstorage.hbase;
import java.io.Closeable;
import java.io.IOException;
/**
* This interface hides ABI/API breaking changes that HBase has made to its (H)Connection class over the course
* of development from 0.94 to 1.0 and beyond.
*/
public interface ConnectionMask extends Closeable
{
TableMask getTable(String name) throws IOException;
AdminMask getAdmin() throws IOException;
}
|
apache/incubator-seata | 1,041 | core/src/main/java/org/apache/seata/core/store/db/sql/lock/OscarLockStoreSql.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.seata.core.store.db.sql.lock;
import org.apache.seata.common.loader.LoadLevel;
/**
* the database lock store shentong sql
*
*/
@LoadLevel(name = "oscar")
public class OscarLockStoreSql extends OracleLockStoreSql {}
|
apache/incubator-seata | 1,050 | core/src/test/java/org/apache/seata/core/rpc/netty/NettyClientTestSuite.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.seata.core.rpc.netty;
import org.junit.platform.suite.api.SelectClasses;
import org.junit.platform.suite.api.Suite;
@Suite
@SelectClasses({TmNettyClientTest.class, RmNettyClientTest.class})
public class NettyClientTestSuite {}
|
apache/iotdb | 1,040 | iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/event/ReferenceTrackableEvent.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.iotdb.db.pipe.event;
import org.apache.iotdb.commons.pipe.resource.ref.PipePhantomReferenceManager.PipeEventResource;
public interface ReferenceTrackableEvent {
PipeEventResource eventResourceBuilder();
}
|
apache/jclouds | 1,065 | apis/oauth/src/main/java/org/jclouds/oauth/v2/filters/OAuthFilter.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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.jclouds.oauth.v2.filters;
import org.jclouds.http.HttpRequestFilter;
/** Indicates use of auth mechanism according to {@link org.jclouds.oauth.v2.config.OAuthProperties#CREDENTIAL_TYPE). */
public interface OAuthFilter extends HttpRequestFilter {
}
|
apache/jena | 1,054 | jena-core/src/test/java/org/apache/jena/ttl_test/test/turtle/TS_TestTurtle.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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.jena.ttl_test.test.turtle;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
@RunWith(Suite.class)
@Suite.SuiteClasses({
TestTurtleReader.class,
TestTurtleInternal.class,
})
public class TS_TestTurtle {} |
apache/kafka | 1,049 | clients/src/main/java/org/apache/kafka/clients/admin/DeleteConsumerGroupsOptions.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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.kafka.clients.admin;
import java.util.Collection;
/**
* Options for the {@link Admin#deleteConsumerGroups(Collection)} call.
*/
public class DeleteConsumerGroupsOptions extends AbstractOptions<DeleteConsumerGroupsOptions> {
}
|
apache/kafka | 1,051 | clients/src/test/java/org/apache/kafka/common/utils/LoggingSignalHandlerTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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.kafka.common.utils;
import org.junit.jupiter.api.Test;
public class LoggingSignalHandlerTest {
@Test
public void testRegister() throws ReflectiveOperationException {
new LoggingSignalHandler().register();
}
}
|
apache/kylin | 1,042 | src/modeling-service/src/main/java/org/apache/kylin/rest/request/CheckSegmentRequest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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.kylin.rest.request;
import java.io.Serializable;
import lombok.Data;
@Data
public class CheckSegmentRequest implements Serializable {
private String project;
private String start;
private String end;
}
|
apache/logging-log4j2 | 1,041 | log4j-core-test/src/main/java/org/apache/logging/log4j/core/test/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.
*/
@Export
@Version("2.25.0")
@BaselineIgnore("2.25.0")
package org.apache.logging.log4j.core.test;
import aQute.bnd.annotation.baseline.BaselineIgnore;
import org.osgi.annotation.bundle.Export;
import org.osgi.annotation.versioning.Version;
|
apache/lucene | 1,057 | lucene/test-framework/src/java/org/apache/lucene/tests/store/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.
*/
/**
* Support for testing store mechanisms.
*
* <p>The primary class is {@link org.apache.lucene.tests.store.MockDirectoryWrapper}, which wraps
* any Directory implementation and provides additional checks.
*/
package org.apache.lucene.tests.store;
|
apache/lucene | 1,072 | lucene/core/src/java/org/apache/lucene/store/FileDataHint.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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.lucene.store;
/** Hints on the type of data stored in the file */
public enum FileDataHint implements IOContext.FileOpenHint {
/** The file contains postings data */
POSTINGS,
/** The file contains vector data for kNN search */
KNN_VECTORS
}
|
apache/maven-indexer | 1,050 | indexer-core/src/main/java/org/apache/maven/index/CleaningEncoder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES 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.maven.index;
import org.apache.lucene.search.highlight.Encoder;
public class CleaningEncoder implements Encoder {
public String encodeText(String originalText) {
return originalText.replace("\n", "");
}
}
|
apache/maven-resolver | 1,035 | maven-resolver-spi/src/main/java/org/eclipse/aether/spi/connector/checksum/package-info.java | // CHECKSTYLE_OFF: RegexpHeader
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
* The support infrastructure for repository connectors to apply checksum policies when validating the integrity of
* downloaded files.
*/
package org.eclipse.aether.spi.connector.checksum;
|
apache/myfaces | 1,045 | impl/src/main/java/org/apache/myfaces/config/element/facelets/FaceletHandlerTag.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES 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.myfaces.config.element.facelets;
import java.io.Serializable;
/**
*
*/
public abstract class FaceletHandlerTag extends FaceletTagDefinition implements Serializable
{
public abstract String getHandlerClass();
}
|
apache/nifi | 1,038 | nifi-toolkit/nifi-toolkit-client/src/main/java/org/apache/nifi/toolkit/client/CountersClient.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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.nifi.toolkit.client;
import org.apache.nifi.web.api.entity.CountersEntity;
import java.io.IOException;
public interface CountersClient {
CountersEntity getCounters() throws NiFiClientException, IOException;
}
|
apache/olingo-odata4 | 1,059 | fit/src/test/java/org/apache/olingo/fit/tecsvc/TecSvcConst.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.olingo.fit.tecsvc;
public class TecSvcConst {
public final static String BASE_URI = "http://localhost:9080/odata-server-tecsvc/odata.svc";
public final static String AUTH_URI = "http://localhost:9080/odata-server-tecsvc/auth";
}
|
apache/openwebbeans | 1,031 | webbeans-impl/src/test/java/org/apache/webbeans/test/unittests/annotation/AnnotatedClass.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.webbeans.test.unittests.annotation;
import org.apache.webbeans.test.annotation.binding.AnnotationWithBindingMember;
@AnnotationWithBindingMember(value = "Gurkan", number = 5)
public class AnnotatedClass
{
}
|
apache/orc | 1,073 | java/core/src/java/org/apache/orc/impl/MemoryManager.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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.orc.impl;
import org.apache.hadoop.conf.Configuration;
/**
* Shim for backwards compatibility with Hive
*/
@Deprecated
public class MemoryManager extends MemoryManagerImpl {
public MemoryManager(Configuration conf) {
super(conf);
}
}
|
apache/ozone | 1,040 | hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/server/events/EventPublisher.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hadoop.hdds.server.events;
/**
* Client interface to send a new event.
*/
public interface EventPublisher {
<PAYLOAD, EVENT_TYPE extends Event<PAYLOAD>> void
fireEvent(EVENT_TYPE event, PAYLOAD payload);
}
|
apache/paimon | 1,025 | paimon-hive/paimon-hive-connector-common/src/main/java/org/apache/flink/table/store/hive/TableStoreSerDe.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.flink.table.store.hive;
import org.apache.paimon.hive.PaimonSerDe;
/** A {@link PaimonSerDe} to be compatible to table store 0.3. */
@Deprecated
public class TableStoreSerDe extends PaimonSerDe {}
|
apache/plc4x | 1,043 | plc4j/api/src/main/java/org/apache/plc4x/java/api/listener/MessageExchangeListener.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.plc4x.java.api.listener;
/**
* Additional helper to propagate events.
*/
public interface MessageExchangeListener extends EventListener {
void received(Object message);
void sending(Object message);
}
|
apache/plc4x | 1,056 | plc4j/api/src/main/java/org/apache/plc4x/java/api/messages/PlcResponse.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.plc4x.java.api.messages;
/**
* Base type for all response messages sent as response for a prior request
* from a plc to the plc4x system.
*/
public interface PlcResponse extends PlcMessage {
PlcRequest getRequest();
}
|
apache/polygene-java | 1,035 | manual/src/main/java/org/apache/polygene/manual/recipes/createEntity/CarEntityFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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.polygene.manual.recipes.createEntity;
// START SNIPPET: carFactory
public interface CarEntityFactory
{
Car create(Manufacturer manufacturer, String model);
}
// END SNIPPET: carFactory |
apache/polygene-java | 1,038 | extensions/reindexer/src/main/java/org/apache/polygene/index/reindexer/Reindexer.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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.polygene.index.reindexer;
/**
* Service to re-index all visible EntityStores against all visible StateChangeListeners (i.e. Indexers).
*/
public interface Reindexer
{
void reindex();
}
|
apache/qpid-broker-j | 1,031 | systests/protocol-tests-core/src/main/java/org/apache/qpid/tests/protocol/InputDecoder.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.qpid.tests.protocol;
import java.nio.ByteBuffer;
import java.util.Collection;
public interface InputDecoder
{
Collection<Response<?>> decode(final ByteBuffer inputBuffer) throws Exception;
}
|
apache/qpid-broker-j | 1,036 | broker-core/src/main/java/org/apache/qpid/server/txn/RollbackOnlyDtxException.java | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.qpid.server.txn;
public class RollbackOnlyDtxException extends DtxException
{
public RollbackOnlyDtxException(Xid id)
{
super("Transaction " + id + " may only be rolled back");
}
}
|
apache/ratis | 1,054 | ratis-test/src/test/java/org/apache/ratis/grpc/TestServerPauseResumeWithGrpc.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.ratis.grpc;
import org.apache.ratis.server.impl.ServerPauseResumeTest;
public class TestServerPauseResumeWithGrpc
extends ServerPauseResumeTest<MiniRaftClusterWithGrpc>
implements MiniRaftClusterWithGrpc.FactoryGet {
} |
apache/rocketmq | 1,043 | controller/src/main/java/org/apache/rocketmq/controller/helper/BrokerLiveInfoGetter.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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.rocketmq.controller.helper;
import org.apache.rocketmq.controller.impl.heartbeat.BrokerLiveInfo;
public interface BrokerLiveInfoGetter {
BrokerLiveInfo get(String clusterName, String brokerName, Long brokerId);
}
|
apache/rocketmq | 1,053 | test/src/main/java/org/apache/rocketmq/test/util/parallel/Task4Test.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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.rocketmq.test.util.parallel;
public class Task4Test extends ParallelTask {
private String name = "";
public Task4Test(String name) {
this.name = name;
}
@Override
public void execute() {
}
}
|
apache/samza | 1,052 | samza-test/src/test/java/org/apache/samza/processor/TestStreamProcessorUtil.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.samza.processor;
import org.apache.samza.container.SamzaContainer;
public class TestStreamProcessorUtil {
public static SamzaContainer getContainer(StreamProcessor processor) {
return processor.getContainer();
}
}
|
apache/solr | 1,055 | solr/api/src/java/org/apache/solr/client/api/model/ListConfigsetsResponse.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.solr.client.api.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
public class ListConfigsetsResponse extends SolrJerseyResponse {
@JsonProperty("configSets")
public List<String> configSets;
}
|
apache/storm | 1,066 | storm-client/src/jvm/org/apache/storm/blobstore/InputStreamWithMeta.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version
* 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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.blobstore;
import java.io.IOException;
import java.io.InputStream;
public abstract class InputStreamWithMeta extends InputStream {
public abstract long getVersion() throws IOException;
public abstract long getFileLength() throws IOException;
}
|
apache/synapse | 1,065 | modules/core/src/main/java/org/apache/synapse/rest/Handler.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* * "AS IS" BASIS, WITHOUT WARRANTIES 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.synapse.rest;
import org.apache.synapse.MessageContext;
public interface Handler {
public boolean handleRequest(MessageContext messageContext);
public boolean handleResponse(MessageContext messageContext);
}
|
apache/tapestry-5 | 1,043 | tapestry-core/src/main/java/org/apache/tapestry5/services/ComponentTemplates.java | // Copyright 2008 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package org.apache.tapestry5.services;
import java.lang.annotation.*;
/**
* Marker annotation used to inject the correct {@link org.apache.tapestry5.commons.services.InvalidationEventHub} service
* responsible for validations when component template files change.
*
* @since 5.1.0.0
*/
@Target({ElementType.PARAMETER, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface ComponentTemplates
{
}
|
apache/tapestry-5 | 1,057 | tapestry-core/src/main/java/org/apache/tapestry5/services/Ajax.java | // Copyright 2007, 2008, 2010 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package org.apache.tapestry5.services;
import java.lang.annotation.*;
/**
* Marker annotation for services related to processing an Ajax request (rather than a {@linkplain
* org.apache.tapestry5.services.Traditional traditional request}).
*
* @see ComponentEventRequestHandler
*/
@Target({ ElementType.PARAMETER, ElementType.FIELD, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Ajax
{
}
|
apache/tinkerpop | 1,024 | gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphson/GraphSONResourceAccess.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES 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.tinkerpop.gremlin.structure.io.graphson;
/**
* Provides path access to test data resources.
*
* @author Marko A. Rodriguez (http://markorodriguez.com)
*/
public class GraphSONResourceAccess {
}
|
apache/tomcat80 | 1,082 | java/org/apache/tomcat/jni/PoolCallback.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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.tomcat.jni;
/** PoolCallback Interface
*
* @author Mladen Turk
*/
public interface PoolCallback {
/**
* Called when the pool is destroyed or cleared
* @return Function must return APR_SUCCESS
*/
public int callback();
}
|
apache/tomee | 1,038 | itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateful/BeanTxStatefulHome.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.openejb.test.stateful;
public interface BeanTxStatefulHome extends jakarta.ejb.EJBHome {
public BeanTxStatefulObject create(String name)
throws jakarta.ejb.CreateException, java.rmi.RemoteException;
}
|
apache/tomee | 1,048 | examples/helloworld-weblogic/src/main/java/org/superbiz/hello/HelloEjbLocalHome.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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.hello;
import jakarta.ejb.CreateException;
import jakarta.ejb.EJBLocalHome;
/**
* @version $Revision$ $Date$
*/
public interface HelloEjbLocalHome extends EJBLocalHome {
HelloEjbLocal create() throws CreateException;
}
|
apache/tsfile | 1,042 | java/tsfile/src/main/java/org/apache/tsfile/file/metadata/statistics/DateStatistics.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES 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.tsfile.file.metadata.statistics;
import org.apache.tsfile.enums.TSDataType;
public class DateStatistics extends IntegerStatistics {
@Override
public TSDataType getType() {
return TSDataType.DATE;
}
}
|
apache/uniffle | 1,054 | common/src/main/java/org/apache/uniffle/common/merger/MergeState.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.uniffle.common.merger;
public enum MergeState {
DONE(0),
INITED(1),
MERGING(2),
INTERNAL_ERROR(3);
private final int code;
MergeState(int code) {
this.code = code;
}
public int code() {
return code;
}
}
|
apache/unomi | 1,043 | tools/shell-commands/src/main/java/org/apache/unomi/shell/migration/MigrationException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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.unomi.shell.migration;
/**
* Simple exception to handle errors in migration
*/
public class MigrationException extends RuntimeException {
public MigrationException(String message) {
super(message);
}
}
|
apache/wicket | 1,024 | wicket-core-tests/src/test/java/org/apache/wicket/markup/html/autocomponent/AutoComponentsBorder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.wicket.markup.html.autocomponent;
import org.apache.wicket.markup.html.border.Border;
public class AutoComponentsBorder extends Border
{
public AutoComponentsBorder(String id)
{
super(id);
}
}
|
apache/xmlgraphics-batik | 1,047 | batik-util/src/test/java/org/apache/batik/util/UtilitiesTestSuite.java | /*
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES 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.batik.util;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
@RunWith(Suite.class)
@SuiteClasses({
Base64TestCases.class
})
public class UtilitiesTestSuite {
}
|
apache/zookeeper | 1,042 | zookeeper-it/src/main/java/org/apache/zookeeper/test/system/NoAvailableContainers.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.zookeeper.test.system;
public class NoAvailableContainers extends Exception {
public NoAvailableContainers(String string) {
super(string);
}
private static final long serialVersionUID = 1L;
}
|
google/auto | 1,046 | factory/src/test/resources/expected/NestedClasses_SimpleNestedClassFactory.java | /*
* Copyright 2013 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 NestedClasses_SimpleNestedClassFactory {
@Inject
NestedClasses_SimpleNestedClassFactory() {}
NestedClasses.SimpleNestedClass create() {
return new NestedClasses.SimpleNestedClass();
}
}
|
google/auto | 1,059 | factory/src/test/resources/expected/SimpleClassThrowsFactory.java | /*
* Copyright 2020 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 java.io.IOException;
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 SimpleClassThrowsFactory {
@Inject
SimpleClassThrowsFactory() {}
SimpleClassThrows create() throws IOException, InterruptedException {
return new SimpleClassThrows();
}
}
|
google/closure-compiler | 1,051 | src/com/google/javascript/jscomp/parsing/parser/trees/BlockTree.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.common.collect.ImmutableList;
import com.google.javascript.jscomp.parsing.parser.util.SourceRange;
public class BlockTree extends ParseTree {
public final ImmutableList<ParseTree> statements;
public BlockTree(SourceRange location, ImmutableList<ParseTree> statements) {
super(ParseTreeType.BLOCK, location);
this.statements = statements;
}
}
|
google/depan | 1,029 | DepanFileSystem/prod/src/com/google/devtools/depan/filesystem/builder/FileSystemTreeBuilder.java | // Copyright 2010 The Depan Project Authors
package com.google.devtools.depan.filesystem.builder;
import com.google.devtools.depan.model.GraphNode;
import com.google.devtools.depan.model.builder.chain.DependenciesListener;
/**
* Install the {@link GraphNode}s obtained from hierarchical {@link PathInfo}
* instance into the dependency model.
*
* @author <a href="leeca@google.com">Lee Carver</a>
*/
public class FileSystemTreeBuilder extends TreeBuilder {
private final DependenciesListener builder;
public FileSystemTreeBuilder(DependenciesListener builder) {
super();
this.builder = builder;
}
@Override
protected void insertEdge(
GraphNode parentNode, GraphNode childNode, PathInfo childInfo) {
builder.newDep(parentNode, childNode, childInfo.getToRelation());
}
@Override
protected GraphNode lookupNode(PathInfo path) {
GraphNode node = path.createNode();
GraphNode found = builder.newNode(node);
if (node != found) {
return found;
}
return null;
}
}
|
google/flogger | 1,057 | api/src/test/java/com/google/common/flogger/LoggingScopeTest.java | /*
* Copyright (C) 2020 The Flogger Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.common.flogger;
import static com.google.common.truth.Truth.assertThat;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
@RunWith(JUnit4.class)
public class LoggingScopeTest {
@Test
public void testDifferentLabelsAreDistinctScopes() {
// Using the same label doesn't make scopes equivalent.
assertThat(LoggingScope.create("foo")).isNotEqualTo(LoggingScope.create("foo"));
}
}
|
google/gdata-java-client | 1,057 | java/src/com/google/gdata/data/docs/RevisionFeed.java | /* Copyright (c) 2008 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.gdata.data.docs;
import com.google.gdata.data.BaseFeed;
import com.google.gdata.data.Kind;
/**
* A feed for accessing different revisions of a doclist document.
*
*
*/
@Kind.Term(RevisionEntry.KIND)
public class RevisionFeed
extends BaseFeed<RevisionFeed, RevisionEntry> {
/**
* Contructs an empty feed.
*/
public RevisionFeed() {
super(RevisionEntry.class);
getCategories().add(RevisionEntry.CATEGORY);
}
}
|
google/guice | 1,075 | core/test/com/google/inject/util/NoopOverrideTest.java | /*
* Copyright (C) 2008 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.inject.util;
import com.google.inject.Module;
import com.google.inject.spi.ElementVisitor;
import com.google.inject.spi.ElementsTest;
/** @author jessewilson@google.com (Jesse Wilson) */
public class NoopOverrideTest extends ElementsTest {
@Override
protected void checkModule(Module module, ElementVisitor<?>... visitors) {
Module overridden = Modules.override(module).with(Modules.EMPTY_MODULE);
super.checkModule(overridden, visitors);
}
}
|
google/nomulus | 1,066 | util/src/main/java/google/registry/util/DateTimeTypeAdapter.java | // Copyright 2023 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.util;
import java.io.IOException;
import org.joda.time.DateTime;
import org.joda.time.format.ISODateTimeFormat;
/** GSON type adapter for Joda {@link DateTime} objects. */
public class DateTimeTypeAdapter extends StringBaseTypeAdapter<DateTime> {
@Override
protected DateTime fromString(String stringValue) throws IOException {
return ISODateTimeFormat.dateTime().withZoneUTC().parseDateTime(stringValue);
}
}
|
google/thread-weaver | 1,057 | test/com/google/testing/threadtester/SimpleSubSubclass.java | /*
* Copyright 2009 Weaver 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.testing.threadtester;
/**
* Subclass of SimpleSubClass. Used to test Breakpoints and CodePositions in
* subclasses.
*
* @author alasdair.mackintosh@gmail.com (Alasdair Mackintosh)
*/
public class SimpleSubSubclass extends SimpleSubclass {
volatile int subSubPosition;
@Override
public int add(Integer a, Integer b) {
subSubPosition = 1;
int result = super.add(a, b);
subSubPosition = 2;
return result;
}
}
|
openjdk/jdk8 | 1,041 | jaxp/src/com/sun/org/apache/xalan/internal/xsltc/cmdline/getopt/GetOptsException.java | /*
* reserved comment block
* DO NOT REMOVE OR ALTER!
*/
/*
* Copyright 2001-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.
*/
/*
* $Id: GetOptsException.java,v 1.2.4.1 2005/08/31 11:47:06 pvedula Exp $
*/
package com.sun.org.apache.xalan.internal.xsltc.cmdline.getopt;
/**
* @author G Todd Miller
*/
public class GetOptsException extends Exception{
static final long serialVersionUID = 8736874967183039804L;
public GetOptsException(String msg){
super(msg);
}
}
|
oracle/coherence | 1,024 | prj/coherence-core/src/main/java/com/tangosol/internal/net/security/StandardDependencies.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.internal.net.security;
import com.tangosol.net.security.AccessController;
import javax.security.auth.callback.CallbackHandler;
/**
* The StandardDependencies interface provides a Standard security object
* with external dependencies.
*
* @author der 2011.12.01
* @since Coherence 12.1.2
*/
public interface StandardDependencies
extends SecurityDependencies
{
/**
* Return the AccessController.
*
* @return the AccessController
*/
public AccessController getAccessController();
/**
* Return the default CallbackHandler.
*
* @return the default CallbackHandler
*/
public CallbackHandler getCallbackHandler();
/**
* Return the login module name.
*
* @return login module name
*/
public String getLoginModuleName();
}
|
oracle/coherence | 1,037 | prj/coherence-core/src/main/java/com/tangosol/net/security/IdentityTransformer.java | /*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
package com.tangosol.net.security;
import com.tangosol.net.Service;
import javax.security.auth.Subject;
/**
* IdentityTransformer transforms a Subject to a token that asserts identity.
*
* @author dag 2009.12.04
*
* @since Coherence 3.6
*/
public interface IdentityTransformer
{
/**
* Transform a Subject to a token that asserts an identity.
*
* @param subject the Subject representing a user.
* @param service the Service requesting an identity token
*
* @return the token that asserts identity.
*
* @throws SecurityException if the identity transformation fails.
*
* @since Coherence 3.7 added service param which intentionally breaks
* compatibility with Coherence 3.6
*/
public Object transformIdentity(Subject subject, Service service)
throws SecurityException;
}
|
oracle/nosql | 1,079 | kvmain/src/main/java/oracle/kv/table/JsonDef.java | /*-
* Copyright (C) 2011, 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 oracle.kv.table;
import java.util.Map;
/**
* JsonDef is an extension of {@link FieldDef} to define schemaless data modeled
* as JSON. A field defined as JsonDef can contain MapOfAnyValue, ArrayOfAnyValue,
* or any of the atomic types.
*
* @since 3.0
*/
public interface JsonDef extends FieldDef {
/**
* Return a set of all Json fields that are MR_Counter.
* @return a set of all Json fields that are MR_Counter
* or null if there is no MR_Counter field.
* @since 22.1
*/
default Map<String, Type> allMRCounterFields() {
return null;
}
}
|
apache/commons-imaging | 1,054 | src/main/java/org/apache/commons/imaging/ImagingOverflowException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.commons.imaging;
public class ImagingOverflowException extends ImagingException {
private static final long serialVersionUID = 1L;
public ImagingOverflowException(final String message) {
super(message);
}
}
|
apache/cxf | 1,033 | rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/resources/UriBuilderWrongAnnotations.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.cxf.jaxrs.resources;
import jakarta.ws.rs.Path;
public class UriBuilderWrongAnnotations {
@Path("/foo")
public void overloaded(int x) {
}
@Path("/bar")
public void overloaded() {
}
}
|
apache/cxf | 1,044 | tools/validator/src/main/java/org/apache/cxf/tools/validator/internal/model/XBinding.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.cxf.tools.validator.internal.model;
import org.apache.cxf.wsdl.WSDLConstants;
public final class XBinding extends XWsdl {
public XBinding() {
super();
setQName(WSDLConstants.QNAME_BINDING);
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.