text
stringlengths
7
1.01M
/** * 查询模型 + 查询数据库操作工具 + 查询对象与界面呈现对象的转换映射 */ package com.snszyk.iiot.marketization.base.presentation.model;
package com.surgical.decision3; import org.junit.Test; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ public class ExampleUnitTest { @Test public void...
public class Glass { private float maxGallons, currentGallons; public Glass(float maxGallons) { this.maxGallons = maxGallons; } public void addWater(float gallonsToAdd) throws GlassOverflownException { float potentialWaterLevel = currentGallons+gallonsToAdd; if (potentialWaterL...
/* * Copyright 2016 "Henry Tao <hi@henrytao.me>" * * 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 ...
package com.benwunet.msg.section.chat.activity; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.text.TextUtils; import android.view.View; import androidx.lifecycle.ViewModelProvider; import com.benwunet.msg.common.constant.DemoConstant; import com.benwunet.msg....
/** * Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.integration.tool.portfolio; import org.apache.commons.cli.Option; import org.apache.commons.cli.Options; import com.opengamma.component.tool.AbstractTool; imp...
package uk.ac.soton.ecs.comp6237.utils.annotations; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Annotation describing a runtime jvm parameters required for running a demo or * lecture. * * @...
// Built from tag arkiv package no.fint.model.kultur.kulturminnevern; import lombok.Data; import lombok.NoArgsConstructor; import lombok.EqualsAndHashCode; import lombok.ToString; import java.util.List; import javax.validation.Valid; import javax.validation.constraints.*; import no.fint.model.FintMainObject; import n...
package app.domain.model; import app.domain.model.performance.PerformanceData; import junit.framework.TestCase; import org.junit.Assert; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; public class PerformanceDataTest extends TestCase { DateTimeFormatter formatter = DateTimeFormatter....
/* * The MIT License * * Copyright: Copyright (C) 2014 T2Ti.COM * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy...
/* * Copyright (c) 2015 mgm technology partners GmbH * * 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 applica...
package com.helospark.lightdi.it.testcontext1; import com.helospark.lightdi.annotation.Component; import com.helospark.lightdi.annotation.Value; @Component public class RequiredFalseValueMissing { @Value(value = "${NON_EXISTENT}", required = false) private String value; public String getValue() { ...
/** * Generated from platform:/resource/mdk.querygenerator/src/gov/nasa/jpl/mbee/mdk/queries/TestQueries.vql */ package gov.nasa.jpl.mbee.mdk.queries.util; import com.nomagic.uml2.ext.magicdraw.mdprofiles.Stereotype; import gov.nasa.jpl.mbee.mdk.queries.UnreferredStereotypesMatch; import org.eclipse.viatra.query.run...
/* * Copyright 2008 The Kuali Foundation * * Licensed under the Educational Community License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/licenses/ecl2.php * * Unless require...
package com.github.freshchen.keeping.keeping.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * @author freshchen * 分治,递归 */ @Retention(RetentionPolicy.SOURCE) @Target({ElementType.FIELD,...
package me.ANONIMUS.proxy.handler.impl; import lombok.SneakyThrows; import me.ANONIMUS.proxy.BetterProxy; import me.ANONIMUS.proxy.handler.ServerHandler; import me.ANONIMUS.proxy.objects.Command; import me.ANONIMUS.proxy.protocol.ProtocolType; import me.ANONIMUS.proxy.protocol.data.ItemStack; import me.ANONIMUS.proxy....
/** * Copyright (C) 2011-2020 Red Hat, Inc. (https://github.com/Commonjava/indy) * * 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 ...
package com.alpha.consumer.remote; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.stereotype.Component; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; /** * Created by jiming.jing on 2020/5/15. */ @Compo...
package tablewindow; import java.io.File; import java.net.URL; import java.util.List; import java.util.ResourceBundle; import application.Main; import javafx.event.ActionEvent; import javafx.fxml.FXML; import javafx.fxml.Initializable; import javafx.scene.control.Alert; import javafx.scene.control.Alert.AlertType; im...
package org.milleni.dunning.ws.client.crm; import javax.xml.ws.WebFault; /** * This class was generated by the JAX-WS RI. * JAX-WS RI 2.1.6 in JDK 6 * Generated source version: 2.1 * */ @WebFault(name = "BusinessFault", targetNamespace = "http://milleni.com/technical/Fault") public class Customer...
/* * Copyright 2002-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
package net.rubyeye.xmemcached.transcoders; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.UnsupportedEncodingException; import java.util.zip.DeflaterOutputStream; import java.uti...
public class Test1 { public static int add(int a, int b) { return a + b; } public static void main() { int c; int a = 5; c = add(a, 10); if (c > 10) print("c = " + -c); else print(c); print("Hello World"); ...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
/* * Copyright (C) 2015 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.strata.collect.named; /** * Mock named object. */ public interface SampleInvalid5 extends Named { }
package org.jabref.gui.entryeditor; import java.util.List; import java.util.Map; import org.jabref.Globals; import org.jabref.gui.keyboard.KeyBindingRepository; import org.jabref.logic.bibtex.LatexFieldFormatterPreferences; import org.jabref.logic.bibtexkeypattern.BibtexKeyPatternPreferences; import org.jabref.logic....
package org.netlib.lapack; import org.netlib.util.floatW; import org.netlib.util.intW; public final class Slamc5 { public static void slamc5(int paramInt1, int paramInt2, int paramInt3, boolean paramBoolean, intW paramintW, floatW paramfloatW) { int i = 0; int j = 0; int k = 0; int m = 0; int ...
package com.blossomproject.core.common.utils.specification; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import java.util.regex.Pattern; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.junit.MockitoJUnitRunner;; @RunWith(MockitoJUnitRunner.class) p...
package es.codeurjc.arpj.r2dbc; import com.github.javafaker.Faker; import es.codeurjc.arpj.r2dbc.infrastructure.http.AstronautHttpRequest; import es.codeurjc.arpj.r2dbc.shared.domain.Gender; import es.codeurjc.arpj.r2dbc.shared.domain.Status; import lombok.experimental.UtilityClass; import java.util.Random; @Utility...
package com.ruoyi.common.exception.user; import com.ruoyi.common.exception.base.BaseException; /** * 用户信息异常类 * * @author ruoyi */ public class UserException extends BaseException { private static final long serialVersionUID = 1L; public UserException(String code, Object[] args) { ...
// // JODConverter - Java OpenDocument Converter // Copyright 2004-2012 Mirko Nasato and contributors // // JODConverter is Open Source software, you can redistribute it and/or // modify it under either (at your option) of the following licenses // // 1. The GNU Lesser General Public License v3 (or later) // -> http...
package net.chocomint.more_ores.sound; import net.chocomint.more_ores.More_Ores; import net.minecraft.sound.SoundEvent; import net.minecraft.util.Identifier; import net.minecraft.util.registry.Registry; public class ModSounds { public static SoundEvent LEMON = registerSoundEvent("lemon"); private static SoundEven...
public class BlockOldLog$1 { // Failed to decompile, took too long to decompile: net/minecraft/block/BlockOldLog$1 }
package com.napier.group20.places; import org.junit.jupiter.api.Test; import java.util.ArrayList; import static org.junit.jupiter.api.Assertions.assertEquals; class RegionTest { @Test void getName() { //Arrange Region region = new Region("Region", null); //Assert assertEqua...
package com.linkedpipes.lpa.backend.entities; public class DiscoveryDeleted { public String discoveryId, socketId; }
package gui; import gui.menubars.CustomerFrameMenuBar; import gui.tablemodels.UserTableModel; import gui.toolbars.CustomerToolBarBottom; import gui.toolbars.CustomerToolBarTop; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.Font; import java...
package com.kerk12.smartcityassistant; import java.util.ArrayList; import java.util.List; /** * Class used for managing the order. Used in EOrder. */ public class Order { private static List<Dish> basket = new ArrayList<Dish>(); public enum PaymentMethod{CREDIT_CARD,CASH} private PaymentMethod paymentM...
package com.cerner.ccl.cdoc.mojo; import static org.fest.assertions.Assertions.assertThat; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import static org.powermock.api.mockito.PowerMockito.mockStatic; import static org.powermock.api.mockito.P...
package com.service.order; import com.dao.impl.OrderDaoImpl; import com.hibernate.order.OrderTableEntity; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; /** * Order类 订单类 * 方法: */ public class Order extends OrderTableEnt...
/******************************************************************************* * Copyright (c) 2015 CableLabs Inc. and others. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution, and is avai...
/** * Copyright Pravega 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...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
package com.tinkerpop.gremlin.process.graph.step.map; import com.tinkerpop.gremlin.process.Traversal; import com.tinkerpop.gremlin.process.util.SingleIterator; import java.util.Iterator; import java.util.Map; /** * @author Marko A. Rodriguez (http://markorodriguez.com) */ public final class UnfoldStep<S, E> extend...
package io.netifi.proteus.example.service.protobuf; @javax.annotation.Generated( value = "by Proteus proto compiler (version 0.4.2)", comments = "Source: io/netifi/proteus/example/service/protobuf/EmployeeService.proto") public final class EmployeeServiceClient implements EmployeeService { private final io.r...
/* * Licensed to the Orchsym Runtime under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * this file to You under the Orchsym License, Version 1.0 (the "License"); * you may not use this file except in com...
package com.cnews.guji.smart.ui.activity; import android.content.Intent; import android.os.Bundle; import android.widget.TextView; import com.cnews.guji.smart.R; import com.cnews.guji.smart.base.BaseActivity; import com.cnews.guji.smart.util.AppCommonUtils; import butterknife.BindView; import butterknife.OnClick; /...
package com.oldturok.turok.util; import java.awt.Color; public class TurokColor extends Color { public TurokColor(int r, int g, int b) { super(r, g, b); } public int hex() { return convert_to_hex(this.getRed(), this.getGreen(), this.getBlue()); } public static int convert_to_hex(int r, in...
package com.sonic.controller.services.impl; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.sonic.common.http.RespEnum; import com.sonic.common.http.RespModel; import com.sonic.controller.dao.AgentsRepository; import com.sonic.controller.dao.GlobalParamsRepository; imp...
// // Decompiled by Procyon v0.5.30 // package volcano.summer.screen.mp3.resources; public interface FrameDecoder { void decodeFrame() throws DecoderException; }
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
/* Copyright (c) 2017 FIRST. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted (subject to the limitations in the disclaimer below) provided that * the following conditions are met: * * Redistributions of source code must retain the above cop...
class a { int a,b; void set (int x, int y) { a=x; b=y; } } class b extends a { int total =0; void add() { total = a+b; System.out.println("total = " + total ); } } class c extends b { int t2 =0; void sub() { t2 =a-b; System.o...
package controller; import model.Hand_GUI; import objects.Bankroll; import objects.Bet; import objects.Card; public class PokerGame_GUI{ private Bankroll bankroll; private Bet bet; private Hand_GUI hand; public PokerGame_GUI(Bet coinsBet, Bankroll br) { bankroll = br; bet = coinsBet; hand = new Hand_GUI();...
package com.tagmycode.plugin.operation; import com.tagmycode.plugin.gui.form.SnippetDialog; import com.tagmycode.sdk.model.Snippet; public class EditSnippetOperation extends AbstractSnippetOperation { private SnippetDialog snippetDialog; public EditSnippetOperation(SnippetDialog snippetDialog) { sup...
/* * Copyright 2015-2020 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
package games; import gui.CheckersGUI; import gui.Main; import java.util.*; import launchpad_s_plus.*; // TODO Rewriting Checkers /** * This class implements the game Checkers (also known as Draughts). * * * @author Helion * @version $Revision: 0.1 $ */ /* * Description and rules: taken from: https://en.w...
/** * Copyright 2017 Syncleus, Inc. * with portions copyright 2004-2017 Bo Zimmerman * * 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...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package mage.abilities.keyword; import java.io.ObjectStreamException; import mage.abilities.MageSingleton; import mage.abilities.Stati...
package org.jetbrains.android.refactoring; import com.intellij.lang.xml.XMLLanguage; import com.intellij.openapi.application.ApplicationManager; import com.intellij.openapi.command.UndoConfirmationPolicy; import com.intellij.openapi.project.Project; import com.intellij.openapi.util.Ref; import com.intellij.psi.PsiElem...
package com.revanwang.rabbitmq.simple; import com.rabbitmq.client.*; import com.revanwang.rabbitmq.util.RevanRabbitConnection; import java.io.IOException; /** * 消息接收方 */ public class Recv1 { private final static String QUEUE_NAME = "simple_queue"; public static void main(String[] args) throws Exception { ...
package org.mixer2.xhtml.replace; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import static org.mixer2.xhtml.TagCreator.li; import static org.mixer2.xhtml.TagCreator.span; import static org.mixe...
/* * Copyright 2015 NEC Corporation. * * 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 ...
package brooklyn.networking.subnet; /** * Kept for persisted state backwards compatibility * * @deprecated since 0.7.0; use {@link brooklyn.networking.common.subnet.PortForwarderAsync} */ @Deprecated public interface PortForwarderAsync extends brooklyn.networking.common.subnet.PortForwarderAsync { }
/** * MotifResult.java * * This file was auto-generated from WSDL * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter. */ package keggapi; public class MotifResult implements java.io.Serializable { private java.lang.String motif_id; private java.lang.String definition; ...
package co.infinum.samples.retromock; import com.squareup.moshi.Json; import java.io.IOException; import co.infinum.retromock.Retromock; import co.infinum.retromock.meta.Mock; import co.infinum.retromock.meta.MockHeader; import co.infinum.retromock.meta.MockResponse; import retrofit2.Call; import retrofit2.Retrofit;...
package com.ruitukeji.zwbs.loginregister; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.util.Log; import com.ruitukeji.zwbs.main.MainActivity; import com.ruitukeji.zwbs.main.MainActivity.MessageReceiver; import com.rui...
package org.csbdeep.commands; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotEquals; import java.util.List; import java.util.concurrent.Future; import org.junit.Test; import org.scijava.command.CommandModule; import org.scijava.module.Module; import org.csbdeep.tiling.Tiling; i...
package jdp.pocketlib; import android.content.Context; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumented test, which will execute on an Android device. ...
package ru.ashabalin.start; /** * Created by Aleksei Shabalin. */ public interface Output{ void println(Object value); }
package org.adorsys.adpharma.client.jpa.debtstatement; import java.util.Locale; import java.util.ResourceBundle; import javafx.scene.control.Button; import javafx.scene.control.ComboBox; import javafx.scene.control.DatePicker; import javafx.scene.control.TextField; import javafx.scene.layout.AnchorPane; import javafx...
/* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * gradle plugin from the resource data it found. It * should not be modified by hand. */ package androidx.drawerlayout; public final class R { private R() {} public static final class attr { private attr() {...
/*** * ASM: a very small and fast Java bytecode manipulation framework * Copyright (c) 2000-2011 INRIA, France Telecom * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistribution...
/* * CircleCI API * This describes the resources that make up the CircleCI API v2. * * The version of the OpenAPI document: v2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ package com.ci...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
/** * Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.financial.view.rest; import javax.ws.rs.Consumes; import javax.ws.rs.POST; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.core.Cont...
/* * Copyright 2015 JBoss, by Red Hat, Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
package ch.shaktipat.saraswati.internal.web.transform; import ch.shaktipat.saraswati.internal.web.annotations.TransformerMarker; import ch.shaktipat.saraswati.pobject.oid.PSharedObjectOID; @TransformerMarker public class PSharedObjectOIDTransformer implements Transformer< PSharedObjectOID > { @Override public Strin...
package com.ramon.pereira.hermes.api.v1.dtos.request; import lombok.*; import javax.validation.Valid; import javax.validation.constraints.NotNull; import java.util.Date; import java.util.List; @Getter @Setter @NoArgsConstructor @EqualsAndHashCode @AllArgsConstructor @Builder public class CommunicationCreateRequestDt...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
/* * Copyright (C) 2016 Tamic * * link :https://github.com/Tamicer * * 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....
package com.lqr.bijiaquan.ui.activity; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; import android.hardware.SensorManager; import android.support.v7.widget.GridLayoutManager; import android.support.v7.widget.RecyclerView; import android.view.View; im...
package org.highmed.dsf.bpe.service; import static org.highmed.dsf.bpe.ConstantsBase.CODESYSTEM_HIGHMED_BPMN; import static org.highmed.dsf.bpe.ConstantsBase.CODESYSTEM_HIGHMED_BPMN_VALUE_ERROR; import org.camunda.bpm.engine.delegate.DelegateExecution; import org.highmed.dsf.bpe.delegate.AbstractServiceDelegate; impo...
/* * 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 i...
package com.omega.amazehing.game.entity.system.input; import com.badlogic.ashley.core.ComponentMapper; import com.badlogic.ashley.core.Engine; import com.badlogic.ashley.core.Entity; import com.badlogic.gdx.Input.Keys; import com.gdx.extension.screen.ScreenManager; import com.gdx.extension.ui.input.InputArray; import ...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE191_Integer_Underflow__long_rand_sub_81_goodG2B.java Label Definition File: CWE191_Integer_Underflow.label.xml Template File: sources-sinks-81_goodG2B.tmpl.java */ /* * @description * CWE: 191 Integer Underflow * BadSource: rand Set data to result of rand() ...
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you m...
/* * ****************************************************************************** * Copyright 2014-2017 Spectra Logic Corporation. 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. A copy of the License i...
/* * Copyright 2009 Andrey Khalzov, and individual contributors as indicated by the @author tag. * * 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/l...
/** * This package contains classes with the needed logic to access the information in the database regarding the * {@link com.gms.domain.security.BAuthorization} entity. * * @author Asiel Leal Celdeiro | lealceldeiro@gmail.com * @version 0.1 */ package com.gms.repository.security.authorization;
/* * Copyright (c) 2013-2015 Netcrest Technologies, LLC. 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 * * ...
package com.tool.apiTool; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; /** * The ApiToolApplication is an main class to boot the application * * @author Atinder * @version 1.0 * @since 2018-09-10 */ @SpringBootApplication public class Api...
/* * Copyright (c) 2008-2016, GigaSpaces Technologies, 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 * * Un...
/** */ package PhotosMetaModel.provider; import PhotosMetaModel.PhotosMetaModelPackage; import java.util.Collection; import java.util.List; import org.eclipse.emf.common.notify.AdapterFactory; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.util.ResourceLocator; import org.eclips...
package com.studentmgr.common.sse; public class SubmissionEvent { private String key; private Object message; public SubmissionEvent(ListenerType type , String id, Object message) { this.key = type.prepareKey(id); this.message = message; } public String getKey() { return key; } public void setKey(Strin...
package headfirst.design.iterator; public class Client { public static void main(String[] args) { ConcreateAggregate aggregate = new ConcreateAggregate(); aggregate.add("张三"); aggregate.add("李四"); aggregate.add("王五"); Iterator tIterator = new ConcreateIterator(aggregate); while (tIt...
/* * Copyright (c) 2005, the JUNG Project and the Regents of the University of * California All rights reserved. * * This software is open-source under the BSD license; see either "license.txt" * or http://jung.sourceforge.net/license.txt for a description. * * Created on March 10, 2005 */ package org.jungrapht...
// *************************************************************************************************************************** // * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * // * distributed with this work for additional information regardi...
package com.usthe.bootshiro.support; import com.usthe.bootshiro.domain.vo.Message; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.core.annotation.Order; import org.springframework.dao.DataAccessException; import org.springframework.http.HttpStatus; import org.springframework.web.bi...