blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
4
410
content_id
stringlengths
40
40
detected_licenses
listlengths
0
51
license_type
stringclasses
2 values
repo_name
stringlengths
5
132
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
80
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
5.85k
689M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
131 values
src_encoding
stringclasses
34 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
3
9.45M
extension
stringclasses
32 values
content
stringlengths
3
9.45M
authors
listlengths
1
1
author_id
stringlengths
0
313
af998407300ac25db3b9ac59362069b74f1c60c5
2cc8104d1eb6979e9aeb5ed1d0487f3cc7efcf30
/src/main/java/com/microsoft/graph/requests/generated/BaseMdmWindowsInformationProtectionPolicyCollectionRequestBuilder.java
24b2745ddf306c130a13c1c3d1dabc2224c3e5ae
[ "MIT" ]
permissive
jnavalon/msgraph-sdk-java
d0609bdacb24dde7ae850452a6e7d8ed498b006a
f53187932cdb9f269527d01deeb5f5e0c843e09e
refs/heads/master
2020-04-15T17:59:36.972175
2018-11-14T11:25:22
2018-11-14T11:25:22
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,301
java
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ package com.microsoft.graph.requests.generated; import com.microsoft.graph.concurrency.*; import com.microsoft.graph.core.*; import com.microsoft.graph.models.extensions.*; import com.microsoft.graph.models.generated.*; import com.microsoft.graph.http.*; import com.microsoft.graph.requests.extensions.*; import com.microsoft.graph.requests.generated.*; import com.microsoft.graph.options.*; import com.microsoft.graph.serializer.*; import java.util.Arrays; import java.util.EnumSet; // **NOTE** This file was generated by a tool and any changes will be overwritten. /** * The class for the Base Mdm Windows Information Protection Policy Collection Request Builder. */ public class BaseMdmWindowsInformationProtectionPolicyCollectionRequestBuilder extends BaseRequestBuilder implements IBaseMdmWindowsInformationProtectionPolicyCollectionRequestBuilder { /** * The request builder for this collection of DeviceAppManagement * * @param requestUrl the request URL * @param client the service client * @param requestOptions the options for this request */ public BaseMdmWindowsInformationProtectionPolicyCollectionRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List<? extends Option> requestOptions) { super(requestUrl, client, requestOptions); } public IMdmWindowsInformationProtectionPolicyCollectionRequest buildRequest() { return buildRequest(getOptions()); } public IMdmWindowsInformationProtectionPolicyCollectionRequest buildRequest(final java.util.List<? extends Option> requestOptions) { return new MdmWindowsInformationProtectionPolicyCollectionRequest(getRequestUrl(), getClient(), requestOptions); } public IMdmWindowsInformationProtectionPolicyRequestBuilder byId(final String id) { return new MdmWindowsInformationProtectionPolicyRequestBuilder(getRequestUrlWithAdditionalSegment(id), getClient(), getOptions()); } }
[ "caitbal@microsoft.com" ]
caitbal@microsoft.com
401e5efc75579e05be8c3b325b16ad999da04739
336be990669d76bdb9adf809259ccddceee47dd8
/Server/src/Moduls/User.java
687cbc6c471add71e63417d349bb0894093ecf84
[ "MIT" ]
permissive
haniehm26/Messenger
e15f9bb6579d62ca78251c4f9eb77c2e73e0c15a
32737b5bfac002cb0e0bb7e4f5f25a4489b6dec5
refs/heads/master
2023-03-14T05:55:18.037183
2021-03-03T17:04:46
2021-03-03T17:04:46
296,283,858
0
0
null
null
null
null
UTF-8
Java
false
false
1,703
java
package Moduls; import java.io.Serializable; import java.util.Objects; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.LinkedBlockingDeque; public class User extends Request implements Serializable { private static long serialVersionUID = 1L; private String name; private String username; private String password; private String picture; private ConcurrentHashMap<String, LinkedBlockingDeque<Message>> messages; public String getName() { return name; } public void setName(String name) { this.name = name; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public String getPicture() { return picture; } public void setPicture(String picture) { this.picture = picture; } public ConcurrentHashMap<String, LinkedBlockingDeque<Message>> getMessages() { return messages; } public void setMessages(ConcurrentHashMap<String, LinkedBlockingDeque<Message>> messages) { this.messages = messages; } @Override public String toString() { return getName() + " " + getPassword() + " " + getUsername() + " " + getPicture() + " "; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; User user = (User) o; return Objects.equals(username, user.username); } }
[ "haniehmahdavi@yahoo.com" ]
haniehmahdavi@yahoo.com
31f0939fadc4e5f722479aa5c1c86bf9e3e0a8f2
39b3c27a001cdc954afc0fcc1aadfc91b813700b
/src/kralovcova/p022/osobyusporadani/ComparatorOsobDleVysky.java
f5ea49dea18383247f12057d7e9d335a778fb93c
[]
no_license
JanPodavka/alg2-prednasky
4448debeb60bf2672cd8a17071599d1c892fcb5f
c573f6adc5aa27099d0aca5b37d56f7cda6d468b
refs/heads/master
2023-05-02T07:18:10.795827
2021-05-18T15:10:21
2021-05-18T15:10:21
null
0
0
null
null
null
null
UTF-8
Java
false
false
427
java
/** * Copyright Jirina Kralovcova * * This code is part of ALG subject. * You can use it as you want to learn basics of Java. * */ package kralovcova.p022.osobyusporadani; import java.util.Comparator; /** * * @author Jirina */ public class ComparatorOsobDleVysky implements Comparator<Osoba> { @Override public int compare(Osoba o1, Osoba o2) { return o1.getVyska() - o2.getVyska(); } }
[ "jirina.kralovcova@tul.cz" ]
jirina.kralovcova@tul.cz
22d27e8a096cc782133ee56bcf5b7702bf76e43b
30e246efc4d43b6fb5206db0a3f38f9b7f08891b
/src/main/java/com/entity/User.java
0701535fd523238ae32c14c149a61c355ded3aa1
[]
no_license
foolguo/WebSocket_ChatRoom
554b859068054bc209a6986df8d8d18a193298a4
28332b10f689b84bf6582fd0804d8bca4a7ab36d
refs/heads/master
2022-06-30T02:57:34.920642
2019-08-27T13:48:36
2019-08-27T13:48:36
200,769,815
1
0
null
2022-05-20T21:04:43
2019-08-06T03:30:40
CSS
UTF-8
Java
false
false
224
java
package com.entity; import lombok.Data; /** * @Author: yuisama * @Date: 2019-07-30 21:22 * @Description: */ @Data public class User { private Integer id; private String userName; private String password; }
[ "1103423563@qq.com" ]
1103423563@qq.com
e779ef0897688f64b8bf223024e8d6bc1e6551e5
1367a70314b4a8a614c5ef69787f38fc9cbae0eb
/CH_04/src/Q4_01_Route_Between_Nodes/Question.java
c908fc3a54ac77141940da670780b56a5963dde3
[]
no_license
xiuyangsun/CTIC
52cc0c42cd4927170d340ebac18fa1a26c4c5cd4
ae623b77b84907209c7157850b350922123542bd
refs/heads/master
2020-07-09T05:30:07.793591
2019-09-12T05:13:18
2019-09-12T05:13:18
203,893,996
0
0
null
null
null
null
UTF-8
Java
false
false
2,094
java
package Q4_01_Route_Between_Nodes; import java.util.LinkedList; public class Question { public enum State { Unvisited, Visited, Visiting; } public static void main(String a[]) { Graph g = createNewGraph(); Node[] n = g.getNodes(); Node start = n[3]; Node end = n[5]; System.out.println(search(g, start, end)); } public static Graph createNewGraph() { Graph g = new Graph(); Node[] temp = new Node[6]; temp[0] = new Node("a", 3); temp[1] = new Node("b", 0); temp[2] = new Node("c", 0); temp[3] = new Node("d", 1); temp[4] = new Node("e", 1); temp[5] = new Node("f", 0); temp[0].addAdjacent(temp[1]); temp[0].addAdjacent(temp[2]); temp[0].addAdjacent(temp[3]); temp[3].addAdjacent(temp[4]); temp[4].addAdjacent(temp[5]); for (int i = 0; i < 6; i++) { g.addNode(temp[i]); } return g; } // Use Linked list to implement a queue to do BFS // search the adjacent nodes level by level from node start // if nodes value equals to end, return true // else put the node to the end of the queue // every time remove the node from the head of the linked list which is the first value of queue // Every time fined iterating through a level, change the father node status to be visited to avoid infinite loop public static boolean search(Graph g,Node start,Node end) { LinkedList<Node> queueLinkedList = new LinkedList<Node>(); for(Node u: g.getNodes()) { u.state = State.Unvisited; } start.state = State.Visiting; queueLinkedList.add(start); Node uNode; while(!queueLinkedList.isEmpty()) { uNode = queueLinkedList.removeFirst(); if (uNode != null) { for(Node v: uNode.getAdjacent()) { if (v.state == State.Unvisited) { if (v == end) { return true; } else { v.state = State.Visiting; queueLinkedList.add(v); } } } uNode.state = State.Visited; } } return false; } }
[ "40741921+xiuyangsun@users.noreply.github.com" ]
40741921+xiuyangsun@users.noreply.github.com
464ea53616dd9ff47b5347a273b581ff34797066
42a3fb0bef1d92ea5a4d0e9d46fcf7bab81c22c0
/3.JavaMultithreading/src/com/javarush/task/task24/task2407/Cat.java
f8137b28d7a5e3f3d3225a5a95d54be967cd6393
[]
no_license
z0lk1n/JavaRushTasks
cfd1c6b5dabafb9cbfb75da0c6451a3f961885ec
b3a8c1edc1f7049e9de8a2e297b430b0cea7fd65
refs/heads/master
2021-06-13T09:26:08.230525
2017-03-23T04:31:48
2017-03-23T04:31:48
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,901
java
package com.javarush.task.task24.task2407; /* В работе вам иногда будет нужно закастить класс к какому-нибудь интерфейсу (тут Sayable), который не реализован в текущем классе */ public class Cat implements Pet { private String name; public Cat(String name) { this.name = name; } /** * Это - механизм адаптирования к другому интерфейсу - Sayable * Внутри метода toSayable создайте class CatPet, реализующий интерфейс Sayable * Логика метода say: * Если i <= 0, то вывести на экран, что кот спит. Пример, "Васька спит."' * Иначе вывести фразу: "имя_кота говорит мяу!". Пример для i=3, "Васька говорит мяяяу!" * <p/> * <b>Пример вывода:</b> * Мурзик спит. * Васька говорит мяяу! * Кошка говорит мяяяяяу! * Мышь пищит. * Томас говорит мяу! * <p/> * @param i количество букв 'я' в слове мяу * @return экземпляр класса CatPet */ public Sayable toSayable(final int i) { class CatPet implements Sayable { @Override public String say() { if(i <= 0) { return name + " спит."; }else { StringBuilder sb = new StringBuilder(" говорит мяу!"); for(int j = 1; j < i; j++) sb.insert(10, "я"); return name + sb.toString(); } } } return new CatPet(); } }
[ "al-not@ya.ru" ]
al-not@ya.ru
191d004aa6b8b7bf422ff5a0cac879c2a8bfe85b
7748a931f4a77ac9d9677a138f875de6d41b7ee5
/DemoMapsApp_origin/app/src/main/java/de/acl/demomaps/MapsActivity.java
9a0cdf5811a01690bd578703b3e8acf424fff296
[]
no_license
meinindex/Master_2
7d77ba518fed89484213205605630307e46081a3
4bab4552f39ecceec82513838eb59a06719ae8c2
refs/heads/master
2021-01-11T22:01:57.871245
2017-04-20T09:44:58
2017-04-20T09:44:58
78,900,187
0
0
null
null
null
null
UTF-8
Java
false
false
14,526
java
package de.acl.demomaps; import android.Manifest; import android.app.Activity; import android.app.Service; import android.app.Dialog; import android.content.pm.PackageManager; import android.location.Address; import android.location.Geocoder; import android.location.Location; import android.net.Uri; import android.os.Build; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.EditText; import android.widget.TextView; import android.widget.Toast; import com.google.android.gms.ads.AdRequest; import com.google.android.gms.common.ConnectionResult; import com.google.android.gms.common.GoogleApiAvailability; import com.google.android.gms.common.api.GoogleApiClient; import com.google.android.gms.location.LocationListener; import com.google.android.gms.location.LocationRequest; import com.google.android.gms.location.LocationServices; import com.google.android.gms.maps.CameraUpdate; import com.google.android.gms.maps.CameraUpdateFactory; import com.google.android.gms.maps.GoogleMap; import com.google.android.gms.maps.MapFragment; import com.google.android.gms.maps.OnMapReadyCallback; import com.google.android.gms.maps.model.LatLng; import com.google.android.gms.appindexing.Action; import com.google.android.gms.appindexing.AppIndex; import com.google.android.gms.appindexing.Thing; import com.google.android.gms.maps.model.LatLng; import com.google.android.gms.maps.model.Marker; import com.google.android.gms.maps.model.MarkerOptions; import java.io.IOException; import java.util.ArrayList; import java.util.List; public class MapsActivity extends AppCompatActivity implements OnMapReadyCallback, GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener, LocationListener { GoogleMap mGoogleMap; GoogleApiClient mGoogleApiClient; GPSTracker mGPSTracker; Geocoder geocoder; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Obtain the SupportMapFragment and get notified when the map is ready to be used. // SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager() // .findFragmentById(R.id.mapFragment); //mapFragment.getMapAsync(this); if (googleServicesAvailable()) { Toast.makeText(this, "Perfect!", Toast.LENGTH_LONG).show(); setContentView(R.layout.activity_maps); initMap(); } else { // No Google Maps Layout } mGPSTracker = new GPSTracker(this); // ATTENTION: This was auto-generated to implement the App Indexing API. // See https://g.co/AppIndexing/AndroidStudio for more information. //client = new GoogleApiClient.Builder(this).addApi(AppIndex.API).build(); geocoder = new Geocoder(this); } private void initMap() { MapFragment mapFragment = (MapFragment) getFragmentManager().findFragmentById(R.id.mapFragment); // That is what I will access mapFragment.getMapAsync(this); } public boolean googleServicesAvailable() { GoogleApiAvailability api = GoogleApiAvailability.getInstance(); int isAvailable = api.isGooglePlayServicesAvailable(this); if (isAvailable == ConnectionResult.SUCCESS) { return true; } else if (api.isUserResolvableError(isAvailable)) { Dialog dialog = api.getErrorDialog(this, isAvailable, 0); dialog.show(); } else { Toast.makeText(this, "Cannot connect to play services!", Toast.LENGTH_LONG).show(); } return false; } /** * Manipulates the map once available. * This callback is triggered when the map is ready to be used. * This is where we can add markers or lines, add listeners or move the camera. * If Google Play services is not installed on the device, the user will be prompted to install * it inside the SupportMapFragment. This method will only be triggered once the user has * installed Google Play services and returned to the app. */ @Override public void onMapReady(GoogleMap googleMap) { mGoogleMap = googleMap; if(mGoogleMap != null) { mGoogleMap.setOnMapLongClickListener(new GoogleMap.OnMapLongClickListener() { @Override public void onMapLongClick(LatLng latLng) { MapsActivity.this.setMarker("Local", latLng.latitude, latLng.longitude); } }); mGoogleMap.setOnMarkerDragListener(new GoogleMap.OnMarkerDragListener() { @Override public void onMarkerDragStart(Marker marker) { } @Override public void onMarkerDrag(Marker marker) { } @Override public void onMarkerDragEnd(Marker marker) { Geocoder gc = new Geocoder(MapsActivity.this); LatLng ll = marker.getPosition(); double lat = ll.latitude; double lng = ll.longitude; List<Address> list = null; try { list = gc.getFromLocation(lat, lng, 1); } catch (IOException e) { e.printStackTrace(); } Address add = list.get(0); marker.setTitle(add.getLocality()); marker.showInfoWindow(); } }); mGoogleMap.setInfoWindowAdapter(new GoogleMap.InfoWindowAdapter(){ @Override public View getInfoWindow(Marker marker) { return null; } @Override public View getInfoContents(Marker marker) { return null; } }); } goToLocationZoom(50.828170, 12.920495, 15); //LatLng chemnitz = new LatLng(50.828170, 12.920495); //mMap.addMarker(new MarkerOptions().position(chemnitz).title("Marker in Chemnitz")); // mMap.moveCamera(CameraUpdateFactory.newLatLng(chemnitz)); // if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { // if (checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) { // return; // } // } // mGoogleMap.setMyLocationEnabled(true); // // mGoogleApiClient = new GoogleApiClient.Builder(this) // .addApi(LocationServices.API) //.addConnectionCallbacks(this) // .addOnConnectionFailedListener(this) // .build(); //mGoogleApiClient.connect(); } private void goToLocation(double lat, double lng) { LatLng ll = new LatLng(lat, lng); CameraUpdate update = CameraUpdateFactory.newLatLng(ll); mGoogleMap.moveCamera(update); } private void goToLocationZoom(double lat, double lng, float zoom) { LatLng ll = new LatLng(lat, lng); CameraUpdate update = CameraUpdateFactory.newLatLngZoom(ll, zoom); mGoogleMap.moveCamera(update); } public void geoLocate(View view) throws IOException { EditText et = (EditText) findViewById(R.id.editText); String location = et.getText().toString(); if(et.hasFocus()) { et.clearFocus(); } Geocoder gc = new Geocoder(this); List<Address> list = gc.getFromLocationName(location, 1); if(list.isEmpty()) { return; } Address address = list.get(0); String locality = /* address.getAddressLine(0) + "\n" + address.getLocality()+ "\n" + address.getPostalCode()+ " " + address.getFeatureName();*/ address.getAddressLine(0)+"\n"+ address.getAddressLine(1)+"\n"+ // Straße address.getAddressLine(2); //PLZ Stadt /*address.getPostalCode()+" "+ // Postleitzahl address.getLocality(); // Stadt */ System.out.print("----------------------------------------------------"+locality+"-------------------------------------------------------"); //Toast.makeText(this, locality, Toast.LENGTH_LONG).show(); double lat = address.getLatitude(); double lng = address.getLongitude(); goToLocationZoom(lat, lng, 15); setMarker(locality, lat, lng); } Marker marker; private void setMarker(String locality, double latitude, double longitude) { // Write Current Location into TextView ((TextView) findViewById(R.id.coordinatesArea)).setText(locality); //setText("Lat: " + latitude + "; Lon: " + longitude); if(marker != null) { marker.remove(); } marker = mGoogleMap.addMarker(new MarkerOptions() .position(new LatLng(latitude, longitude)) .title(locality)); marker.showInfoWindow(); } @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu, menu); // Menu on the to right of the app return super.onCreateOptionsMenu(menu); } public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.MapTypeNone: mGoogleMap.setMapType(GoogleMap.MAP_TYPE_NONE);// STATIC_OBJECTS break; case R.id.MapTypeNormal: mGoogleMap.setMapType(GoogleMap.MAP_TYPE_NORMAL); break; case R.id.MapTypeSatellite: mGoogleMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE); break; case R.id.MapTypeHybrid: mGoogleMap.setMapType(GoogleMap.MAP_TYPE_HYBRID); break; case R.id.MapTypeTerrain: mGoogleMap.setMapType(GoogleMap.MAP_TYPE_TERRAIN); break; default: break; } return super.onOptionsItemSelected(item); } LocationRequest mLocationRequest; //Request users location @Override //this takes care of ConnectionCallback public void onConnected(Bundle bundle) { mLocationRequest = LocationRequest.create(); mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY); mLocationRequest.setInterval(1000); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { if (checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) { // public void requestPermissions(@NonNull String[] permissions, int requestCode) // here to request the missing permissions, and then overriding // public void onRequestPermissionsResult(int requestCode, String[] permissions, // int[] grantResults) // to handle the case where the user grants the permission. See the documentation // for Activity#requestPermissions for more details. return; } } LocationServices.FusedLocationApi.requestLocationUpdates(mGoogleApiClient, mLocationRequest, this); } @Override public void onConnectionSuspended(int i) { } @Override public void onConnectionFailed(ConnectionResult connectionResult) { } @Override public void onLocationChanged(Location location) { // your own Location changed if (location == null) { Toast.makeText(this, "Unfortunately, we cannot get your current location!", Toast.LENGTH_LONG).show(); } else { LatLng ll = new LatLng(location.getLatitude(), location.getLongitude()); CameraUpdate update = CameraUpdateFactory.newLatLngZoom(ll, 15); mGoogleMap.animateCamera(update);// to move button:location point } } public void showCoordinates(View view) { if(mGPSTracker.canGetLocation) { mGPSTracker.getLocation(); double lat = mGPSTracker.getLatitude(); double lng = mGPSTracker.getLongitude(); Geocoder gc = new Geocoder(MapsActivity.this); List<Address> list = null; try { list = gc.getFromLocation(lat, lng, 1); } catch (IOException e) { e.printStackTrace(); } goToLocation(lat, lng); if(list != null && !list.isEmpty()) { Address address = list.get(0); String locality = address.getAddressLine(0)+"\n"+ address.getAddressLine(1)+"\n"+ // Straße address.getAddressLine(2); setMarker( locality, lat, lng); } else { setMarker("position not found by google", lat, lng); } } else { ((TextView) findViewById(R.id.coordinatesArea)).setText("cannot get location"); mGPSTracker.showSettingsAlert(); } } /** * ATTENTION: This was auto-generated to implement the App Indexing API. * See https://g.co/AppIndexing/AndroidStudio for more information. */ public Action getIndexApiAction() { Thing object = new Thing.Builder() .setName("Maps Page") // TODO: Define a title for the content shown. // TODO: Make sure this auto-generated URL is correct. .setUrl(Uri.parse("http://[ENTER-YOUR-URL-HERE]")) .build(); return new Action.Builder(Action.TYPE_VIEW) .setObject(object) .setActionStatus(Action.STATUS_TYPE_COMPLETED) .build(); } } // Aufgabenstellung: Analyse betriebssystem, entwicklung mit adroid vortrag 30 min aufteilen, 15 seiten 3.Januar raum 1/336 PowerPoint
[ "meinindex@gmx.de" ]
meinindex@gmx.de
692880fb25bb6b06f047c57f1feecd9b16dcaca4
a4e7437a82fd7fdbadb93b432c0169ff42ab1b6b
/src/tree/practice/BinaryTreeNode.java
1d87374d8f3a562895626faf662628506ffbfd5d
[]
no_license
prakash03/IdeaProjects
83d52aff02eb083f1ab770cdceaad16f2ccc09aa
1823d130ea809163943e9f9ad59f67fbbd47118a
refs/heads/master
2020-03-20T22:19:59.375433
2020-03-01T00:32:32
2020-03-01T00:32:32
137,792,702
0
0
null
null
null
null
UTF-8
Java
false
false
57
java
package tree.practice; public class BinaryTreeNode { }
[ "PrakashRaju.Kantheti@cerner.com" ]
PrakashRaju.Kantheti@cerner.com
69901c1725fd5b5fe97ad3416299313d9c523722
a4178e5042f43f94344789794d1926c8bdba51c0
/iwxxmCore/src/test/resources/iwxxm/3.1/output/org/isotc211/_2005/gmd/MDLegalConstraintsPropertyType.java
2becd8dd7b047d1d19a1fb3a0203ec3673b4cc8a
[ "Apache-2.0" ]
permissive
moryakovdv/iwxxmConverter
c6fb73bc49765c4aeb7ee0153cca04e3e3846ab0
5c2b57e57c3038a9968b026c55e381eef0f34dad
refs/heads/master
2023-07-20T06:58:00.317736
2023-07-05T10:10:10
2023-07-05T10:10:10
128,777,786
11
7
Apache-2.0
2023-07-05T10:03:12
2018-04-09T13:38:59
Java
UTF-8
Java
false
false
8,533
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2019.05.06 at 11:11:25 PM MSK // package org.isotc211._2005.gmd; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; import org.w3._1999.xlink.ActuateType; import org.w3._1999.xlink.ShowType; import org.w3._1999.xlink.TypeType; /** * <p>Java class for MD_LegalConstraints_PropertyType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="MD_LegalConstraints_PropertyType"> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence minOccurs="0"> * &lt;element ref="{http://www.isotc211.org/2005/gmd}MD_LegalConstraints"/> * &lt;/sequence> * &lt;attGroup ref="{http://www.isotc211.org/2005/gco}ObjectReference"/> * &lt;attribute ref="{http://www.isotc211.org/2005/gco}nilReason"/> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "MD_LegalConstraints_PropertyType", propOrder = { "mdLegalConstraints" }) public class MDLegalConstraintsPropertyType { @XmlElement(name = "MD_LegalConstraints") protected MDLegalConstraintsType mdLegalConstraints; @XmlAttribute(name = "nilReason", namespace = "http://www.isotc211.org/2005/gco") protected List<String> nilReason; @XmlAttribute(name = "uuidref") protected String uuidref; /** * * */ @XmlAttribute(name = "type", namespace = "http://www.w3.org/1999/xlink") public final static TypeType TYPE = TypeType.SIMPLE; @XmlAttribute(name = "href", namespace = "http://www.w3.org/1999/xlink") protected String href; @XmlAttribute(name = "role", namespace = "http://www.w3.org/1999/xlink") protected String role; @XmlAttribute(name = "arcrole", namespace = "http://www.w3.org/1999/xlink") protected String arcrole; @XmlAttribute(name = "title", namespace = "http://www.w3.org/1999/xlink") protected String title; @XmlAttribute(name = "show", namespace = "http://www.w3.org/1999/xlink") protected ShowType show; @XmlAttribute(name = "actuate", namespace = "http://www.w3.org/1999/xlink") protected ActuateType actuate; /** * Gets the value of the mdLegalConstraints property. * * @return * possible object is * {@link MDLegalConstraintsType } * */ public MDLegalConstraintsType getMDLegalConstraints() { return mdLegalConstraints; } /** * Sets the value of the mdLegalConstraints property. * * @param value * allowed object is * {@link MDLegalConstraintsType } * */ public void setMDLegalConstraints(MDLegalConstraintsType value) { this.mdLegalConstraints = value; } public boolean isSetMDLegalConstraints() { return (this.mdLegalConstraints!= null); } /** * Gets the value of the nilReason property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the nilReason property. * * <p> * For example, to add a new item, do as follows: * <pre> * getNilReason().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link String } * * */ public List<String> getNilReason() { if (nilReason == null) { nilReason = new ArrayList<String>(); } return this.nilReason; } public boolean isSetNilReason() { return ((this.nilReason!= null)&&(!this.nilReason.isEmpty())); } public void unsetNilReason() { this.nilReason = null; } /** * Gets the value of the uuidref property. * * @return * possible object is * {@link String } * */ public String getUuidref() { return uuidref; } /** * Sets the value of the uuidref property. * * @param value * allowed object is * {@link String } * */ public void setUuidref(String value) { this.uuidref = value; } public boolean isSetUuidref() { return (this.uuidref!= null); } /** * Gets the value of the href property. * * @return * possible object is * {@link String } * */ public String getHref() { return href; } /** * Sets the value of the href property. * * @param value * allowed object is * {@link String } * */ public void setHref(String value) { this.href = value; } public boolean isSetHref() { return (this.href!= null); } /** * Gets the value of the role property. * * @return * possible object is * {@link String } * */ public String getRole() { return role; } /** * Sets the value of the role property. * * @param value * allowed object is * {@link String } * */ public void setRole(String value) { this.role = value; } public boolean isSetRole() { return (this.role!= null); } /** * Gets the value of the arcrole property. * * @return * possible object is * {@link String } * */ public String getArcrole() { return arcrole; } /** * Sets the value of the arcrole property. * * @param value * allowed object is * {@link String } * */ public void setArcrole(String value) { this.arcrole = value; } public boolean isSetArcrole() { return (this.arcrole!= null); } /** * Gets the value of the title property. * * @return * possible object is * {@link String } * */ public String getTitle() { return title; } /** * Sets the value of the title property. * * @param value * allowed object is * {@link String } * */ public void setTitle(String value) { this.title = value; } public boolean isSetTitle() { return (this.title!= null); } /** * Gets the value of the show property. * * @return * possible object is * {@link ShowType } * */ public ShowType getShow() { return show; } /** * Sets the value of the show property. * * @param value * allowed object is * {@link ShowType } * */ public void setShow(ShowType value) { this.show = value; } public boolean isSetShow() { return (this.show!= null); } /** * Gets the value of the actuate property. * * @return * possible object is * {@link ActuateType } * */ public ActuateType getActuate() { return actuate; } /** * Sets the value of the actuate property. * * @param value * allowed object is * {@link ActuateType } * */ public void setActuate(ActuateType value) { this.actuate = value; } public boolean isSetActuate() { return (this.actuate!= null); } }
[ "moryakovdv@gmail.com" ]
moryakovdv@gmail.com
3740ae7b5454ec689c46d246c62c6b75bf25963d
6ef7f6701f70657d993b6bd2a019c7d12589a9e4
/cloud-api-commons/src/main/java/com/lyh/springcloud/entities/Payment.java
15f4998d42106a29bfec1a62bcb6eb21d977f881
[]
no_license
liangyuhang-git/cloud2020
bcd042dcb1c08304238e75e881961d05d8b41a32
a8b11886882faaea3bfa2526d0539ac0f98b2ca1
refs/heads/master
2023-02-27T00:38:04.007551
2021-01-29T07:10:36
2021-01-29T07:10:36
329,307,557
0
0
null
null
null
null
UTF-8
Java
false
false
300
java
package com.lyh.springcloud.entities; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; @Data @AllArgsConstructor @NoArgsConstructor public class Payment implements Serializable { private long id; private String serial; }
[ "17858903266@163.com" ]
17858903266@163.com
59ec507a94fb89bbc8bf9f2c66f528580c482718
f478969721800a6bd52e9b349b7b3a2485bec339
/UntilWhenServer/src/main/java/com/dhxxn/untilwhen/UntilwhenApplication.java
9b29e64532338683a44d5dc681d9409b5aef65ef
[]
no_license
xxria17/UntilWhen
e9fef4911b6395ad8b6035bcfe554959fefa3eb4
4568270e0343c3104568d5422dac95d1e481f007
refs/heads/main
2023-05-31T21:21:58.029593
2021-06-17T07:57:04
2021-06-17T07:57:04
370,635,247
0
2
null
2021-06-17T07:57:05
2021-05-25T09:22:21
Kotlin
UTF-8
Java
false
false
330
java
package com.dhxxn.untilwhen; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class UntilwhenApplication { public static void main(String[] args) { SpringApplication.run(UntilwhenApplication.class, args); } }
[ "xxrcy32@gmail.com" ]
xxrcy32@gmail.com
4ea869312da8e03245e46630b8c733f0f34e77dc
781dead3d42c700f65e450280389850aac1c87d0
/neewPackage/Circle.java
d7cca0ac22ab6bc0a1540fd5b55c399d03c2989b
[]
no_license
Muqtarmav/dataStructure
6ec1aa1d09de13c3596f6cf1b62edcd2c8f47205
882b804de244ce98138470b5e65a9a8d4f64f4bf
refs/heads/master
2023-09-03T03:21:36.013831
2021-11-18T21:09:06
2021-11-18T21:09:06
425,568,277
0
0
null
null
null
null
UTF-8
Java
false
false
423
java
package neewPackage; public class Circle { private int radius; public Circle(){ } public void setArea(int radius) { if (radius > 2) { this.radius = radius; } } public double getPerimeter(){ return 2 * radius * Math.PI; } public int getArea(){ return radius * radius; } }
[ "tolafejay@gmail.com" ]
tolafejay@gmail.com
014b06c38bb95c005e004edc3a0b39012b596f11
207193befdc991473701fee10fd4b792fcd312d7
/remotestorage-server/src/main/java/za/co/johanmynhardt/remotestorage/exception/RemoteStorageException.java
9c88f3394d415d020e5d488228c5a9407e1c39fe
[ "BSD-2-Clause", "LicenseRef-scancode-ietf-trust" ]
permissive
johanmynhardt/remotestorage
4436edb5e3dd4972fd09baa485ffe0d0687ec28c
0853098b387316473a1a6a8c25b55aacd4eb352c
refs/heads/master
2016-09-06T10:17:35.405179
2013-06-10T19:29:17
2013-06-10T19:29:17
null
0
0
null
null
null
null
UTF-8
Java
false
false
431
java
package za.co.johanmynhardt.remotestorage.exception; /** * @author Johan Mynhardt */ public class RemoteStorageException extends Exception { public RemoteStorageException() { super(); } public RemoteStorageException(String message) { super(message); } public RemoteStorageException(String message, Throwable cause) { super(message, cause); } public RemoteStorageException(Throwable cause) { super(cause); } }
[ "johanmynhardt@gmail.com" ]
johanmynhardt@gmail.com
d65a222bae653c6d6f36be776dad28e44e0f194e
4aa2ab85d1f6e0eaeef1ccb7396fda192105ce7c
/app/src/androidTest/java/com/bawp/makeitrain/ExampleInstrumentedTest.java
447f719a35be52924302c5a6358f4cd6dc4499fb
[]
no_license
Jon21paulos/showName
218102263cc05ee22aac74d447c82d992f3d8b3e
85eb6b26748757273a54924b7fbcf55233e4b3b0
refs/heads/main
2023-07-14T23:44:09.930143
2021-08-24T10:58:01
2021-08-24T10:58:01
398,648,762
2
0
null
null
null
null
UTF-8
Java
false
false
752
java
package com.bawp.makeitrain; import android.content.Context; import androidx.test.platform.app.InstrumentationRegistry; import androidx.test.ext.junit.runners.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumented test, which will execute on an Android device. * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ @RunWith(AndroidJUnit4.class) public class ExampleInstrumentedTest { @Test public void useAppContext() { // Context of the app under test. Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); assertEquals("com.bawp.makeitrain", appContext.getPackageName()); } }
[ "yohannespaulos1616@gmail.com" ]
yohannespaulos1616@gmail.com
01c32a024c9970b22a1c7cc651d438571c62f7f0
a52a6b28805b6a4b6a6060049e02cb14c5f862ae
/src/main/java/com/had/hotelmanagement/service/ServiceService.java
c7249f7788bd093a024bbaaa46eec4e82bcef69f
[]
no_license
tutru/HAD_HOTEL
736d4140bc6d6f8beb6c380dc346dcdbde25a5c6
fd39bc9c869db596624b34e51c66667410dab185
refs/heads/master
2020-08-21T12:25:46.874880
2019-12-11T14:38:14
2019-12-11T14:38:14
216,158,999
0
0
null
2020-01-21T23:53:57
2019-10-19T06:17:30
Java
UTF-8
Java
false
false
1,032
java
package com.had.hotelmanagement.service; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import java.util.List; import com.had.hotelmanagement.dao.ServiceDAO; import com.had.hotelmanagement.entity.ServiceEntity;; @Service @Transactional public class ServiceService { @Autowired private ServiceDAO serviceDAO; public List<ServiceEntity> findAll() { return serviceDAO.findAll(); } public ServiceEntity findByIdhd(int id) { return serviceDAO.findById(id); } public void save(ServiceEntity service){ // validate business serviceDAO.save(service); } public void update(ServiceEntity service){ // validate business serviceDAO.update(service); } public void delete(int serviceid){ // validate business serviceDAO.delete(serviceid); } public List<ServiceEntity> searchEmployee(String name) { return serviceDAO.findService(name); } }
[ "noreply@github.com" ]
tutru.noreply@github.com
034378d05805d5041d5e01fe70bf25878558b739
c5dbd49f703126adaaa10d48f660b1ed33fa5f8e
/Masdar/src/com/masdar/util/DownloadHandlerCallback.java
f252c7a14898273525bb670e5a609241935acf1e
[]
no_license
AmrAbdelkader/slight
dfb0c491d1b9b478a43356f0831dc8a6e7204331
c4a862b04e476cf629e909b9552a3af0328d02d0
refs/heads/master
2021-01-13T14:37:03.819065
2016-02-09T13:36:04
2016-02-09T13:36:04
51,365,612
0
0
null
null
null
null
UTF-8
Java
false
false
106
java
package com.masdar.util; public interface DownloadHandlerCallback { void doActions(String response); }
[ "amr.abdelkader.it@gmail.com" ]
amr.abdelkader.it@gmail.com
844483d370787e76fdb3ea803625835b8fcced7a
23ca68c043f02c59de086e7d76285eb5ebbd18fa
/Ejercicios1/Ej18_maximo de tres numeros/src/main/Main.java
4e3d50fc3cf10501e7249415e57817ffc7749a31
[]
no_license
jimypar/Programacion1DAM
d1c2270fc66e113dbcab572b95207e3f7ba650d9
097b95e3a2c66d99cf55fd2b3bb5ec049ca6372e
refs/heads/master
2023-04-28T18:36:48.577086
2021-05-23T20:46:14
2021-05-23T20:46:14
304,089,169
0
0
null
null
null
null
ISO-8859-1
Java
false
false
995
java
package main; import java.util.Scanner; public class Main { public static void main(String[] args) { try { Scanner scan1 = new Scanner(System.in) ; try { System.out.println("Introduce un numero: "); int num1= scan1.nextInt(); System.out.println("Introduce un numero: "); int num2= scan1.nextInt(); System.out.println("Introduce un numero: "); int num3= scan1.nextInt(); System.out.println("Introduce un numero: "); int num4= scan1.nextInt(); int maxTotal; maxTotal=Math.max(Math.max(num1, num2), (Math.max(num3, num4))) ; //maxTotal= Math.max(maxEntre1y2, nota3); System.out.println("Numero 1 = " + num1); System.out.println("Numero 2 = " + num2); System.out.println("Numero 3 = " + num3); System.out.println("Numero 4 = " + num4); System.out.println("Numero máximo = "+ maxTotal); } finally { scan1.close(); } } catch (Exception e) { System.out.println("Introduce solo numeros enteros."); } } }
[ "jaime.pardo@fundacionmontessori.com" ]
jaime.pardo@fundacionmontessori.com
0e65ac32772a8b0caa6ba254eedcbdf03037492c
a15e0eed0a4e80db43b024f914fa071551b25e65
/src/main/java/com/rahul/geektrust/enums/SoutherosKingdoms.java
ae234871a0e45c86a4359d25dfc70de766ae056a
[]
no_license
rrahulraj/tame-of-thrones
4071c424c8d2eca94176c4b983ddc2eab0466fcf
bd6aaff96ad738ebc5676c209d04923451663ef5
refs/heads/main
2022-12-28T03:57:39.930434
2020-10-07T18:38:56
2020-10-07T18:38:56
300,645,870
0
0
null
null
null
null
UTF-8
Java
false
false
307
java
package com.rahul.geektrust.enums; import lombok.AllArgsConstructor; import lombok.Getter; @Getter @AllArgsConstructor public enum SoutherosKingdoms { SPACE("GORILLA"), LAND("PANDA"), WATER("OCTOPUS"), ICE("MAMMOTH"), AIR("OWL"), FIRE("DRAGON") ; final String emblem; }
[ "haywire2207@gmail.com" ]
haywire2207@gmail.com
f885864d16b5fff946707cd0969cb6064d82cf31
3fd424c1d029e821fdae82cdb07eadcbb62edc71
/src/main/java/frc/robot/commands/AutoShoot.java
72805e826b0c97f81778728743102830ab8a12b4
[]
no_license
Nsolar70/FRC-2021--7068-Mastercode--MRI-Backup-4-FINAL-
f1fb0492e01c93fe8b3d07e76bd42a10ccbbd24a
c2efc6d75957fbdb3d9795bcfe52a1065affa76b
refs/heads/master
2023-09-03T13:34:45.747497
2021-11-18T22:39:34
2021-11-18T22:39:34
429,600,118
0
0
null
null
null
null
UTF-8
Java
false
false
1,604
java
/*----------------------------------------------------------------------------*/ /* Copyright (c) 2019 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of */ /* the project. */ /*----------------------------------------------------------------------------*/ package frc.robot.commands; import edu.wpi.first.wpilibj2.command.SequentialCommandGroup; import frc.robot.subsystems.DriveTrain; import frc.robot.subsystems.FlyWheel; import frc.robot.subsystems.Indexer; import frc.robot.subsystems.StopperMotor; import frc.robot.subsystems.Turret; // NOTE: Consider using this command inline, rather than writing a subclass. For more // information, see: // https://docs.wpilib.org/en/latest/docs/software/commandbased/convenience-features.html public class AutoShoot extends SequentialCommandGroup { /** * Creates a new AutoShoot. */ public AutoShoot(DriveTrain m_driveTrain, FlyWheel m_flyWheel, Indexer m_indexer, Turret m_turret, StopperMotor m_stopperMotor) { // Add your commands in the super() call, e.g. // super(new FooCommand(), new BarCommand()); super(//new AutoDriveForward(m_driveTrain).withTimeout(0.25), // new HomeTurret(m_turret).withTimeout(1.0), //new TurnTurret(m_turret, true).withTimeout(2), new ManualyShoot(m_flyWheel, m_indexer, m_stopperMotor).withTimeout(7), new AutoDriveBackward(m_driveTrain).withTimeout(0.3)); } }
[ "zmail1806@gmail.comm" ]
zmail1806@gmail.comm
93874ccc9ff33e6c65bb3041df2ded5bd92f119d
6bc2db44ed798edbb145de704390e0766ee89395
/employee-service/src/main/java/com/solstice/cloud/employeeservice/EmployeeServiceApplication.java
dddaa7a5dc78ea9ef33917d35296d183a4b9b65d
[]
no_license
sanjaykunta/pair-project
0a596672e76aa924c01fddbf68ed5793704fd2ed
6a2859ddbcd316f1082120c944b4b13a9153d448
refs/heads/master
2020-03-25T12:43:13.814823
2018-08-06T22:27:01
2018-08-06T22:27:01
null
0
0
null
null
null
null
UTF-8
Java
false
false
344
java
package com.solstice.cloud.employeeservice; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class EmployeeServiceApplication { public static void main(String[] args) { SpringApplication.run(EmployeeServiceApplication.class, args); } }
[ "bluhmann@solstice-consulting.com" ]
bluhmann@solstice-consulting.com
f7a934eef23cd9bdf87e760ac1300968c66d26de
35b38551822161c6cd70862f4f91547cd187855e
/src/com/vst/itv52/v1/adapters/AllPagesAdapter.java
3181cc5eb41a5c4d541fb85e043e625998434a99
[]
no_license
windygu/VSTV
8a26a79721235edbc41bf2ea73eefc61226892c1
5a33430ac873963eb90182ecde8cf41fcc0a8a3c
refs/heads/master
2021-05-28T18:02:14.265377
2014-03-17T03:00:41
2014-03-17T03:00:41
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,179
java
package com.vst.itv52.v1.adapters; import java.util.ArrayList; import android.os.Parcelable; import android.support.v4.view.PagerAdapter; import android.view.View; import android.view.ViewGroup; public class AllPagesAdapter extends PagerAdapter { private ArrayList<View> views; public AllPagesAdapter(ArrayList<View> views) { super(); this.views = views; } @Override public void destroyItem(ViewGroup container, int position, Object object) { container.removeView((View) object); } @Override public void setPrimaryItem(ViewGroup container, int position, Object object) { } @Override public Object instantiateItem(ViewGroup container, int position) { View child = views.get(position); container.addView(child); return child; } @Override public int getCount() { return views.size(); } @Override public boolean isViewFromObject(View arg0, Object arg1) { // TODO Auto-generated method stub return arg0 == arg1; } @Override public Parcelable saveState() { return null; } public void dataChanged(ArrayList<View> views) { this.views = views; notifyDataSetChanged(); } }
[ "djun100@qq.com" ]
djun100@qq.com
2e174bad06eefc7f65bcc3c814e2500b4223f75a
01e8c1e53a7e7873c6952f3c8e6fd00524ccbccf
/16_MYBATIS/src/controller/LimeController.java
8c07e5e48480b45571d378c001d6b96551141281
[]
no_license
ysm7663-jn/Class-JSP
b9ba7b55816aaf44969d13b64befd204b339be08
8b7ab256104b98cf12694a213a1a467922924188
refs/heads/master
2023-03-24T13:19:13.163955
2021-03-15T14:18:15
2021-03-15T14:18:15
347,997,196
0
0
null
null
null
null
UTF-8
Java
false
false
2,876
java
package controller; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import command.LimeCommand; import command.LimeDeleteCommand; import command.LimeInsertCommand; import command.LimeListCommand; import command.LimeUpdateCommand; import command.LimeViewCommand; import common.PathNRedirect; @WebServlet("*.lime") public class LimeController extends HttpServlet { private static final long serialVersionUID = 1L; public LimeController() { super(); } protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { request.setCharacterEncoding("UTF-8"); response.setContentType("text/html; charset=UTF-8"); String requestURI = request.getRequestURI(); String contextPath = request.getContextPath(); String cmd = requestURI.substring(contextPath.length()); PathNRedirect pathNRedirect = null; LimeCommand command = null; switch (cmd) { // Command 필요 case "/listPage.lime" : command = new LimeListCommand(); pathNRedirect = command.execute(request, response); break; case "/insert.lime": command = new LimeInsertCommand(); pathNRedirect = command.execute(request, response); break; case "/viewPage.lime" : command = new LimeViewCommand(); pathNRedirect = command.execute(request, response); break; case "/delete.lime" : command = new LimeDeleteCommand(); pathNRedirect = command.execute(request, response); break; case "/update.lime" : command = new LimeUpdateCommand(); pathNRedirect = command.execute(request, response); break; // 단순이동 case "/insertPage.lime": pathNRedirect = new PathNRedirect(); pathNRedirect.setPath("lime/insertPage.jsp"); pathNRedirect.setRedirect(false); // forward // forward: http://localhost:9090/16_MYBATIS/insertPage.lime // redirect: http://localhost:9090/16_MYBATIS/lime/insertPage.jsp break; case "/updatePage.lime": pathNRedirect = new PathNRedirect(); pathNRedirect.setPath("lime/updatePage.jsp"); pathNRedirect.setRedirect(false); // forward break; } String path = pathNRedirect.getPath(); boolean isRedirect = pathNRedirect.isRedirect(); if (pathNRedirect.isRedirect()) { // redirect response.sendRedirect(path); } else { // forward request.getRequestDispatcher(path).forward(request, response); } } protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doGet(request, response); } }
[ "ysm7663@gmail.com" ]
ysm7663@gmail.com
d18765943f30bf818d4c3a3ff8f222e6b5cc907c
152ad310b4aae91e605b41255436dc8d804690e9
/AMS_PROJECT/src/cms/controller/UpdateTeacherPhoto.java
9565a6b2702de3253f147ac2f8b1fa41d0dbf22f
[]
no_license
BoggarapuSusmita/College-Management-System
0fc9f7d3ebe43d3876d57f7736542948b0dc01b6
189cbaf4091642fc22da80a426a94299bab760ca
refs/heads/master
2020-03-23T00:46:36.810487
2018-07-13T19:19:31
2018-07-13T19:19:31
140,884,957
0
0
null
null
null
null
UTF-8
Java
false
false
2,691
java
package cms.controller; import java.io.File; import java.io.IOException; import java.io.PrintWriter; import java.util.Iterator; import java.util.List; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import org.apache.commons.fileupload.FileItem; import org.apache.commons.fileupload.disk.DiskFileItemFactory; import org.apache.commons.fileupload.servlet.*; import cms.db.Teacher; import cms.model.TeacherDao; @WebServlet("/cms.controller.UpdateTeacherPhoto") public class UpdateTeacherPhoto extends HttpServlet { private ServletFileUpload uploader = null; protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); PrintWriter out = response.getWriter(); DiskFileItemFactory fileFactory = new DiskFileItemFactory(); String ctx = getServletContext().getRealPath("//profileimg"); File f1 = new File(ctx); fileFactory.setRepository(f1); uploader = new ServletFileUpload(fileFactory); //out.write("<html><head></head><body>"); try { List<FileItem> fileItemsList = uploader.parseRequest(request); Iterator<FileItem> fileItemsIterator = fileItemsList.iterator(); while(fileItemsIterator.hasNext()) { //System.out.println("............a"); FileItem fileItem = fileItemsIterator.next(); if ( !fileItem.isFormField () ) { //System.out.println("............b"); f1 = new File(ctx+"\\"+fileItem.getName()); System.out.println(f1.getAbsolutePath()); fileItem.write(f1); //out.write("File "+fileItem.getName()+ " uploaded successfully."); //out.write("<br>"); String p1 = "profileimg\\"+f1.getName(); /*RequestDispatcher rd = request.getRequestDispatcher("profile.jsp?filename="+p1); rd.include(request, response); *///out.println("<img src='"+p1+"' height='300px'/>"); } } } catch (Exception e) { e.printStackTrace(); out.write("Exception in uploading file."); } //out.write("</body></html>"); HttpSession session=request.getSession(); Teacher u=new Teacher(); String file_name="profileimg\\"+f1.getName(); u.setEmail((String)session.getAttribute("email")); u.setPhoto( "profileimg\\"+f1.getName()); int status=TeacherDao.updatePhoto(u, file_name); if(status > 0) { response.sendRedirect("teacherViewProfile.jsp?msg=updated successfully in database" ); } System.out.println(f1.getAbsolutePath()); } }
[ "pradeeptachoudhury1@gmail.com" ]
pradeeptachoudhury1@gmail.com
ea07acf52ee8914dd76e43c04d01e38fbd944780
eb904b70f3452fe4f5058fe491e64ad3a2624cd0
/demo-spring-core/src/main/java/com/dexter/MyAnnotationBean.java
89f276b8cddc0e4a55f53b449d94894bae588aa8
[]
no_license
dhiman1987/spring-core
8bb7a7a590cbfa9635b1d66311d787188037b28f
faf39b8dfaa770f951090dc01b10ee00981d2756
refs/heads/master
2020-03-22T01:43:54.862929
2018-07-01T19:08:49
2018-07-01T19:08:49
139,326,025
0
0
null
null
null
null
UTF-8
Java
false
false
800
java
package com.dexter; public class MyAnnotationBean { private String param; public MyAnnotationBean() { System.out.println("Bean constructed...."); if(null==param) { System.out.println("param value is null"); }else { System.out.println("param value is "+param); } System.out.println("-----------------------------------\n"); } public void init() { System.out.println("Bean initialized.... param value is "+param); System.out.println("-----------------------------------\n"); } public String getParam() { return param; } public void setParam(String param) { this.param = param; } public void cleanUp() { System.out.println("Bean cleaningup...."); System.out.println("-----------------------------------\n"); } }
[ "dhima@DESKTOP-OKNDVGJ" ]
dhima@DESKTOP-OKNDVGJ
d5662353794b2445de5fcf2a3339b2669077b11d
9ea4043fa709aa622f368af8e82bf6c3c0531aea
/app/src/main/java/com/tads/ifrn/myapplication/Alerta.java
ed57e402ba1d42b884c2e8b4b8ec1f0f43408403
[]
no_license
ArthurPinheiro/Mobile
6fec9b059836b404d8cfd9f4ec50c32bcad941bc
2e05cd3fba1f3be736a0579a0fd1820d1e947a92
refs/heads/master
2020-03-22T18:11:02.124466
2018-07-10T14:18:51
2018-07-10T14:18:51
129,473,652
0
0
null
null
null
null
UTF-8
Java
false
false
898
java
package com.tads.ifrn.myapplication; public class Alerta { private int id; private String titulo, categoria, mensagem; public Alerta(){} public Alerta(String titulo, String categoria, String mensagem){ this.titulo = titulo; this.categoria = categoria; this.mensagem = mensagem; } public int getId() { return id; } public void setId(int id) { this.id = id; } public String getTitulo() { return titulo; } public void setTitulo(String titulo) { this.titulo = titulo; } public String getCategoria() { return categoria; } public void setCategoria(String categoria) { this.categoria = categoria; } public String getMensagem() { return mensagem; } public void setMensagem(String mensagem) { this.mensagem = mensagem; } }
[ "arthur.p@academico.ifrn.edu.br" ]
arthur.p@academico.ifrn.edu.br
c2316df29672e53fe8ce97070d1118bb9cfc9254
9af2fa3262e73899614dfc60b8ba72f3c2f25260
/GithubAndroidprojects/AdminTracker/app/src/main/java/com/dev/praful/admintracker/ListofRosterAdapter.java
3b0f3055cef38c820dd9b76ea0718fc214a3a6a0
[]
no_license
praful67/My-android-apps
d59dc762b48f6191d74ab639965adea2917241f8
8e0cb24d52690146af715f82d2ae4eae33b25262
refs/heads/master
2020-04-09T11:49:41.171887
2018-12-04T14:25:59
2018-12-04T14:25:59
160,325,287
0
0
null
null
null
null
UTF-8
Java
false
false
4,850
java
package com.dev.praful.admintracker; import android.app.Activity; import android.content.Intent; import android.content.SharedPreferences; import android.media.Image; import android.preference.PreferenceManager; import android.support.v7.widget.CardView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.view.animation.Animation; import android.view.animation.AnimationUtils; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; import android.widget.Toast; import com.google.firebase.database.DataSnapshot; import com.google.firebase.database.DatabaseError; import com.google.firebase.database.FirebaseDatabase; import com.google.firebase.database.ValueEventListener; import com.ms.square.android.expandabletextview.ExpandableTextView; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Locale; import java.util.Map; public class ListofRosterAdapter extends BaseAdapter { List<Rostersetlistitem> rostersetlistitems; Activity activity; ArrayList<Rostersetlistitem> arrayList; public ListofRosterAdapter(List<Rostersetlistitem> rostersetlistitems, Activity activity) { this.rostersetlistitems = rostersetlistitems; this.activity = activity; this.arrayList = new ArrayList<Rostersetlistitem>(); this.arrayList.addAll(rostersetlistitems); } @Override public int getCount() { return rostersetlistitems.size(); } @Override public Object getItem(int i) { return rostersetlistitems.get(i); } @Override public long getItemId(int i) { return i; } @Override public View getView(final int i, View view1, ViewGroup viewGroup) { final LayoutInflater inflater = activity.getLayoutInflater(); View view = view1; view = inflater.inflate(R.layout.rostersetitem, null); CardView card = (CardView) view.findViewById(R.id.card); SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(activity); final SharedPreferences.Editor editor = sharedPreferences.edit(); ImageView edit = (ImageView) view.findViewById(R.id.edit); FirebaseDatabase.getInstance().getReference() .child("List of Rosters Sets") .child(rostersetlistitems.get(i).getId()) .child("id") .setValue(rostersetlistitems.get(i).getId()); card.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent(activity.getBaseContext(), Carslist.class); intent.putExtra("rostersetid", rostersetlistitems.get(i).getId()); editor.putString("rostersetid", rostersetlistitems.get(i).getId()); editor.apply(); activity.startActivity(intent); } }); edit.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Intent intent = new Intent(activity.getBaseContext(), SetRosterdetails.class); editor.putString("rostersetid", rostersetlistitems.get(i).getId()); editor.apply(); intent.putExtra("rostersetid", rostersetlistitems.get(i).getId()); activity.startActivity(intent); } }); final TextView dates = (TextView) view.findViewById(R.id.dates); if (rostersetlistitems.get(i).getDates() != null) dates.setText(rostersetlistitems.get(i).getDates()); Animation animation = AnimationUtils.loadAnimation(activity, R.anim.scale_in_slow); if (sharedPreferences.getString("anim", "").equals("yes")) { view.startAnimation(animation); if (String.valueOf(getItemId(i)).equals(String.valueOf(rostersetlistitems.size() - 1))) { editor.putString("anim", "no"); editor.apply(); } } TextView setname = (TextView) view.findViewById(R.id.setname); setname.setText(rostersetlistitems.get(i).getName()); return view; } public void filter(String chartext) { chartext = chartext.toLowerCase(Locale.getDefault()); rostersetlistitems.clear(); if (chartext.length() == 0) { rostersetlistitems.addAll(arrayList); } else { for (Rostersetlistitem rosteritem : arrayList) { if (rosteritem.getName().toLowerCase(Locale.getDefault()).contains(chartext)) { rostersetlistitems.add(rosteritem); } } } notifyDataSetChanged(); } }
[ "prafulbykr@gmail.com" ]
prafulbykr@gmail.com
2102074c484cd0552063ab55defee4b8e9651261
03ad5b047c5081555e7a5eb41bdba82891d9af71
/core/src/com/devnatres/dashproject/space/DirectionSelector.java
9d8cef7e266f7cc3a026aea15abff2c2340dbe46
[ "MIT" ]
permissive
devnatres/DashProject
dae23bd0dc3c26a7790bb4ec4afe0e7afcafaf1c
834886f32b2f4a45ca3e70366b8e15d540c6b06a
refs/heads/master
2020-12-31T02:33:06.008342
2015-09-19T10:10:24
2015-09-19T10:10:24
28,713,831
0
0
null
null
null
null
UTF-8
Java
false
false
1,246
java
package com.devnatres.dashproject.space; /** * Represents four flags for each direction (left, up, right, down). <br> * It can be used for multiple purposes. <br> * <br> * Created by DevNatres on 07/12/2014. */ public class DirectionSelector { private static final int LEFT = 1; private static final int UP = 2; private static final int RIGHT = 4; private static final int DOWN = 8; private int coverDirection; public void clear() { coverDirection = 0; } public boolean isLeft() { return isDirection(LEFT); } public boolean isUp() { return isDirection(UP); } public boolean isRight() { return isDirection(RIGHT); } public boolean isDown() { return isDirection(DOWN); } public void setLeft() { coverDirection |= LEFT; } public void setUp() { coverDirection |= UP; } public void setDown() { coverDirection |= DOWN; } public void setRight() { coverDirection |= RIGHT; } public boolean hasDirection() { return coverDirection != 0; } private boolean isDirection(int coverMask) { return (coverDirection & coverMask) == coverMask; } }
[ "devnatres@gmail.com" ]
devnatres@gmail.com
ce9458b5076007b5507d28f2e07b02fd79a75a06
231aeddee09a219d31bf6746293474d8aba5c4a8
/src/it/polimi/modaclouds/space4cloud/optimization/constraints/NumberProvidersConstraint.java
a31ad1a1341de89cf34dec9d22fce994bd12e1cd
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
deib-polimi/modaclouds-space4cloud
040443573b15a1b506cba12746b3bd1ffe8cfaf9
9117aa6db41493baa29ac09b2d709ec8a9cba397
refs/heads/master
2022-07-26T21:13:07.616713
2020-05-02T06:30:53
2020-05-02T06:30:53
17,470,721
0
2
null
2022-06-20T23:55:54
2014-03-06T08:15:23
Java
UTF-8
Java
false
false
1,279
java
package it.polimi.modaclouds.space4cloud.optimization.constraints; import it.polimi.modaclouds.qos_models.schema.Constraint; import it.polimi.modaclouds.space4cloud.exceptions.ConstraintEvaluationException; import it.polimi.modaclouds.space4cloud.optimization.solution.IConstrainable; import it.polimi.modaclouds.space4cloud.utils.Configuration; public class NumberProvidersConstraint extends QoSConstraint { public NumberProvidersConstraint(Constraint constraint) { super(constraint); id=Configuration.APPLICATION_ID; } //Number of provider are used only to set MILP and the optimization, never checked. @Override protected double checkConstraintDistance(IConstrainable resource) throws ConstraintEvaluationException { return -1; } @Override protected boolean checkConstraintSet(IConstrainable resource) throws ConstraintEvaluationException { throw new ConstraintEvaluationException("Evaluating a Number Provider constraint on a set"); } /** * @return the minimum number of replicas */ public int getMin(){ Float f = range.getHasMinValue(); if (f != null) return f.intValue(); else return 1; } //TODO: add methods to derive the value fromt he resource then call the evaluation }
[ "gibbo87@gmail.com" ]
gibbo87@gmail.com
e6c3f477ae1dfad23196c856915c83a7256ecc81
0226eb34b82d834104d2d5c27f3d1c2a109083f7
/rsocket-ipc-core/src/main/java/io/rsocket/ipc/util/TriFunction.java
9af54243914ac64e788b8edf82fa681b336af8af
[ "Apache-2.0" ]
permissive
rsocket/rsocket-rpc-java
0e66158551b1b7997c4920836c8877a012865b73
c3c47723ad85af9c7ba2edbf27494c7f1835a893
refs/heads/master
2023-09-01T00:50:03.861283
2021-01-13T13:18:53
2021-01-13T13:18:53
145,032,308
182
49
Apache-2.0
2021-10-30T20:48:33
2018-08-16T19:45:50
Java
UTF-8
Java
false
false
965
java
/* * Copyright 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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.rsocket.ipc.util; @FunctionalInterface public interface TriFunction<T, U, V, R> { /** * Applies this function to the given arguments. * * @param t the first function argument * @param u the second function argument * @param v the third function argument * @return the function result */ R apply(T t, U u, V v); }
[ "noreply@github.com" ]
rsocket.noreply@github.com
72a7dad714834bc6068b5b92f8010a70ec36e20f
264ed677da4515ee282bac5bc5a03de579ba66d9
/src/main/java/com/framework/common/utils/IdcardUtils.java
0e8a02b6c73fa6e593cf132ec8f306d3e5afe97e
[]
no_license
binshangwen/ucenter_my
06b35e7301910317493ec8517cb4a72ce3b9cabb
611590384769926bdaff546be4d732081f02c9ac
refs/heads/master
2021-01-20T01:54:05.872468
2017-04-25T10:27:29
2017-04-25T10:27:29
null
0
0
null
null
null
null
UTF-8
Java
false
false
15,972
java
package com.framework.common.utils; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.HashMap; import java.util.Map; import org.apache.commons.lang3.StringUtils; /** * 身份证工具类 * * @author June * @version 1.0, 2010-06-17 */ public class IdcardUtils extends StringUtils { /** 中国公民身份证号码最小长度。 */ public static final int CHINA_ID_MIN_LENGTH = 15; /** 中国公民身份证号码最大长度。 */ public static final int CHINA_ID_MAX_LENGTH = 18; /** 省、直辖市代码表 */ public static final String cityCode[] = { "11", "12", "13", "14", "15", "21", "22", "23", "31", "32", "33", "34", "35", "36", "37", "41", "42", "43", "44", "45", "46", "50", "51", "52", "53", "54", "61", "62", "63", "64", "65", "71", "81", "82", "91" }; /** 每位加权因子 */ public static final int power[] = { 7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2 }; /** 第18位校检码 */ public static final String verifyCode[] = { "1", "0", "X", "9", "8", "7", "6", "5", "4", "3", "2" }; /** 最低年限 */ public static final int MIN = 1930; public static Map<String, String> cityCodes = new HashMap<String, String>(); /** 台湾身份首字母对应数字 */ public static Map<String, Integer> twFirstCode = new HashMap<String, Integer>(); /** 香港身份首字母对应数字 */ public static Map<String, Integer> hkFirstCode = new HashMap<String, Integer>(); static { cityCodes.put("11", "北京"); cityCodes.put("12", "天津"); cityCodes.put("13", "河北"); cityCodes.put("14", "山西"); cityCodes.put("15", "内蒙古"); cityCodes.put("21", "辽宁"); cityCodes.put("22", "吉林"); cityCodes.put("23", "黑龙江"); cityCodes.put("31", "上海"); cityCodes.put("32", "江苏"); cityCodes.put("33", "浙江"); cityCodes.put("34", "安徽"); cityCodes.put("35", "福建"); cityCodes.put("36", "江西"); cityCodes.put("37", "山东"); cityCodes.put("41", "河南"); cityCodes.put("42", "湖北"); cityCodes.put("43", "湖南"); cityCodes.put("44", "广东"); cityCodes.put("45", "广西"); cityCodes.put("46", "海南"); cityCodes.put("50", "重庆"); cityCodes.put("51", "四川"); cityCodes.put("52", "贵州"); cityCodes.put("53", "云南"); cityCodes.put("54", "西藏"); cityCodes.put("61", "陕西"); cityCodes.put("62", "甘肃"); cityCodes.put("63", "青海"); cityCodes.put("64", "宁夏"); cityCodes.put("65", "新疆"); cityCodes.put("71", "台湾"); cityCodes.put("81", "香港"); cityCodes.put("82", "澳门"); cityCodes.put("91", "国外"); twFirstCode.put("A", 10); twFirstCode.put("B", 11); twFirstCode.put("C", 12); twFirstCode.put("D", 13); twFirstCode.put("E", 14); twFirstCode.put("F", 15); twFirstCode.put("G", 16); twFirstCode.put("H", 17); twFirstCode.put("J", 18); twFirstCode.put("K", 19); twFirstCode.put("L", 20); twFirstCode.put("M", 21); twFirstCode.put("N", 22); twFirstCode.put("P", 23); twFirstCode.put("Q", 24); twFirstCode.put("R", 25); twFirstCode.put("S", 26); twFirstCode.put("T", 27); twFirstCode.put("U", 28); twFirstCode.put("V", 29); twFirstCode.put("X", 30); twFirstCode.put("Y", 31); twFirstCode.put("W", 32); twFirstCode.put("Z", 33); twFirstCode.put("I", 34); twFirstCode.put("O", 35); hkFirstCode.put("A", 1); hkFirstCode.put("B", 2); hkFirstCode.put("C", 3); hkFirstCode.put("R", 18); hkFirstCode.put("U", 21); hkFirstCode.put("Z", 26); hkFirstCode.put("X", 24); hkFirstCode.put("W", 23); hkFirstCode.put("O", 15); hkFirstCode.put("N", 14); } /** * 将15位身份证号码转换为18位 * * @param idCard * 15位身份编码 * @return 18位身份编码 */ public static String conver15CardTo18(String idCard) { String idCard18 = ""; if (idCard.length() != CHINA_ID_MIN_LENGTH) { return null; } if (isNum(idCard)) { // 获取出生年月日 String birthday = idCard.substring(6, 12); Date birthDate = null; try { birthDate = new SimpleDateFormat("yyMMdd").parse(birthday); } catch (ParseException e) { e.printStackTrace(); } Calendar cal = Calendar.getInstance(); if (birthDate != null) cal.setTime(birthDate); // 获取出生年(完全表现形式,如:2010) String sYear = String.valueOf(cal.get(Calendar.YEAR)); idCard18 = idCard.substring(0, 6) + sYear + idCard.substring(8); // 转换字符数组 char[] cArr = idCard18.toCharArray(); if (cArr != null) { int[] iCard = converCharToInt(cArr); int iSum17 = getPowerSum(iCard); // 获取校验位 String sVal = getCheckCode18(iSum17); if (sVal.length() > 0) { idCard18 += sVal; } else { return null; } } } else { return null; } return idCard18; } /** * 验证身份证是否合法 */ public static boolean validateCard(String idCard) { String card = idCard.trim(); if (validateIdCard18(card)) { return true; } if (validateIdCard15(card)) { return true; } String[] cardval = validateIdCard10(card); if (cardval != null) { if (cardval[2].equals("true")) { return true; } } return false; } /** * 验证18位身份编码是否合法 * * @param idCard * 身份编码 * @return 是否合法 */ public static boolean validateIdCard18(String idCard) { boolean bTrue = false; if (idCard.length() == CHINA_ID_MAX_LENGTH) { // 前17位 String code17 = idCard.substring(0, 17); // 第18位 String code18 = idCard.substring(17, CHINA_ID_MAX_LENGTH); if (isNum(code17)) { char[] cArr = code17.toCharArray(); if (cArr != null) { int[] iCard = converCharToInt(cArr); int iSum17 = getPowerSum(iCard); // 获取校验位 String val = getCheckCode18(iSum17); if (val.length() > 0) { if (val.equalsIgnoreCase(code18)) { bTrue = true; } } } } } return bTrue; } /** * 验证15位身份编码是否合法 * * @param idCard * 身份编码 * @return 是否合法 */ public static boolean validateIdCard15(String idCard) { if (idCard.length() != CHINA_ID_MIN_LENGTH) { return false; } if (isNum(idCard)) { String proCode = idCard.substring(0, 2); if (cityCodes.get(proCode) == null) { return false; } String birthCode = idCard.substring(6, 12); Date birthDate = null; try { birthDate = new SimpleDateFormat("yy").parse(birthCode .substring(0, 2)); } catch (ParseException e) { e.printStackTrace(); } Calendar cal = Calendar.getInstance(); if (birthDate != null) cal.setTime(birthDate); if (!valiDate(cal.get(Calendar.YEAR), Integer.valueOf(birthCode.substring(2, 4)), Integer.valueOf(birthCode.substring(4, 6)))) { return false; } } else { return false; } return true; } /** * 验证10位身份编码是否合法 * * @param idCard * 身份编码 * @return 身份证信息数组 * <p> * [0] - 台湾、澳门、香港 [1] - 性别(男M,女F,未知N) [2] - 是否合法(合法true,不合法false) * 若不是身份证件号码则返回null * </p> */ public static String[] validateIdCard10(String idCard) { String[] info = new String[3]; String card = idCard.replaceAll("[\\(|\\)]", ""); if (card.length() != 8 && card.length() != 9 && idCard.length() != 10) { return null; } if (idCard.matches("^[a-zA-Z][0-9]{9}$")) { // 台湾 info[0] = "台湾"; System.out.println("11111"); String char2 = idCard.substring(1, 2); if (char2.equals("1")) { info[1] = "M"; System.out.println("MMMMMMM"); } else if (char2.equals("2")) { info[1] = "F"; System.out.println("FFFFFFF"); } else { info[1] = "N"; info[2] = "false"; System.out.println("NNNN"); return info; } info[2] = validateTWCard(idCard) ? "true" : "false"; } else if (idCard.matches("^[1|5|7][0-9]{6}\\(?[0-9A-Z]\\)?$")) { // 澳门 info[0] = "澳门"; info[1] = "N"; } else if (idCard.matches("^[A-Z]{1,2}[0-9]{6}\\(?[0-9A]\\)?$")) { // 香港 info[0] = "香港"; info[1] = "N"; info[2] = validateHKCard(idCard) ? "true" : "false"; } else { return null; } return info; } /** * 验证台湾身份证号码 * * @param idCard * 身份证号码 * @return 验证码是否符合 */ public static boolean validateTWCard(String idCard) { String start = idCard.substring(0, 1); String mid = idCard.substring(1, 9); String end = idCard.substring(9, 10); Integer iStart = twFirstCode.get(start); Integer sum = iStart / 10 + (iStart % 10) * 9; char[] chars = mid.toCharArray(); Integer iflag = 8; for (char c : chars) { sum = sum + Integer.valueOf(c + "") * iflag; iflag--; } return (sum % 10 == 0 ? 0 : (10 - sum % 10)) == Integer.valueOf(end) ? true : false; } /** * 验证香港身份证号码(存在Bug,部份特殊身份证无法检查) * <p> * 身份证前2位为英文字符,如果只出现一个英文字符则表示第一位是空格,对应数字58 前2位英文字符A-Z分别对应数字10-35 * 最后一位校验码为0-9的数字加上字符"A","A"代表10 * </p> * <p> * 将身份证号码全部转换为数字,分别对应乘9-1相加的总和,整除11则证件号码有效 * </p> * * @param idCard * 身份证号码 * @return 验证码是否符合 */ public static boolean validateHKCard(String idCard) { String card = idCard.replaceAll("[\\(|\\)]", ""); Integer sum = 0; if (card.length() == 9) { sum = (Integer.valueOf(card.substring(0, 1).toUpperCase() .toCharArray()[0]) - 55) * 9 + (Integer.valueOf(card.substring(1, 2).toUpperCase() .toCharArray()[0]) - 55) * 8; card = card.substring(1, 9); } else { sum = 522 + (Integer.valueOf(card.substring(0, 1).toUpperCase() .toCharArray()[0]) - 55) * 8; } String mid = card.substring(1, 7); String end = card.substring(7, 8); char[] chars = mid.toCharArray(); Integer iflag = 7; for (char c : chars) { sum = sum + Integer.valueOf(c + "") * iflag; iflag--; } if (end.toUpperCase().equals("A")) { sum = sum + 10; } else { sum = sum + Integer.valueOf(end); } return (sum % 11 == 0) ? true : false; } /** * 将字符数组转换成数字数组 * * @param ca * 字符数组 * @return 数字数组 */ public static int[] converCharToInt(char[] ca) { int len = ca.length; int[] iArr = new int[len]; try { for (int i = 0; i < len; i++) { iArr[i] = Integer.parseInt(String.valueOf(ca[i])); } } catch (NumberFormatException e) { e.printStackTrace(); } return iArr; } /** * 将身份证的每位和对应位的加权因子相乘之后,再得到和值 * * @param iArr * @return 身份证编码。 */ public static int getPowerSum(int[] iArr) { int iSum = 0; if (power.length == iArr.length) { for (int i = 0; i < iArr.length; i++) { for (int j = 0; j < power.length; j++) { if (i == j) { iSum = iSum + iArr[i] * power[j]; } } } } return iSum; } /** * 将power和值与11取模获得余数进行校验码判断 * * @param iSum * @return 校验位 */ public static String getCheckCode18(int iSum) { String sCode = ""; switch (iSum % 11) { case 10: sCode = "2"; break; case 9: sCode = "3"; break; case 8: sCode = "4"; break; case 7: sCode = "5"; break; case 6: sCode = "6"; break; case 5: sCode = "7"; break; case 4: sCode = "8"; break; case 3: sCode = "9"; break; case 2: sCode = "x"; break; case 1: sCode = "0"; break; case 0: sCode = "1"; break; } return sCode; } /** * 根据身份编号获取年龄 * * @param idCard * 身份编号 * @return 年龄 */ public static int getAgeByIdCard(String idCard) { int iAge = 0; if (idCard.length() == CHINA_ID_MIN_LENGTH) { idCard = conver15CardTo18(idCard); } String year = idCard.substring(6, 10); Calendar cal = Calendar.getInstance(); int iCurrYear = cal.get(Calendar.YEAR); iAge = iCurrYear - Integer.valueOf(year); return iAge; } /** * 根据身份编号获取生日 * * @param idCard * 身份编号 * @return 生日(yyyyMMdd) */ public static String getBirthByIdCard(String idCard) { Integer len = idCard.length(); if (len < CHINA_ID_MIN_LENGTH) { return null; } else if (len == CHINA_ID_MIN_LENGTH) { idCard = conver15CardTo18(idCard); } return idCard.substring(6, 14); } /** * 根据身份编号获取生日年 * * @param idCard * 身份编号 * @return 生日(yyyy) */ public static Short getYearByIdCard(String idCard) { Integer len = idCard.length(); if (len < CHINA_ID_MIN_LENGTH) { return null; } else if (len == CHINA_ID_MIN_LENGTH) { idCard = conver15CardTo18(idCard); } return Short.valueOf(idCard.substring(6, 10)); } /** * 根据身份编号获取生日月 * * @param idCard * 身份编号 * @return 生日(MM) */ public static Short getMonthByIdCard(String idCard) { Integer len = idCard.length(); if (len < CHINA_ID_MIN_LENGTH) { return null; } else if (len == CHINA_ID_MIN_LENGTH) { idCard = conver15CardTo18(idCard); } return Short.valueOf(idCard.substring(10, 12)); } /** * 根据身份编号获取生日天 * * @param idCard * 身份编号 * @return 生日(dd) */ public static Short getDateByIdCard(String idCard) { Integer len = idCard.length(); if (len < CHINA_ID_MIN_LENGTH) { return null; } else if (len == CHINA_ID_MIN_LENGTH) { idCard = conver15CardTo18(idCard); } return Short.valueOf(idCard.substring(12, 14)); } /** * 根据身份编号获取性别 * * @param idCard * 身份编号 * @return 性别(M-男,F-女,N-未知) */ public static String getGenderByIdCard(String idCard) { String sGender = "N"; if (idCard.length() == CHINA_ID_MIN_LENGTH) { idCard = conver15CardTo18(idCard); } String sCardNum = idCard.substring(16, 17); if (Integer.parseInt(sCardNum) % 2 != 0) { sGender = "M"; } else { sGender = "F"; } return sGender; } /** * 根据身份编号获取户籍省份 * * @param idCard * 身份编码 * @return 省级编码。 */ public static String getProvinceByIdCard(String idCard) { int len = idCard.length(); String sProvince = null; String sProvinNum = ""; if (len == CHINA_ID_MIN_LENGTH || len == CHINA_ID_MAX_LENGTH) { sProvinNum = idCard.substring(0, 2); } sProvince = cityCodes.get(sProvinNum); return sProvince; } /** * 数字验证 * * @param val * @return 提取的数字。 */ public static boolean isNum(String val) { return val == null || "".equals(val) ? false : val.matches("^[0-9]*$"); } /** * 验证小于当前日期 是否有效 * * @param iYear * 待验证日期(年) * @param iMonth * 待验证日期(月 1-12) * @param iDate * 待验证日期(日) * @return 是否有效 */ public static boolean valiDate(int iYear, int iMonth, int iDate) { Calendar cal = Calendar.getInstance(); int year = cal.get(Calendar.YEAR); int datePerMonth; if (iYear < MIN || iYear >= year) { return false; } if (iMonth < 1 || iMonth > 12) { return false; } switch (iMonth) { case 4: case 6: case 9: case 11: datePerMonth = 30; break; case 2: boolean dm = ((iYear % 4 == 0 && iYear % 100 != 0) || (iYear % 400 == 0)) && (iYear > MIN && iYear < year); datePerMonth = dm ? 29 : 28; break; default: datePerMonth = 31; } return (iDate >= 1) && (iDate <= datePerMonth); } }
[ "1881037B1n" ]
1881037B1n
7836c073a65a7c6a8e6b2f2bb6e4caef644dea60
4f0e33a5dab58c3b553c0189f03823f32068e13f
/modules/server/src/main/java/com/mindbox/pe/server/audit/command/ThreadedAuditCommandInvoker.java
3d640cd06cc8fbfb04083a1d8b6107afb1bd45fd
[]
no_license
josfernandez-clgx/PowerEditor
6e2e1f098fa11c871e6a0b8da982cca2ab22e285
a4399706feb4dfb2d10c8209ead59d6639e98473
refs/heads/master
2023-06-08T01:48:26.053551
2020-06-02T22:15:00
2020-06-02T22:15:00
379,699,653
0
0
null
null
null
null
UTF-8
Java
false
false
865
java
package com.mindbox.pe.server.audit.command; import com.mindbox.pe.common.AuditConstants; import com.mindbox.pe.server.audit.AuditStorage; import com.mindbox.pe.server.audit.event.AuditFailedEventSupport; public final class ThreadedAuditCommandInvoker implements AuditCommandInvoker { private boolean suppressAll; public ThreadedAuditCommandInvoker(boolean suppressAll) { this.suppressAll = suppressAll; } public void execute(final AuditCommand auditCommand, final AuditStorage auditStorage, final AuditFailedEventSupport eventSupport) { if (suppressAll) return; new Thread() { public void run() { try { auditCommand.execute(auditStorage); } catch (Exception ex) { eventSupport.fireAuditFailed(AuditConstants.FAILURE_MESSAGE_PREFIX + auditCommand.getDescription(), ex); } } }.run(); } }
[ "gkim@84317e12-416e-11ea-976c-191aa12963f2" ]
gkim@84317e12-416e-11ea-976c-191aa12963f2
2f6f6443aeddd64fdbe919db1098a1aa99787f86
ac28d0db923b89abb1b25c7f2f98509792aca8d4
/bmxconnect-AppEngine/shared/com/biomerieux/bmxconnect/shared/MessageProxy.java
fea6a34b09c9bcb801b483f2096de4ebd8ad2fdd
[]
no_license
triathlete1/BMXConnect
101b07f746e82cc3f86dc33bef8321bad72d5485
50dfd3c90df0ba05649d08f11a95ccecc4331fa8
refs/heads/master
2021-01-21T11:14:53.079541
2012-03-10T06:28:39
2012-03-10T06:28:39
3,270,701
1
0
null
null
null
null
UTF-8
Java
false
false
1,187
java
/* * Copyright 2011 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.biomerieux.bmxconnect.shared; import com.google.web.bindery.requestfactory.shared.ProxyForName; import com.google.web.bindery.requestfactory.shared.ValueProxy; /** * A proxy object containing a message destined for a particular * recipient, identified by email address. */ @ProxyForName(value = "com.biomerieux.bmxconnect.server.Message", locator = "com.biomerieux.bmxconnect.server.MessageLocator") public interface MessageProxy extends ValueProxy { String getMessage(); String getRecipient(); void setRecipient(String recipient); void setMessage(String message); }
[ "triathlete1@gmail.com" ]
triathlete1@gmail.com
b0524a25e3270dd05aa43e591ed5aba23cdfee5c
75bd01e0229e29115b47e193720b14027e3757d1
/app/src/test/java/com/ip/alexrebega/mbooking/ExampleUnitTest.java
63a7e0115dda9b8d6a8ea6011ebf39c69fe3851d
[]
no_license
AlexandruRebega/mBooking
c1d7ef4476da1f63e8c9298973ccdc64e723be5b
c0d719f08dce7a8bbad61adb2c777b255a0594c6
refs/heads/master
2020-12-29T07:55:30.538340
2019-05-19T21:15:08
2019-05-19T21:15:08
238,523,885
0
0
null
null
null
null
UTF-8
Java
false
false
387
java
package com.ip.alexrebega.mbooking; 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 addition_isCorrect() { assertEquals(4, 2 + 2); } }
[ "rebega.alex@gmail.com" ]
rebega.alex@gmail.com
1c86a786369b65be764b6024eaebd20219e3832c
62cb0ec64d3a8d231285737246a114b4de8c7f15
/KcFinset/src/main/java/com/koscom/attach/service/impl/AttachManagerImpl.java
df51d451cc80823575ca69aa0e4909910b8bb942
[]
no_license
Jun-Soo/finset
e96e397022191e5d6f39d44eaf01bbf7bb1166d5
0144c8ceff3128502010e2651d8d3a952e3ccd3a
refs/heads/master
2020-03-27T17:24:12.705939
2018-12-06T05:52:07
2018-12-06T05:52:07
146,849,122
0
2
null
null
null
null
UTF-8
Java
false
false
823
java
package com.koscom.attach.service.impl; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.koscom.attach.service.AttachManager; import com.koscom.fincorp.model.FincorpVO; import com.koscom.fincorp.service.FincorpManager; import com.koscom.util.StringUtil; @Service("attachManager") public class AttachManagerImpl implements AttachManager { @Autowired private FincorpManager fincorpManager; @Override public byte[] getBytesAttachFileC(String filename) throws Exception { FincorpVO vo = new FincorpVO(); vo.setPath_file(filename); byte readByte[] = null; if( !StringUtil.isEmpty(filename) ){ readByte = fincorpManager.getImgBi(filename); }else{ return null; } return readByte; } }
[ "hkkim@vitcom.co.kr" ]
hkkim@vitcom.co.kr
d738f1f695400f1719f464637982b066b5011785
df465d21d51cd2b24d86d07459d4beb7078b555c
/Practice601/RefineCode-ans/src/club/banyuan/MaxMultithreaded.java
1a52c7c0172ac49319cb2b40e28624c0ae6510e5
[]
no_license
Jars20/javaSE
f8db2e7cdb92ad9ce74b75d4d1f8c8bf9966576f
d593aaf39c5eb384089187eff954dfd6236ca463
refs/heads/master
2022-10-09T21:05:44.559525
2020-06-09T08:00:59
2020-06-09T08:00:59
257,152,955
1
0
null
null
null
null
UTF-8
Java
false
false
1,585
java
package club.banyuan; import java.util.concurrent.Callable; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; class MaxCallable implements Callable { private int lo, hi; private int[] arr; private double ans = 0; public MaxCallable(int[] arr, int lo, int hi) { this.lo = lo; this.hi = hi; this.arr = arr; } public double getAns() { return ans; } @Override public Object call() throws Exception { ans = Math.sin(arr[lo]); for (int i = lo; i < hi; i++) { double sin = Math.sin(arr[i]); if (ans < sin) { ans = sin; } } return ans; } } public class MaxMultithreaded { /** * 计算数组元素的sin值之后,返回最大值。 * * @param arr 目标数组 * @return sin(数组元素)的最大值 * @throws InterruptedException 不应该出现此异常 */ public static double max(int[] arr, int numThreads) throws InterruptedException { int len = arr.length; double ans = Double.NEGATIVE_INFINITY; // 创建并启动线程。 MaxCallable[] ts = new MaxCallable[numThreads]; ExecutorService executorService = Executors.newFixedThreadPool(numThreads); for (int i = 0; i < numThreads; i++) { ts[i] = new MaxCallable(arr, (i * len) / numThreads, ((i + 1) * len / numThreads)); executorService.submit(ts[i]); } // 等待线程完成并计算它们的结果。 for (int i = 0; i < numThreads; i++) { if (ans < ts[i].getAns()) { ans = ts[i].getAns(); } } return ans; } }
[ "lbjks@qq.com" ]
lbjks@qq.com
b3586340f7a2ad7ce53ab256a413c16694044580
bbd6cab6a6bee3b0a21b83010d3b5a61aadb38ed
/src/main/java/com/transempiric/transAuth/error/TransAuthBaseException.java
de093238e911edecc0ea99330e514788031ab1f0
[ "MIT" ]
permissive
TransEmpiric/iso-web-template
cb7c5c48592e93f8e59b25cf6b80f45ff21d142c
3ee2fc03fd11ba5f4db5d2d93afbe6777926c646
refs/heads/master
2021-04-15T17:02:05.162538
2018-04-20T04:24:01
2018-04-20T04:24:01
126,797,942
11
0
null
null
null
null
UTF-8
Java
false
false
3,292
java
/* * MIT License * * Copyright (c) 2018 Transempiric * * 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, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ package com.transempiric.transAuth.error; import java.io.Serializable; import java.util.ArrayList; import java.util.List; /** * Base TransAuthBaseException * All TransAuthExceptions extend this class. * Helps maintain consistent structure of client response. */ public class TransAuthBaseException extends RuntimeException implements TransAuthException, Serializable { private static final long serialVersionUID = 1L; private static final String DEFAULT_MESSAGE = ""; private static final int DEFAULT_STATUS = 401; protected TransAuthJsonResponse<Object> payload; public TransAuthBaseException() { super(); this.populateDefault(); } public TransAuthBaseException(String message) { super(message); this.populateDefault(); } public TransAuthBaseException(Throwable cause) { super(cause); this.populateDefault(); } public TransAuthBaseException(String message, Throwable cause) { super(message, cause); this.populateDefault(); } public TransAuthBaseException(TransAuthJsonResponse<Object> payload) { super(payload.getDisplayMessage()); this.payload = payload; } public TransAuthJsonResponse<Object> getPayload() { return payload; } public TransAuthBaseException setPayload(TransAuthJsonResponse<Object> payload) { this.payload = payload; return this; } public TransAuthBaseException addError(String err) { this.payload.getErrors().add(err); return this; } @Override public Integer getDefaultStatus() { return DEFAULT_STATUS; } @Override public String getDefaultMessage() { return DEFAULT_MESSAGE; } @Override public void populateDefault() { String errMsg = this.getMessage() != null ? this.getMessage() : DEFAULT_MESSAGE; List<String> errList = new ArrayList<>(); errList.add(errMsg); this.payload = new TransAuthJsonResponse<>() .setStatus(DEFAULT_STATUS) .setDisplayMessage(errMsg) .setErrors(errList); } }
[ "durden@transempiric.com" ]
durden@transempiric.com
eaa17010304470771fe885739ec61b230199e11f
34e83935040269c66537b50b3b4c50fb07b717ee
/server/src/main/java/websocket/servers/server/HTTPServer.java
b83eb3f6cfbfeeab11573be097199b5d412b478f
[]
no_license
wknwkn123/UAVSimulationSystem
d5e2113111e3905c5d9989d88b37a473604c34a9
1c1ef867e00da23a74dc7175cd67449acf98c87a
refs/heads/master
2020-03-20T09:39:52.748763
2018-06-14T13:59:11
2018-06-14T13:59:11
137,344,406
0
0
null
null
null
null
UTF-8
Java
false
false
9,112
java
package websocket.servers.server; import com.sun.net.httpserver.HttpExchange; import com.sun.net.httpserver.HttpHandler; import com.sun.net.httpserver.HttpServer; import mapbuilder.graph.Edge2D; import mapbuilder.graph.Vector2D; import mapbuilder.graph.loader.JsonLoader; import mapbuilder.triangulation.DelaunayTriangulator; import mapbuilder.triangulation.NotEnoughPointsException; import org.apache.commons.io.IOUtils; import org.json.JSONArray; import org.json.JSONObject; import org.json.JSONString; import java.io.*; import java.net.InetSocketAddress; import java.util.ArrayList; import java.util.List; import java.util.Vector; import java.util.concurrent.Executors; import static java.lang.Math.abs; import static java.lang.StrictMath.sqrt; public class HTTPServer implements Runnable { private static HTTPServer instance = new HTTPServer(); public static HTTPServer getInstance() { return instance; } public HTTPServer() {} public void startServer() { Thread t = new Thread(this); t.start(); } public void run() { InetSocketAddress addr = new InetSocketAddress(8080); HttpServer server = null; try { server = HttpServer.create(addr, 0); } catch (IOException e) { e.printStackTrace(); } System.out.print(server.toString() + addr); server.createContext("/api/graph", new MyHandler()); server.createContext("/api/graph/storage", new StorageHandler()); server.setExecutor(Executors.newCachedThreadPool()); server.start(); System.out.println("Server is listening on port 8080"); } } class MyHandler implements HttpHandler { public void handle(HttpExchange exchange) throws IOException { String requestMethod = exchange.getRequestMethod(); System.out.println(requestMethod); InputStream in = exchange.getRequestBody(); //获得输入流 BufferedReader reader = new BufferedReader(new InputStreamReader(in, "utf-8")); System.out.println("READER " + requestMethod + reader); if (requestMethod.equalsIgnoreCase("POST")) { String jsonString = IOUtils.toString(reader);//text是我获取的post提交的数据(现在是字符串的形式) System.out.print(jsonString.length()); JsonLoader loader = new JsonLoader(); Vector<Vector2D> pointSet = loader.loadNodeListWithString(jsonString); DelaunayTriangulator delaunayTriangulator = new DelaunayTriangulator(pointSet); try { delaunayTriangulator.triangulate(); } catch (NotEnoughPointsException e) { e.printStackTrace(); } List<Edge2D> edges = delaunayTriangulator.getEdges(); JSONArray jsonEdges = new JSONArray(); for (Edge2D e : edges) { // {"source":"N", "target":"I", "meta-data":{"weight":55.23}}, double weight = sqrt(abs((e.getSource().getX() - e.getTarget().getX()) * (e.getSource().getX() - e.getTarget().getX()) + (e.getSource().getY() - e.getTarget().getY()) * (e.getSource().getY() - e.getTarget().getY()))); jsonEdges.put((JSONString) () -> "{\"source\":\"" + e.getSource().getId() + "\", \"target\":\"" + e.getTarget().getId() + "\", \"meta-data\":{\"weight\":" + weight + "}}"); // jsonEdges.put((JSONString) () -> "{\"target\":\"" + e.getSource().getId() + "\", \"source\":\"" + e.getTarget().getId() + "\", \"meta-data\":{\"weight\":" + weight + "}}"); } // System.out.println(loader.writeEdges2JsonString(jsonString, jsonEdges)); String responseString = loader.writeEdges2JsonString(jsonString, jsonEdges); //设置响应头 exchange.sendResponseHeaders(200, responseString.length()); OutputStream os = exchange.getResponseBody(); os.write(responseString.getBytes()); // System.out.println("asdadasd" + responseString); os.close(); // // // Headers responseHeaders = exchange.getResponseHeaders(); // responseHeaders.set("Content-Type", "application/json"); // exchange.sendResponseHeaders(200, 0); // // OutputStream responseBody = exchange.getResponseBody(); // Headers requestHeaders = exchange.getRequestHeaders(); // Set<String> keySet = requestHeaders.keySet(); // Iterator<String> iter = keySet.iterator(); // while (iter.hasNext()) { // String key = iter.next(); // List values = requestHeaders.get(key); // String s = key + " = " + values.toString() + "\n"; // responseBody.write(s.getBytes()); // } // responseBody.close(); } } } class StorageHandler implements HttpHandler { public void handle(HttpExchange exchange) throws IOException { String requestMethod = exchange.getRequestMethod(); InputStream in = exchange.getRequestBody(); BufferedReader reader = new BufferedReader(new InputStreamReader(in, "utf-8")); String jsonString = IOUtils.toString(reader); JSONObject jobj = new JSONObject(jsonString); System.out.println("READER " + requestMethod + reader); if (requestMethod.equalsIgnoreCase("POST")) { String type = jobj.getString("type"); if (type.equalsIgnoreCase("savefile")){ String filename = jobj.getString("name") + ".json"; JSONObject graph = jobj.getJSONObject("graph"); //save graph as file name = name FileWriter writer = null; try { writer = new FileWriter("./data/airspace/" + filename); writer.write(graph.toString()); String responseString = "File is successfully saved"; exchange.sendResponseHeaders(200, responseString.length()); OutputStream os = exchange.getResponseBody(); os.write(responseString.getBytes()); os.close(); } catch (IOException e) { String responseString = "File is not saved. Server error."; exchange.sendResponseHeaders(500, responseString.length()); OutputStream os = exchange.getResponseBody(); os.write(responseString.getBytes()); os.close(); e.printStackTrace(); } finally { if (writer != null) { try { writer.close(); } catch (IOException e) { e.printStackTrace(); } } } } else if (type.equalsIgnoreCase("getfile")) { //get name of file String filename = jobj.getString("name") + ".json"; //return the file from database String jsonData = readFile("./data/airspace/" + filename); exchange.sendResponseHeaders(200, jsonData.length()); OutputStream os = exchange.getResponseBody(); os.write(jsonData.getBytes()); os.close(); } else if (type.equalsIgnoreCase("getlist")) { File folder = new File("./data/airspace"); JSONObject fileNames = new JSONObject(); ArrayList<String> arr = new ArrayList<>(); //give list file names from directory for (final File fileEntry : folder.listFiles()) { arr.add(fileEntry.getName().replace(".json", "")); } fileNames.put("names", arr); String responseString = fileNames.toString(); exchange.sendResponseHeaders(200, responseString.length()); OutputStream os = exchange.getResponseBody(); os.write(responseString.getBytes()); os.close(); } else { JSONObject response = new JSONObject(); String responseString = "Invalid request"; response.put("status", responseString); exchange.sendResponseHeaders(400, responseString.length()); OutputStream os = exchange.getResponseBody(); os.write(responseString.getBytes()); os.close(); } } } public static String readFile(String filename) { String result = ""; try { BufferedReader br = new BufferedReader(new FileReader(filename)); StringBuilder sb = new StringBuilder(); String line = br.readLine(); while (line != null) { sb.append(line); line = br.readLine(); } result = sb.toString(); } catch(Exception e) { e.printStackTrace(); } return result; } }
[ "ekoeditaa@gmail.com" ]
ekoeditaa@gmail.com
f986e38c187617382cb255a6836a62dd8cbd6271
deaea7e5b6f7cc8635501f47b7a3ad2c67d29333
/src/main/java/com/corp/tsdb/cassandra/webengine/api/rest/model/PayloadExample.java
02afbbef94d4eeac5ed768aa9134602f8fc70320
[]
no_license
MyXOF/cassandra-web-engine
ee5ee89de3377fe97113a1e750665ec335a7f908
038a574f1a3af38e1321137fef6ab7608bf35e9c
refs/heads/master
2021-01-10T16:25:13.990697
2015-12-25T01:18:42
2015-12-25T01:18:42
48,245,173
0
0
null
null
null
null
UTF-8
Java
false
false
841
java
package com.corp.tsdb.cassandra.webengine.api.rest.model; import com.fasterxml.jackson.annotation.JsonProperty; @javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2015-09-06T14:26:23.511+08:00") public class PayloadExample { private String foo; private String bar; @JsonProperty("foo") public String getFoo() { return foo; } public void setFoo(String foo) { this.foo = foo; } @JsonProperty("bar") public String getBar() { return bar; } public void setBar(String bar) { this.bar = bar; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResponseStatusOnOff {\n"); sb.append(" foo: ").append(foo).append("\n"); sb.append(" bar: ").append(bar).append("\n"); sb.append("}\n"); return sb.toString(); } }
[ "xuyi556677@163.com" ]
xuyi556677@163.com
02a406f50dc8422876d5e463e6fbde9b2aed24a5
be9d60bc856095989a7eabb0b629f432cd062a67
/3 сем/Прога/Java/ИКР/Ульяницкий Владимир — debug/src/Main.java
c6984ac341b8d03cca3276a05c36e29aa86476df
[]
no_license
Viiktorias/2_course
01682c9d172c61008ef8b3c49e97e378aa5eb192
26fd5fab667e37569436221765edfe49e1d6bd34
refs/heads/master
2022-01-29T12:12:40.682971
2019-08-07T13:36:56
2019-08-07T13:36:56
null
0
0
null
null
null
null
UTF-8
Java
false
false
132
java
public class Main { public static void main(String[] args) { ControllerInterface controller = new Controller(); } }
[ "uvlad7@gmail.com" ]
uvlad7@gmail.com
90493ecb8e59b40ce36ee132289224a531056446
0f21b35272ae2527ff1ab95a258378d3fb8418eb
/Spring/src/main/java/com/sh/test/App3.java
d95dae4938528050099c29195e10f0de116ae545
[]
no_license
ShuaiJunlan/java-learning
c1a92b41ba4ed1ff880e55a70330dd342dc6e8c6
ae5cbbf146e6c059b5cd613bcd095d7855a00f8e
refs/heads/master
2023-03-04T07:14:22.649266
2022-11-18T07:34:16
2022-11-18T07:34:16
162,292,537
4
0
null
2023-02-22T07:22:48
2018-12-18T13:29:13
Java
UTF-8
Java
false
false
548
java
package com.sh.test; import com.sh.services.CustomerService; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; /** * Created by Mr SJL on 2016/10/27. */ public class App3 { public static void main( String[] args ) { ApplicationContext context = new ClassPathXmlApplicationContext(new String[] {"SpringCustomer.xml"}); CustomerService cust = (CustomerService)context.getBean("tt"); System.out.println(cust); } }
[ "shuaijunlan@gmail.com" ]
shuaijunlan@gmail.com
db443633f36961e199ac13bf563b24f4d74c77e2
4f4ddc396fa1dfc874780895ca9b8ee4f7714222
/src/java/com/gensym/gsi/types/INTERNED_LIST_AS_VALUE_TYPE.java
5e4254769d2635a825fbbc95cecff720c35df40a
[]
no_license
UtsavChokshiCNU/GenSym-Test2
3214145186d032a6b5a7486003cef40787786ba0
a48c806df56297019cfcb22862dd64609fdd8711
refs/heads/master
2021-01-23T23:14:03.559378
2017-09-09T14:20:09
2017-09-09T14:20:09
102,960,203
3
5
null
null
null
null
UTF-8
Java
false
false
1,582
java
package com.gensym.gsi.types; import com.gensym.gsi.*; import com.gensym.gsi.types.*; import com.gensym.gsi.messages.*; import java.io.IOException; public class INTERNED_LIST_AS_VALUE_TYPE implements ICPType { public static Object read(ICPInputStream inputStream) throws IOException { int icpindex; InternedList value; short tag = inputStream.peekICPByte(); switch (tag) { case 65535: ICP_BYTE.read(inputStream); icpindex = UNSIGNED_INTEGER.read(inputStream); value = InternedList.intern(ICP_TREE.read(inputStream)); inputStream.standardIndexSpace.setObjectForIndex(icpindex,value); break; case 65534: ICP_BYTE.read(inputStream); icpindex = UNSIGNED_INTEGER.read(inputStream); value = inputStream.temporaryIndexSpace.lookupObjectForIndex(icpindex); break; default: icpindex = UNSIGNED_INTEGER.read(inputStream); value = inputStream.standardIndexSpace.lookupObjectForIndex(icpindex); break; } return value; } public static void write(InternedList value, ICPOutputStream outputStream) throws IOException { Integer icpindex = outputStream.standardIndexSpace.lookupIndexForObject(value); if (null != icpindex) { ICPBYTE.write(ICP_STANDARD_INDEX_SPACE_TYPE_TAG, outputStream); UNSIGNED_INTEGER.write(icpindex.intValue(), outputStream); return; } icpindex = new Integer(outputStream.standardIndexSpace.getIndexForObject(value)); ICPBYTE.write(65535, outputStream); UNSIGNED_INTEGER.write(icpindex.intValue(), outputStream); ICP_TREE.write(value.value(), outputStream); } }
[ "utsavchokshi@Utsavs-MacBook-Pro.local" ]
utsavchokshi@Utsavs-MacBook-Pro.local
4ed4399087244f065cb44022f4892351f66bfb50
c885ef92397be9d54b87741f01557f61d3f794f3
/tests-without-trycatch/JacksonDatabind-103/com.fasterxml.jackson.databind.util.ClassUtil/BBC-F0-opt-70/24/com/fasterxml/jackson/databind/util/ClassUtil_ESTest_scaffolding.java
ee9537e6e9f1fb4dc36f1908cc27aa3eab2aec1e
[ "CC-BY-4.0", "MIT" ]
permissive
pderakhshanfar/EMSE-BBC-experiment
f60ac5f7664dd9a85f755a00a57ec12c7551e8c6
fea1a92c2e7ba7080b8529e2052259c9b697bbda
refs/heads/main
2022-11-25T00:39:58.983828
2022-04-12T16:04:26
2022-04-12T16:04:26
309,335,889
0
1
null
2021-11-05T11:18:43
2020-11-02T10:30:38
null
UTF-8
Java
false
false
64,953
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Sun Oct 24 05:51:23 GMT 2021 */ package com.fasterxml.jackson.databind.util; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; import org.junit.AfterClass; import org.evosuite.runtime.sandbox.Sandbox; import org.evosuite.runtime.sandbox.Sandbox.SandboxMode; import static org.evosuite.shaded.org.mockito.Mockito.*; @EvoSuiteClassExclude public class ClassUtil_ESTest_scaffolding { @org.junit.Rule public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule(); private static final java.util.Properties defaultProperties = (java.util.Properties) java.lang.System.getProperties().clone(); private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000); @BeforeClass public static void initEvoSuiteFramework() { org.evosuite.runtime.RuntimeSettings.className = "com.fasterxml.jackson.databind.util.ClassUtil"; org.evosuite.runtime.GuiSupport.initialize(); org.evosuite.runtime.RuntimeSettings.maxNumberOfThreads = 100; org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000; org.evosuite.runtime.RuntimeSettings.mockSystemIn = true; org.evosuite.runtime.RuntimeSettings.sandboxMode = org.evosuite.runtime.sandbox.Sandbox.SandboxMode.RECOMMENDED; org.evosuite.runtime.sandbox.Sandbox.initializeSecurityManagerForSUT(); org.evosuite.runtime.classhandling.JDKClassResetter.init(); setSystemProperties(); initializeClasses(); org.evosuite.runtime.Runtime.getInstance().resetRuntime(); try { initMocksToAvoidTimeoutsInTheTests(); } catch(ClassNotFoundException e) {} } @AfterClass public static void clearEvoSuiteFramework(){ Sandbox.resetDefaultSecurityManager(); java.lang.System.setProperties((java.util.Properties) defaultProperties.clone()); } @Before public void initTestCase(){ threadStopper.storeCurrentThreads(); threadStopper.startRecordingTime(); org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().initHandler(); org.evosuite.runtime.sandbox.Sandbox.goingToExecuteSUTCode(); setSystemProperties(); org.evosuite.runtime.GuiSupport.setHeadless(); org.evosuite.runtime.Runtime.getInstance().resetRuntime(); org.evosuite.runtime.agent.InstrumentingAgent.activate(); } @After public void doneWithTestCase(){ threadStopper.killAndJoinClientThreads(); org.evosuite.runtime.jvm.ShutdownHookHandler.getInstance().safeExecuteAddedHooks(); org.evosuite.runtime.classhandling.JDKClassResetter.reset(); resetClasses(); org.evosuite.runtime.sandbox.Sandbox.doneWithExecutingSUTCode(); org.evosuite.runtime.agent.InstrumentingAgent.deactivate(); org.evosuite.runtime.GuiSupport.restoreHeadlessMode(); } public static void setSystemProperties() { java.lang.System.setProperties((java.util.Properties) defaultProperties.clone()); java.lang.System.setProperty("user.dir", "/experiment"); } private static void initializeClasses() { org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(ClassUtil_ESTest_scaffolding.class.getClassLoader() , "com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder$WithMember", "com.fasterxml.jackson.databind.MappingIterator", "com.fasterxml.jackson.databind.deser.BeanDeserializerModifier", "com.fasterxml.jackson.databind.deser.impl.FieldProperty", "com.fasterxml.jackson.databind.ser.std.NumberSerializers$ShortSerializer", "com.fasterxml.jackson.databind.deser.std.EnumDeserializer", "com.fasterxml.jackson.annotation.ObjectIdGenerators$Base", "com.fasterxml.jackson.annotation.JsonFormat$Features", "com.fasterxml.jackson.databind.introspect.AnnotatedConstructor", "com.fasterxml.jackson.databind.cfg.MapperConfigBase", "com.fasterxml.jackson.databind.deser.UnresolvedForwardReference", "com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWithSerializerProvider", "com.fasterxml.jackson.databind.ser.impl.UnknownSerializer", "com.fasterxml.jackson.databind.deser.std.StdKeyDeserializers", "com.fasterxml.jackson.databind.type.MapLikeType", "com.fasterxml.jackson.core.async.ByteArrayFeeder", "com.fasterxml.jackson.databind.util.LinkedNode", "com.fasterxml.jackson.databind.type.MapType", "com.fasterxml.jackson.databind.annotation.JsonTypeResolver", "com.fasterxml.jackson.databind.ser.std.UUIDSerializer", "com.fasterxml.jackson.databind.ObjectWriter", "com.fasterxml.jackson.databind.deser.std.FromStringDeserializer", "com.fasterxml.jackson.databind.type.TypeBase", "com.fasterxml.jackson.core.util.BufferRecyclers", "com.fasterxml.jackson.databind.node.TextNode", "com.fasterxml.jackson.databind.deser.impl.ManagedReferenceProperty", "com.fasterxml.jackson.core.util.Instantiatable", "com.fasterxml.jackson.databind.ser.std.DateTimeSerializerBase", "com.fasterxml.jackson.databind.deser.BeanDeserializerBuilder", "com.fasterxml.jackson.core.json.UTF8DataInputJsonParser", "com.fasterxml.jackson.annotation.Nulls", "com.fasterxml.jackson.annotation.JsonIgnoreProperties", "com.fasterxml.jackson.databind.deser.impl.ReadableObjectId", "com.fasterxml.jackson.core.util.DefaultPrettyPrinter$Indenter", "com.fasterxml.jackson.databind.introspect.AnnotatedCreatorCollector", "com.fasterxml.jackson.annotation.JsonSetter$Value", "com.fasterxml.jackson.databind.node.DecimalNode", "com.fasterxml.jackson.annotation.JsonIgnoreProperties$Value", "com.fasterxml.jackson.databind.introspect.AnnotationCollector$EmptyCollector", "com.fasterxml.jackson.databind.deser.Deserializers", "com.fasterxml.jackson.databind.util.Annotations", "com.fasterxml.jackson.databind.ser.std.CollectionSerializer", "com.fasterxml.jackson.databind.deser.KeyDeserializers", "com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable", "com.fasterxml.jackson.databind.util.CompactStringObjectMap", "com.fasterxml.jackson.databind.introspect.VisibilityChecker$Std", "com.fasterxml.jackson.databind.type.CollectionLikeType", "com.fasterxml.jackson.core.FormatFeature", "com.fasterxml.jackson.core.TreeNode", "com.fasterxml.jackson.databind.node.NumericNode", "com.fasterxml.jackson.databind.deser.ValueInstantiator", "com.fasterxml.jackson.databind.ser.std.StaticListSerializerBase", "com.fasterxml.jackson.databind.type.ResolvedRecursiveType", "com.fasterxml.jackson.databind.introspect.AnnotatedClass$Creators", "com.fasterxml.jackson.databind.deser.Deserializers$Base", "com.fasterxml.jackson.databind.introspect.BasicClassIntrospector", "com.fasterxml.jackson.core.base.ParserMinimalBase", "com.fasterxml.jackson.databind.deser.std.MapEntryDeserializer", "com.fasterxml.jackson.databind.deser.BeanDeserializerBase", "com.fasterxml.jackson.databind.ObjectMapper$DefaultTyping", "com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition", "com.fasterxml.jackson.annotation.JsonSetter", "com.fasterxml.jackson.databind.util.Converter", "com.fasterxml.jackson.databind.ser.std.FileSerializer", "com.fasterxml.jackson.core.SerializableString", "com.fasterxml.jackson.databind.deser.ValueInstantiators", "com.fasterxml.jackson.core.Versioned", "com.fasterxml.jackson.databind.introspect.VirtualAnnotatedMember", "com.fasterxml.jackson.databind.introspect.BasicBeanDescription", "com.fasterxml.jackson.databind.deser.std.EnumSetDeserializer", "com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer", "com.fasterxml.jackson.annotation.JsonAlias", "com.fasterxml.jackson.core.util.RequestPayload", "com.fasterxml.jackson.databind.introspect.AnnotatedMember", "com.fasterxml.jackson.databind.JsonSerializable", "com.fasterxml.jackson.databind.deser.impl.MergingSettableBeanProperty", "com.fasterxml.jackson.databind.BeanDescription", "com.fasterxml.jackson.databind.deser.impl.TypeWrappedDeserializer", "com.fasterxml.jackson.core.filter.JsonPointerBasedFilter", "com.fasterxml.jackson.databind.introspect.AnnotatedMethodMap", "com.fasterxml.jackson.databind.introspect.AnnotatedWithParams", "com.fasterxml.jackson.core.Base64Variant", "com.fasterxml.jackson.databind.exc.IgnoredPropertyException", "com.fasterxml.jackson.databind.jsontype.impl.AsExistingPropertyTypeSerializer", "com.fasterxml.jackson.databind.annotation.JsonNaming", "com.fasterxml.jackson.annotation.JsonEnumDefaultValue", "com.fasterxml.jackson.core.io.MergedStream", "com.fasterxml.jackson.databind.ser.SerializerFactory", "com.fasterxml.jackson.annotation.JsonPropertyOrder", "com.fasterxml.jackson.databind.type.SimpleType", "com.fasterxml.jackson.databind.ser.ContextualSerializer", "com.fasterxml.jackson.databind.DeserializationConfig", "com.fasterxml.jackson.databind.MapperFeature", "com.fasterxml.jackson.core.util.InternCache", "com.fasterxml.jackson.databind.ser.std.ClassSerializer", "com.fasterxml.jackson.databind.Module$SetupContext", "com.fasterxml.jackson.databind.ext.Java7SupportImpl", "com.fasterxml.jackson.databind.util.ClassUtil", "com.fasterxml.jackson.databind.node.ContainerNode", "com.fasterxml.jackson.databind.deser.std.FactoryBasedEnumDeserializer", "com.fasterxml.jackson.databind.ser.std.NumberSerializers$LongSerializer", "com.fasterxml.jackson.databind.deser.BeanDeserializerFactory", "com.fasterxml.jackson.databind.ser.std.StdSerializer", "com.fasterxml.jackson.databind.ser.BeanSerializerFactory", "com.fasterxml.jackson.databind.PropertyNamingStrategy", "com.fasterxml.jackson.annotation.JsonPropertyDescription", "com.fasterxml.jackson.databind.jsonschema.SchemaAware", "com.fasterxml.jackson.databind.AbstractTypeResolver", "com.fasterxml.jackson.annotation.JacksonAnnotationsInside", "com.fasterxml.jackson.databind.introspect.AnnotatedClassResolver", "com.fasterxml.jackson.databind.BeanProperty$Bogus", "com.fasterxml.jackson.databind.ser.std.NumberSerializers$DoubleSerializer", "com.fasterxml.jackson.databind.ser.std.ByteBufferSerializer", "com.fasterxml.jackson.databind.deser.std.StdDelegatingDeserializer", "com.fasterxml.jackson.core.Base64Variants", "com.fasterxml.jackson.databind.jsonFormatVisitors.JsonObjectFormatVisitor", "com.fasterxml.jackson.databind.deser.std.ArrayBlockingQueueDeserializer", "com.fasterxml.jackson.databind.util.ArrayBuilders", "com.fasterxml.jackson.databind.ser.std.IterableSerializer", "com.fasterxml.jackson.databind.ser.std.StdJdkSerializers$AtomicIntegerSerializer", "com.fasterxml.jackson.databind.ser.VirtualBeanPropertyWriter", "com.fasterxml.jackson.core.io.IOContext", "com.fasterxml.jackson.core.PrettyPrinter", "com.fasterxml.jackson.databind.util.RawValue", "com.fasterxml.jackson.core.base.GeneratorBase", "com.fasterxml.jackson.databind.exc.PropertyBindingException", "com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector", "com.fasterxml.jackson.databind.ser.BeanSerializer", "com.fasterxml.jackson.databind.jsontype.TypeSerializer$1", "com.fasterxml.jackson.databind.ser.DefaultSerializerProvider", "com.fasterxml.jackson.databind.node.NullNode", "com.fasterxml.jackson.databind.deser.ValueInstantiator$Base", "com.fasterxml.jackson.core.util.Separators", "com.fasterxml.jackson.databind.ser.BeanSerializerModifier", "com.fasterxml.jackson.databind.jsontype.NamedType", "com.fasterxml.jackson.databind.ext.CoreXMLDeserializers$Std", "com.fasterxml.jackson.databind.jsontype.TypeResolverBuilder", "com.fasterxml.jackson.databind.introspect.ObjectIdInfo", "com.fasterxml.jackson.core.json.JsonWriteContext", "com.fasterxml.jackson.databind.introspect.NopAnnotationIntrospector", "com.fasterxml.jackson.databind.ser.impl.MapEntrySerializer", "com.fasterxml.jackson.annotation.ObjectIdGenerators$PropertyGenerator", "com.fasterxml.jackson.annotation.JacksonInject", "com.fasterxml.jackson.core.io.UTF8Writer", "com.fasterxml.jackson.databind.BeanProperty", "com.fasterxml.jackson.core.Version", "com.fasterxml.jackson.databind.deser.impl.ReadableObjectId$Referring", "com.fasterxml.jackson.databind.introspect.POJOPropertiesCollector", "com.fasterxml.jackson.databind.ser.std.StdDelegatingSerializer", "com.fasterxml.jackson.core.io.InputDecorator", "com.fasterxml.jackson.databind.introspect.TypeResolutionContext", "com.fasterxml.jackson.core.base.ParserBase", "com.fasterxml.jackson.databind.ser.std.NumberSerializers$IntLikeSerializer", "com.fasterxml.jackson.databind.node.BinaryNode", "com.fasterxml.jackson.databind.introspect.AnnotationMap", "com.fasterxml.jackson.databind.introspect.AnnotatedFieldCollector", "com.fasterxml.jackson.databind.ser.std.ToStringSerializer", "com.fasterxml.jackson.databind.deser.DataFormatReaders", "com.fasterxml.jackson.core.JsonGenerator", "com.fasterxml.jackson.databind.deser.DefaultDeserializationContext", "com.fasterxml.jackson.databind.ser.Serializers", "com.fasterxml.jackson.databind.type.ClassStack", "com.fasterxml.jackson.databind.ext.OptionalHandlerFactory", "com.fasterxml.jackson.core.JsonEncoding", "com.fasterxml.jackson.core.JsonGenerationException", "com.fasterxml.jackson.annotation.JsonProperty$Access", "com.fasterxml.jackson.databind.ser.std.JsonValueSerializer", "com.fasterxml.jackson.core.TreeCodec", "com.fasterxml.jackson.databind.deser.impl.SetterlessProperty", "com.fasterxml.jackson.annotation.JsonAutoDetect$Value", "com.fasterxml.jackson.databind.jsontype.impl.AsArrayTypeDeserializer", "com.fasterxml.jackson.core.json.UTF8JsonGenerator", "com.fasterxml.jackson.databind.ser.std.EnumSetSerializer", "com.fasterxml.jackson.databind.ser.std.SerializableSerializer", "com.fasterxml.jackson.databind.introspect.Annotated", "com.fasterxml.jackson.core.type.WritableTypeId", "com.fasterxml.jackson.databind.deser.std.StdKeyDeserializer$DelegatingKD", "com.fasterxml.jackson.databind.ser.impl.ReadOnlyClassToSerializerMap", "com.fasterxml.jackson.databind.deser.std.StdValueInstantiator", "com.fasterxml.jackson.databind.util.TokenBuffer", "com.fasterxml.jackson.databind.annotation.NoClass", "com.fasterxml.jackson.core.util.DefaultPrettyPrinter$NopIndenter", "com.fasterxml.jackson.core.JsonParser$NumberType", "com.fasterxml.jackson.core.JsonGenerator$1", "com.fasterxml.jackson.databind.type.PlaceholderForType", "com.fasterxml.jackson.databind.JsonMappingException$Reference", "com.fasterxml.jackson.core.json.WriterBasedJsonGenerator", "com.fasterxml.jackson.databind.deser.SettableBeanProperty$Delegating", "com.fasterxml.jackson.databind.jsontype.TypeDeserializer", "com.fasterxml.jackson.databind.deser.std.JdkDeserializers", "com.fasterxml.jackson.databind.node.LongNode", "com.fasterxml.jackson.databind.deser.CreatorProperty", "com.fasterxml.jackson.databind.deser.std.StdKeyDeserializer$StringCtorKeyDeserializer", "com.fasterxml.jackson.annotation.JsonAnyGetter", "com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder$1", "com.fasterxml.jackson.core.type.TypeReference", "com.fasterxml.jackson.databind.introspect.ConcreteBeanPropertyBase", "com.fasterxml.jackson.core.JsonParseException", "com.fasterxml.jackson.databind.annotation.JacksonStdImpl", "com.fasterxml.jackson.databind.ser.std.TokenBufferSerializer", "com.fasterxml.jackson.databind.type.TypeBindings$TypeParamStash", "com.fasterxml.jackson.annotation.JsonBackReference", "com.fasterxml.jackson.databind.ObjectMapper$3", "com.fasterxml.jackson.databind.deser.impl.CreatorCandidate", "com.fasterxml.jackson.databind.cfg.SerializerFactoryConfig", "com.fasterxml.jackson.databind.ser.std.MapSerializer", "com.fasterxml.jackson.annotation.JsonAnySetter", "com.fasterxml.jackson.databind.ser.std.SqlDateSerializer", "com.fasterxml.jackson.databind.util.RootNameLookup", "com.fasterxml.jackson.databind.introspect.AnnotatedClass", "com.fasterxml.jackson.databind.ser.impl.ReadOnlyClassToSerializerMap$Bucket", "com.fasterxml.jackson.databind.deser.std.AtomicReferenceDeserializer", "com.fasterxml.jackson.databind.ser.impl.FailingSerializer", "com.fasterxml.jackson.databind.JsonMappingException", "com.fasterxml.jackson.core.io.OutputDecorator", "com.fasterxml.jackson.databind.deser.std.AtomicBooleanDeserializer", "com.fasterxml.jackson.databind.deser.std.StdScalarDeserializer", "com.fasterxml.jackson.databind.ser.impl.TypeWrappedSerializer", "com.fasterxml.jackson.annotation.JsonTypeInfo$As", "com.fasterxml.jackson.databind.ser.std.SqlTimeSerializer", "com.fasterxml.jackson.databind.util.BeanUtil", "com.fasterxml.jackson.databind.DatabindContext", "com.fasterxml.jackson.databind.node.ObjectNode", "com.fasterxml.jackson.databind.cfg.ConfigOverride", "com.fasterxml.jackson.core.JsonParser$Feature", "com.fasterxml.jackson.core.JsonPointer", "com.fasterxml.jackson.core.io.SerializedString", "com.fasterxml.jackson.annotation.JsonMerge", "com.fasterxml.jackson.core.util.DefaultPrettyPrinter$FixedSpaceIndenter", "com.fasterxml.jackson.databind.deser.DeserializationProblemHandler", "com.fasterxml.jackson.annotation.JsonFormat$Shape", "com.fasterxml.jackson.databind.introspect.AnnotationCollector", "com.fasterxml.jackson.annotation.PropertyAccessor", "com.fasterxml.jackson.databind.introspect.AnnotatedField", "com.fasterxml.jackson.databind.deser.std.ContainerDeserializerBase", "com.fasterxml.jackson.annotation.JsonFormat$Feature", "com.fasterxml.jackson.databind.deser.ContextualDeserializer", "com.fasterxml.jackson.databind.ser.std.ArraySerializerBase", "com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder$Linked", "com.fasterxml.jackson.annotation.ObjectIdGenerator", "com.fasterxml.jackson.databind.cfg.HandlerInstantiator", "com.fasterxml.jackson.databind.ser.std.CalendarSerializer", "com.fasterxml.jackson.databind.annotation.JsonValueInstantiator", "com.fasterxml.jackson.databind.ext.Java7Support", "com.fasterxml.jackson.databind.ser.std.BooleanSerializer$AsNumber", "com.fasterxml.jackson.databind.exc.InvalidDefinitionException", "com.fasterxml.jackson.databind.ser.std.BooleanSerializer", "com.fasterxml.jackson.annotation.JsonAutoDetect$1", "com.fasterxml.jackson.databind.introspect.ClassIntrospector", "com.fasterxml.jackson.annotation.JsonProperty", "com.fasterxml.jackson.databind.JsonSerializable$Base", "com.fasterxml.jackson.core.sym.CharsToNameCanonicalizer", "com.fasterxml.jackson.databind.ObjectMapper$DefaultTypeResolverBuilder", "com.fasterxml.jackson.databind.util.AccessPattern", "com.fasterxml.jackson.databind.cfg.ConfigOverride$Empty", "com.fasterxml.jackson.databind.deser.std.CollectionDeserializer", "com.fasterxml.jackson.databind.node.TreeTraversingParser", "com.fasterxml.jackson.databind.jsontype.TypeSerializer", "com.fasterxml.jackson.databind.jsonschema.JsonSchema", "com.fasterxml.jackson.databind.deser.std.UUIDDeserializer", "com.fasterxml.jackson.databind.type.TypeFactory", "com.fasterxml.jackson.databind.deser.std.FromStringDeserializer$Std", "com.fasterxml.jackson.databind.type.ArrayType", "com.fasterxml.jackson.databind.deser.impl.ObjectIdReader", "com.fasterxml.jackson.databind.jsontype.impl.AsExternalTypeSerializer", "com.fasterxml.jackson.databind.util.Named", "com.fasterxml.jackson.core.io.JsonStringEncoder", "com.fasterxml.jackson.core.util.JsonParserDelegate", "com.fasterxml.jackson.databind.cfg.ConfigOverrides", "com.fasterxml.jackson.databind.type.CollectionType", "com.fasterxml.jackson.databind.deser.std.StringCollectionDeserializer", "com.fasterxml.jackson.databind.ser.std.StdScalarSerializer", "com.fasterxml.jackson.annotation.JsonAutoDetect", "com.fasterxml.jackson.core.format.InputAccessor", "com.fasterxml.jackson.databind.node.ValueNode", "com.fasterxml.jackson.databind.ser.impl.IteratorSerializer", "com.fasterxml.jackson.databind.deser.std.EnumMapDeserializer", "com.fasterxml.jackson.databind.ser.BasicSerializerFactory", "com.fasterxml.jackson.databind.util.ClassUtil$Ctor", "com.fasterxml.jackson.databind.ext.NioPathDeserializer", "com.fasterxml.jackson.databind.deser.SettableBeanProperty", "com.fasterxml.jackson.databind.node.JsonNodeCreator", "com.fasterxml.jackson.core.async.NonBlockingInputFeeder", "com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper", "com.fasterxml.jackson.databind.jsontype.impl.TypeDeserializerBase", "com.fasterxml.jackson.core.json.ReaderBasedJsonParser", "com.fasterxml.jackson.core.JsonLocation", "com.fasterxml.jackson.databind.exc.MismatchedInputException", "com.fasterxml.jackson.core.json.ByteSourceJsonBootstrapper", "com.fasterxml.jackson.databind.node.FloatNode", "com.fasterxml.jackson.databind.node.IntNode", "com.fasterxml.jackson.databind.type.TypeParser", "com.fasterxml.jackson.databind.jsontype.SubtypeResolver", "com.fasterxml.jackson.core.ObjectCodec", "com.fasterxml.jackson.core.json.JsonReadContext", "com.fasterxml.jackson.databind.ser.std.EnumSerializer", "com.fasterxml.jackson.databind.cfg.ContextAttributes$Impl", "com.fasterxml.jackson.core.util.DefaultPrettyPrinter", "com.fasterxml.jackson.databind.jsontype.impl.AsWrapperTypeDeserializer", "com.fasterxml.jackson.databind.KeyDeserializer", "com.fasterxml.jackson.core.util.BufferRecycler", "com.fasterxml.jackson.databind.deser.impl.ErrorThrowingDeserializer", "com.fasterxml.jackson.databind.deser.BeanDeserializer$BeanReferring", "com.fasterxml.jackson.databind.deser.impl.PropertyBasedObjectIdGenerator", "com.fasterxml.jackson.databind.ser.impl.StringCollectionSerializer", "com.fasterxml.jackson.annotation.ObjectIdResolver", "com.fasterxml.jackson.databind.DeserializationContext", "com.fasterxml.jackson.databind.ser.std.NumberSerializers$Base", "com.fasterxml.jackson.databind.ser.std.InetSocketAddressSerializer", "com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder$10", "com.fasterxml.jackson.databind.ser.std.ObjectArraySerializer", "com.fasterxml.jackson.databind.introspect.AnnotatedMethodCollector", "com.fasterxml.jackson.databind.node.DoubleNode", "com.fasterxml.jackson.databind.ser.PropertyWriter", "com.fasterxml.jackson.databind.deser.impl.CreatorCandidate$Param", "com.fasterxml.jackson.databind.util.EnumResolver", "com.fasterxml.jackson.databind.type.ReferenceType", "com.fasterxml.jackson.core.util.ByteArrayBuilder", "com.fasterxml.jackson.databind.ser.impl.IndexedStringListSerializer", "com.fasterxml.jackson.core.sym.CharsToNameCanonicalizer$TableInfo", "com.fasterxml.jackson.databind.ser.std.NumberSerializer", "com.fasterxml.jackson.databind.introspect.AnnotationCollector$NoAnnotations", "com.fasterxml.jackson.databind.Module", "com.fasterxml.jackson.annotation.JsonView", "com.fasterxml.jackson.databind.AnnotationIntrospector", "com.fasterxml.jackson.databind.ser.std.DateSerializer", "com.fasterxml.jackson.databind.ser.ContainerSerializer", "com.fasterxml.jackson.databind.ser.std.NullSerializer", "com.fasterxml.jackson.databind.deser.std.StringDeserializer", "com.fasterxml.jackson.databind.deser.std.StringArrayDeserializer", "com.fasterxml.jackson.annotation.JsonGetter", "com.fasterxml.jackson.databind.introspect.AnnotatedFieldCollector$FieldBuilder", "com.fasterxml.jackson.databind.exc.InvalidTypeIdException", "com.fasterxml.jackson.databind.DeserializationFeature", "com.fasterxml.jackson.databind.node.POJONode", "com.fasterxml.jackson.databind.deser.impl.BeanAsArrayDeserializer", "com.fasterxml.jackson.databind.ObjectReader", "com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder", "com.fasterxml.jackson.databind.jsontype.impl.AsArrayTypeSerializer", "com.fasterxml.jackson.databind.node.BaseJsonNode", "com.fasterxml.jackson.databind.node.BigIntegerNode", "com.fasterxml.jackson.databind.util.LRUMap", "com.fasterxml.jackson.databind.JsonDeserializer", "com.fasterxml.jackson.databind.util.SimpleBeanPropertyDefinition", "com.fasterxml.jackson.databind.deser.impl.MethodProperty", "com.fasterxml.jackson.annotation.JsonRawValue", "com.fasterxml.jackson.core.util.DefaultIndenter", "com.fasterxml.jackson.databind.introspect.MemberKey", "com.fasterxml.jackson.databind.node.ArrayNode", "com.fasterxml.jackson.annotation.JsonTypeInfo$Id", "com.fasterxml.jackson.annotation.JsonAutoDetect$Visibility", "com.fasterxml.jackson.databind.ser.impl.AttributePropertyWriter", "com.fasterxml.jackson.core.util.JsonGeneratorDelegate", "com.fasterxml.jackson.databind.deser.std.MapDeserializer", "com.fasterxml.jackson.databind.exc.InvalidFormatException", "com.fasterxml.jackson.core.io.CharacterEscapes", "com.fasterxml.jackson.databind.deser.std.TokenBufferDeserializer", "com.fasterxml.jackson.databind.jsontype.impl.AsExternalTypeDeserializer", "com.fasterxml.jackson.databind.introspect.TypeResolutionContext$Basic", "com.fasterxml.jackson.core.type.ResolvedType", "com.fasterxml.jackson.databind.deser.impl.CreatorCollector", "com.fasterxml.jackson.databind.ser.std.NumberSerializers", "com.fasterxml.jackson.databind.annotation.JsonSerialize", "com.fasterxml.jackson.annotation.JsonIgnore", "com.fasterxml.jackson.databind.ser.impl.PropertyBasedObjectIdGenerator", "com.fasterxml.jackson.databind.introspect.AnnotatedMethod", "com.fasterxml.jackson.databind.jsontype.TypeIdResolver", "com.fasterxml.jackson.databind.util.ConstantValueInstantiator", "com.fasterxml.jackson.databind.introspect.VisibilityChecker", "com.fasterxml.jackson.databind.introspect.AnnotatedParameter", "com.fasterxml.jackson.core.JsonParser", "com.fasterxml.jackson.databind.ser.BeanPropertyWriter", "com.fasterxml.jackson.databind.ser.std.NumberSerializers$FloatSerializer", "com.fasterxml.jackson.databind.AnnotationIntrospector$ReferenceProperty$Type", "com.fasterxml.jackson.core.JsonProcessingException", "com.fasterxml.jackson.core.JsonStreamContext", "com.fasterxml.jackson.core.format.MatchStrength", "com.fasterxml.jackson.core.sym.CharsToNameCanonicalizer$Bucket", "com.fasterxml.jackson.core.io.UTF32Reader", "com.fasterxml.jackson.databind.introspect.CollectorBase", "com.fasterxml.jackson.annotation.JsonCreator", "com.fasterxml.jackson.databind.cfg.MutableConfigOverride", "com.fasterxml.jackson.databind.deser.std.ObjectArrayDeserializer", "com.fasterxml.jackson.databind.deser.DefaultDeserializationContext$Impl", "com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException", "com.fasterxml.jackson.databind.introspect.AnnotatedMethodCollector$MethodBuilder", "com.fasterxml.jackson.core.filter.TokenFilter", "com.fasterxml.jackson.databind.util.ArrayIterator", "com.fasterxml.jackson.core.io.CharTypes", "com.fasterxml.jackson.databind.ser.std.StdJdkSerializers$AtomicBooleanSerializer", "com.fasterxml.jackson.databind.ser.std.StdJdkSerializers$AtomicLongSerializer", "com.fasterxml.jackson.databind.ser.std.InetAddressSerializer", "com.fasterxml.jackson.databind.jsontype.impl.ClassNameIdResolver", "com.fasterxml.jackson.databind.deser.impl.CreatorCollector$StdTypeConstructor", "com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeSerializer", "com.fasterxml.jackson.databind.jsontype.impl.StdSubtypeResolver", "com.fasterxml.jackson.databind.deser.std.StdDeserializer", "com.fasterxml.jackson.annotation.JsonInclude$Include", "com.fasterxml.jackson.databind.ext.CoreXMLDeserializers", "com.fasterxml.jackson.core.sym.ByteQuadsCanonicalizer$TableInfo", "com.fasterxml.jackson.databind.JsonSerializer", "com.fasterxml.jackson.databind.cfg.DeserializerFactoryConfig", "com.fasterxml.jackson.databind.JsonNode", "com.fasterxml.jackson.databind.deser.impl.ObjectIdValueProperty", "com.fasterxml.jackson.databind.ser.ResolvableSerializer", "com.fasterxml.jackson.databind.PropertyName", "com.fasterxml.jackson.annotation.JsonCreator$Mode", "com.fasterxml.jackson.databind.jsontype.impl.AsWrapperTypeSerializer", "com.fasterxml.jackson.core.json.async.NonBlockingJsonParser", "com.fasterxml.jackson.databind.deser.BasicDeserializerFactory", "com.fasterxml.jackson.databind.ser.std.ReferenceTypeSerializer", "com.fasterxml.jackson.databind.node.JsonNodeFactory", "com.fasterxml.jackson.databind.ser.impl.StringArraySerializer", "com.fasterxml.jackson.databind.deser.std.StackTraceElementDeserializer", "com.fasterxml.jackson.databind.cfg.MapperConfig", "com.fasterxml.jackson.databind.deser.std.StdKeyDeserializer$StringFactoryKeyDeserializer", "com.fasterxml.jackson.annotation.JsonManagedReference", "com.fasterxml.jackson.databind.deser.impl.InnerClassProperty", "com.fasterxml.jackson.databind.annotation.JsonDeserialize", "com.fasterxml.jackson.databind.util.ObjectBuffer", "com.fasterxml.jackson.databind.jsontype.impl.TypeSerializerBase", "com.fasterxml.jackson.core.type.WritableTypeId$Inclusion", "com.fasterxml.jackson.core.io.JsonEOFException", "com.fasterxml.jackson.databind.InjectableValues", "com.fasterxml.jackson.databind.MappingJsonFactory", "com.fasterxml.jackson.databind.deser.std.ThrowableDeserializer", "com.fasterxml.jackson.databind.ser.std.TimeZoneSerializer", "com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder$2", "com.fasterxml.jackson.core.json.async.NonBlockingJsonParserBase", "com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder$1", "com.fasterxml.jackson.databind.introspect.AnnotationIntrospectorPair", "com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder$9", "com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder$8", "com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder$7", "com.fasterxml.jackson.databind.ext.NioPathSerializer", "com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder$6", "com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder$5", "com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder$4", "com.fasterxml.jackson.databind.ser.std.StringSerializer", "com.fasterxml.jackson.databind.JavaType", "com.fasterxml.jackson.databind.deser.BeanDeserializer", "com.fasterxml.jackson.databind.ser.std.AsArraySerializerBase", "com.fasterxml.jackson.databind.util.ClassUtil$EnumTypeLocator", "com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase", "com.fasterxml.jackson.databind.deser.NullValueProvider", "com.fasterxml.jackson.databind.deser.BuilderBasedDeserializer", "com.fasterxml.jackson.core.util.TextBuffer", "com.fasterxml.jackson.annotation.JacksonAnnotationValue", "com.fasterxml.jackson.core.JsonFactory", "com.fasterxml.jackson.annotation.JsonTypeInfo$None", "com.fasterxml.jackson.databind.util.NameTransformer", "com.fasterxml.jackson.databind.deser.impl.FailingDeserializer", "com.fasterxml.jackson.databind.util.EnumValues", "com.fasterxml.jackson.databind.deser.impl.BeanPropertyMap", "com.fasterxml.jackson.databind.node.BooleanNode", "com.fasterxml.jackson.databind.node.ShortNode", "com.fasterxml.jackson.databind.deser.std.StdKeyDeserializer$EnumKD", "com.fasterxml.jackson.databind.util.StdDateFormat", "com.fasterxml.jackson.databind.SerializationConfig", "com.fasterxml.jackson.annotation.JsonFormat$Value", "com.fasterxml.jackson.databind.PropertyMetadata", "com.fasterxml.jackson.databind.ser.std.BeanSerializerBase", "com.fasterxml.jackson.annotation.JsonInclude$Value", "com.fasterxml.jackson.databind.deser.std.ReferenceTypeDeserializer", "com.fasterxml.jackson.annotation.JsonValue", "com.fasterxml.jackson.databind.deser.ResolvableDeserializer", "com.fasterxml.jackson.databind.deser.std.StdKeyDeserializer", "com.fasterxml.jackson.databind.util.TypeKey", "com.fasterxml.jackson.databind.deser.impl.NullsConstantProvider", "com.fasterxml.jackson.databind.ser.FilterProvider", "com.fasterxml.jackson.databind.introspect.SimpleMixInResolver", "com.fasterxml.jackson.annotation.JsonFormat", "com.fasterxml.jackson.databind.ser.std.StdJdkSerializers", "com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer", "com.fasterxml.jackson.databind.deser.DeserializerFactory", "com.fasterxml.jackson.databind.jsontype.impl.SubTypeValidator", "com.fasterxml.jackson.databind.type.TypeModifier", "com.fasterxml.jackson.annotation.JsonTypeInfo", "com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder", "com.fasterxml.jackson.annotation.JsonUnwrapped", "com.fasterxml.jackson.core.filter.FilteringParserDelegate", "com.fasterxml.jackson.databind.introspect.AnnotationCollector$NCollector", "com.fasterxml.jackson.databind.deser.impl.ObjectIdReferenceProperty", "com.fasterxml.jackson.databind.introspect.ClassIntrospector$MixInResolver", "com.fasterxml.jackson.core.json.JsonGeneratorImpl", "com.fasterxml.jackson.databind.deser.AbstractDeserializer", "com.fasterxml.jackson.databind.ser.impl.IndexedListSerializer", "com.fasterxml.jackson.core.sym.ByteQuadsCanonicalizer", "com.fasterxml.jackson.databind.type.TypeBindings$AsKey", "com.fasterxml.jackson.core.JsonFactory$Feature", "com.fasterxml.jackson.databind.AnnotationIntrospector$ReferenceProperty", "com.fasterxml.jackson.databind.ser.SerializerCache", "com.fasterxml.jackson.databind.ser.std.NumberSerializers$IntegerSerializer", "com.fasterxml.jackson.core.io.DataOutputAsStream", "com.fasterxml.jackson.core.io.SegmentedStringWriter", "com.fasterxml.jackson.databind.type.TypeBindings", "com.fasterxml.jackson.databind.ser.impl.WritableObjectId", "com.fasterxml.jackson.databind.deser.std.JsonLocationInstantiator", "com.fasterxml.jackson.core.JsonToken", "com.fasterxml.jackson.databind.SerializerProvider", "com.fasterxml.jackson.databind.cfg.ContextAttributes", "com.fasterxml.jackson.databind.deser.std.ByteBufferDeserializer", "com.fasterxml.jackson.annotation.JsonIdentityInfo", "com.fasterxml.jackson.databind.deser.ValueInstantiator$Gettable", "com.fasterxml.jackson.core.JsonGenerator$Feature", "com.fasterxml.jackson.databind.cfg.BaseSettings", "com.fasterxml.jackson.databind.ObjectMapper", "com.fasterxml.jackson.databind.ser.DefaultSerializerProvider$Impl", "com.fasterxml.jackson.databind.deser.DeserializerCache", "com.fasterxml.jackson.databind.cfg.ConfigFeature", "com.fasterxml.jackson.core.json.UTF8StreamJsonParser", "com.fasterxml.jackson.core.FormatSchema", "com.fasterxml.jackson.databind.SerializationFeature", "com.fasterxml.jackson.annotation.JsonIgnoreType", "com.fasterxml.jackson.databind.introspect.AnnotationCollector$OneCollector" ); } private static void initMocksToAvoidTimeoutsInTheTests() throws ClassNotFoundException { mock(Class.forName("java.lang.Enum", false, ClassUtil_ESTest_scaffolding.class.getClassLoader())); } private static void resetClasses() { org.evosuite.runtime.classhandling.ClassResetter.getInstance().setClassLoader(ClassUtil_ESTest_scaffolding.class.getClassLoader()); org.evosuite.runtime.classhandling.ClassStateSupport.resetClasses( "com.fasterxml.jackson.databind.util.ClassUtil", "com.fasterxml.jackson.databind.util.ClassUtil$EnumTypeLocator", "com.fasterxml.jackson.databind.util.ClassUtil$Ctor", "com.fasterxml.jackson.core.JsonGenerator$Feature", "com.fasterxml.jackson.core.JsonProcessingException", "com.fasterxml.jackson.databind.JsonMappingException", "com.fasterxml.jackson.databind.type.TypeBindings", "com.fasterxml.jackson.core.type.ResolvedType", "com.fasterxml.jackson.databind.JavaType", "com.fasterxml.jackson.databind.type.TypeBase", "com.fasterxml.jackson.databind.type.MapLikeType", "com.fasterxml.jackson.databind.type.MapType", "com.fasterxml.jackson.databind.JsonMappingException$Reference", "com.fasterxml.jackson.core.TreeCodec", "com.fasterxml.jackson.core.ObjectCodec", "com.fasterxml.jackson.databind.type.SimpleType", "com.fasterxml.jackson.databind.AnnotationIntrospector", "com.fasterxml.jackson.databind.ext.Java7SupportImpl", "com.fasterxml.jackson.databind.ext.Java7Support", "com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector", "com.fasterxml.jackson.databind.util.LRUMap", "com.fasterxml.jackson.databind.cfg.BaseSettings", "com.fasterxml.jackson.databind.type.TypeParser", "com.fasterxml.jackson.databind.type.TypeFactory", "com.fasterxml.jackson.databind.util.StdDateFormat", "com.fasterxml.jackson.core.Base64Variant", "com.fasterxml.jackson.core.Base64Variants", "com.fasterxml.jackson.databind.ObjectMapper", "com.fasterxml.jackson.core.io.SerializedString", "com.fasterxml.jackson.core.util.DefaultPrettyPrinter", "com.fasterxml.jackson.core.JsonFactory", "com.fasterxml.jackson.databind.MappingJsonFactory", "com.fasterxml.jackson.core.sym.CharsToNameCanonicalizer", "com.fasterxml.jackson.core.sym.CharsToNameCanonicalizer$TableInfo", "com.fasterxml.jackson.core.sym.ByteQuadsCanonicalizer", "com.fasterxml.jackson.core.sym.ByteQuadsCanonicalizer$TableInfo", "com.fasterxml.jackson.databind.jsontype.SubtypeResolver", "com.fasterxml.jackson.databind.jsontype.impl.StdSubtypeResolver", "com.fasterxml.jackson.databind.util.RootNameLookup", "com.fasterxml.jackson.databind.introspect.SimpleMixInResolver", "com.fasterxml.jackson.databind.introspect.ClassIntrospector", "com.fasterxml.jackson.databind.introspect.AnnotationCollector$NoAnnotations", "com.fasterxml.jackson.databind.introspect.AnnotationCollector", "com.fasterxml.jackson.databind.introspect.AnnotatedClassResolver", "com.fasterxml.jackson.databind.introspect.Annotated", "com.fasterxml.jackson.databind.introspect.AnnotatedClass$Creators", "com.fasterxml.jackson.databind.introspect.AnnotatedClass", "com.fasterxml.jackson.databind.BeanDescription", "com.fasterxml.jackson.databind.introspect.BasicBeanDescription", "com.fasterxml.jackson.databind.introspect.BasicClassIntrospector", "com.fasterxml.jackson.databind.cfg.ConfigOverrides", "com.fasterxml.jackson.annotation.JsonInclude$Include", "com.fasterxml.jackson.annotation.JsonInclude$Value", "com.fasterxml.jackson.annotation.Nulls", "com.fasterxml.jackson.annotation.JsonSetter$Value", "com.fasterxml.jackson.annotation.JsonAutoDetect$Visibility", "com.fasterxml.jackson.databind.introspect.VisibilityChecker$Std", "com.fasterxml.jackson.annotation.JsonFormat$Shape", "com.fasterxml.jackson.annotation.JsonFormat$Features", "com.fasterxml.jackson.annotation.JsonFormat$Value", "com.fasterxml.jackson.databind.cfg.MapperConfig", "com.fasterxml.jackson.databind.cfg.ConfigOverride", "com.fasterxml.jackson.databind.cfg.ConfigOverride$Empty", "com.fasterxml.jackson.databind.MapperFeature", "com.fasterxml.jackson.databind.cfg.MapperConfigBase", "com.fasterxml.jackson.core.util.DefaultPrettyPrinter$NopIndenter", "com.fasterxml.jackson.core.util.DefaultPrettyPrinter$FixedSpaceIndenter", "com.fasterxml.jackson.core.util.DefaultIndenter", "com.fasterxml.jackson.core.util.Separators", "com.fasterxml.jackson.core.PrettyPrinter", "com.fasterxml.jackson.databind.SerializationConfig", "com.fasterxml.jackson.databind.cfg.ContextAttributes", "com.fasterxml.jackson.databind.cfg.ContextAttributes$Impl", "com.fasterxml.jackson.databind.SerializationFeature", "com.fasterxml.jackson.databind.DeserializationConfig", "com.fasterxml.jackson.databind.node.JsonNodeFactory", "com.fasterxml.jackson.databind.DatabindContext", "com.fasterxml.jackson.databind.JsonSerializer", "com.fasterxml.jackson.databind.ser.std.StdSerializer", "com.fasterxml.jackson.databind.ser.impl.FailingSerializer", "com.fasterxml.jackson.databind.ser.impl.UnknownSerializer", "com.fasterxml.jackson.databind.SerializerProvider", "com.fasterxml.jackson.databind.ser.DefaultSerializerProvider", "com.fasterxml.jackson.databind.ser.DefaultSerializerProvider$Impl", "com.fasterxml.jackson.databind.ser.std.NullSerializer", "com.fasterxml.jackson.databind.ser.SerializerCache", "com.fasterxml.jackson.databind.DeserializationContext", "com.fasterxml.jackson.databind.deser.DefaultDeserializationContext", "com.fasterxml.jackson.databind.deser.DefaultDeserializationContext$Impl", "com.fasterxml.jackson.databind.deser.DeserializerFactory", "com.fasterxml.jackson.databind.PropertyName", "com.fasterxml.jackson.databind.deser.BasicDeserializerFactory", "com.fasterxml.jackson.databind.deser.std.StdKeyDeserializers", "com.fasterxml.jackson.databind.cfg.DeserializerFactoryConfig", "com.fasterxml.jackson.databind.deser.BeanDeserializerFactory", "com.fasterxml.jackson.databind.deser.DeserializerCache", "com.fasterxml.jackson.databind.ser.SerializerFactory", "com.fasterxml.jackson.databind.ser.std.StdScalarSerializer", "com.fasterxml.jackson.databind.ser.std.StringSerializer", "com.fasterxml.jackson.databind.ser.std.ToStringSerializer", "com.fasterxml.jackson.databind.ser.std.NumberSerializers", "com.fasterxml.jackson.databind.ser.std.NumberSerializers$Base", "com.fasterxml.jackson.databind.ser.std.NumberSerializers$IntegerSerializer", "com.fasterxml.jackson.core.JsonParser$NumberType", "com.fasterxml.jackson.databind.ser.std.NumberSerializers$LongSerializer", "com.fasterxml.jackson.databind.ser.std.NumberSerializers$IntLikeSerializer", "com.fasterxml.jackson.databind.ser.std.NumberSerializers$ShortSerializer", "com.fasterxml.jackson.databind.ser.std.NumberSerializers$DoubleSerializer", "com.fasterxml.jackson.databind.ser.std.NumberSerializers$FloatSerializer", "com.fasterxml.jackson.databind.ser.std.BooleanSerializer", "com.fasterxml.jackson.databind.ser.std.NumberSerializer", "com.fasterxml.jackson.databind.ser.std.DateTimeSerializerBase", "com.fasterxml.jackson.databind.ser.std.CalendarSerializer", "com.fasterxml.jackson.databind.ser.std.DateSerializer", "com.fasterxml.jackson.databind.ser.std.StdJdkSerializers", "com.fasterxml.jackson.databind.ser.std.UUIDSerializer", "com.fasterxml.jackson.databind.ser.BasicSerializerFactory", "com.fasterxml.jackson.databind.cfg.SerializerFactoryConfig", "com.fasterxml.jackson.databind.ser.BeanSerializerFactory", "com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder", "com.fasterxml.jackson.databind.ObjectMapper$DefaultTypeResolverBuilder", "com.fasterxml.jackson.annotation.JsonTypeInfo$Id", "com.fasterxml.jackson.annotation.JsonTypeInfo$As", "com.fasterxml.jackson.core.io.OutputDecorator", "com.fasterxml.jackson.core.util.BufferRecycler", "com.fasterxml.jackson.core.io.IOContext", "com.fasterxml.jackson.core.type.TypeReference", "com.fasterxml.jackson.databind.type.CollectionLikeType", "com.fasterxml.jackson.databind.type.ResolvedRecursiveType", "com.fasterxml.jackson.databind.InjectableValues", "com.fasterxml.jackson.databind.InjectableValues$Std", "com.fasterxml.jackson.core.JsonGenerator", "com.fasterxml.jackson.core.base.GeneratorBase", "com.fasterxml.jackson.core.io.CharTypes", "com.fasterxml.jackson.core.json.JsonGeneratorImpl", "com.fasterxml.jackson.core.json.UTF8JsonGenerator", "com.fasterxml.jackson.core.json.DupDetector", "com.fasterxml.jackson.core.JsonStreamContext", "com.fasterxml.jackson.core.json.JsonWriteContext", "com.fasterxml.jackson.core.io.CharacterEscapes", "com.fasterxml.jackson.core.JsonpCharacterEscapes", "com.fasterxml.jackson.databind.ser.impl.ReadOnlyClassToSerializerMap", "com.fasterxml.jackson.databind.ObjectReader", "com.fasterxml.jackson.databind.type.ClassStack", "com.fasterxml.jackson.databind.introspect.AnnotationCollector$EmptyCollector", "com.fasterxml.jackson.databind.introspect.POJOPropertiesCollector", "com.fasterxml.jackson.databind.util.ArrayIterator", "com.fasterxml.jackson.databind.ext.OptionalHandlerFactory", "com.fasterxml.jackson.databind.JsonDeserializer", "com.fasterxml.jackson.databind.deser.std.StdDeserializer", "com.fasterxml.jackson.databind.deser.std.StdScalarDeserializer", "com.fasterxml.jackson.databind.deser.std.FromStringDeserializer", "com.fasterxml.jackson.databind.deser.std.JdkDeserializers", "com.fasterxml.jackson.databind.jsontype.impl.SubTypeValidator", "com.fasterxml.jackson.databind.deser.impl.CreatorCollector", "com.fasterxml.jackson.databind.introspect.CollectorBase", "com.fasterxml.jackson.databind.introspect.AnnotatedFieldCollector", "com.fasterxml.jackson.databind.introspect.TypeResolutionContext$Basic", "com.fasterxml.jackson.databind.introspect.AnnotatedFieldCollector$FieldBuilder", "com.fasterxml.jackson.databind.introspect.AnnotatedMember", "com.fasterxml.jackson.databind.introspect.AnnotatedField", "com.fasterxml.jackson.databind.introspect.AnnotationMap", "com.fasterxml.jackson.annotation.PropertyAccessor", "com.fasterxml.jackson.annotation.JsonAutoDetect$1", "com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition", "com.fasterxml.jackson.databind.AnnotationIntrospector$ReferenceProperty", "com.fasterxml.jackson.databind.AnnotationIntrospector$ReferenceProperty$Type", "com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder", "com.fasterxml.jackson.core.util.InternCache", "com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder$Linked", "com.fasterxml.jackson.databind.introspect.AnnotatedMethodCollector", "com.fasterxml.jackson.databind.introspect.MemberKey", "com.fasterxml.jackson.databind.introspect.AnnotationCollector$OneCollector", "com.fasterxml.jackson.databind.introspect.AnnotatedMethodCollector$MethodBuilder", "com.fasterxml.jackson.databind.introspect.AnnotatedWithParams", "com.fasterxml.jackson.databind.introspect.AnnotatedMethod", "com.fasterxml.jackson.databind.introspect.AnnotatedMethodMap", "com.fasterxml.jackson.databind.util.BeanUtil", "com.fasterxml.jackson.databind.introspect.AnnotatedCreatorCollector", "com.fasterxml.jackson.databind.introspect.AnnotatedConstructor", "com.fasterxml.jackson.databind.introspect.AnnotatedParameter", "com.fasterxml.jackson.databind.type.ArrayType", "com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder$9", "com.fasterxml.jackson.annotation.JsonProperty$Access", "com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder$10", "com.fasterxml.jackson.annotation.JsonCreator$Mode", "com.fasterxml.jackson.databind.deser.impl.CreatorCandidate", "com.fasterxml.jackson.databind.deser.impl.CreatorCandidate$Param", "com.fasterxml.jackson.databind.deser.impl.CreatorCollector$StdTypeConstructor", "com.fasterxml.jackson.databind.deser.ValueInstantiator", "com.fasterxml.jackson.databind.deser.std.StdValueInstantiator", "com.fasterxml.jackson.databind.deser.BeanDeserializerBuilder", "com.fasterxml.jackson.annotation.JsonIgnoreProperties$Value", "com.fasterxml.jackson.databind.type.TypeBindings$TypeParamStash", "com.fasterxml.jackson.databind.type.TypeBindings$AsKey", "com.fasterxml.jackson.databind.type.CollectionType", "com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder$4", "com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder$5", "com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder$6", "com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder$7", "com.fasterxml.jackson.databind.PropertyMetadata", "com.fasterxml.jackson.databind.introspect.ConcreteBeanPropertyBase", "com.fasterxml.jackson.databind.deser.impl.FailingDeserializer", "com.fasterxml.jackson.databind.deser.SettableBeanProperty", "com.fasterxml.jackson.databind.deser.impl.SetterlessProperty", "com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder$1", "com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder$2", "com.fasterxml.jackson.databind.deser.impl.BeanPropertyMap", "com.fasterxml.jackson.databind.deser.BeanDeserializerBase", "com.fasterxml.jackson.databind.deser.BeanDeserializer", "com.fasterxml.jackson.databind.deser.std.ContainerDeserializerBase", "com.fasterxml.jackson.databind.deser.std.CollectionDeserializer", "com.fasterxml.jackson.databind.util.AccessPattern", "com.fasterxml.jackson.databind.deser.impl.NullsConstantProvider", "com.fasterxml.jackson.databind.util.LinkedNode", "com.fasterxml.jackson.annotation.JsonFormat$Feature", "com.fasterxml.jackson.databind.deser.std.FromStringDeserializer$Std", "com.fasterxml.jackson.databind.type.PlaceholderForType", "com.fasterxml.jackson.databind.deser.ValueInstantiators$Base", "com.fasterxml.jackson.databind.module.SimpleValueInstantiators", "com.fasterxml.jackson.databind.util.ArrayBuilders", "com.fasterxml.jackson.core.util.BufferRecyclers", "com.fasterxml.jackson.databind.JsonSerializable$Base", "com.fasterxml.jackson.databind.JsonNode", "com.fasterxml.jackson.databind.node.BaseJsonNode", "com.fasterxml.jackson.databind.node.ValueNode", "com.fasterxml.jackson.databind.node.NumericNode", "com.fasterxml.jackson.databind.node.FloatNode", "com.fasterxml.jackson.databind.util.TypeKey", "com.fasterxml.jackson.databind.ser.std.SerializableSerializer", "com.fasterxml.jackson.core.json.WriterBasedJsonGenerator", "com.fasterxml.jackson.core.util.ByteArrayBuilder", "com.fasterxml.jackson.databind.exc.MismatchedInputException", "com.fasterxml.jackson.databind.exc.InvalidTypeIdException", "com.fasterxml.jackson.core.util.JsonGeneratorDelegate", "com.fasterxml.jackson.databind.introspect.VirtualAnnotatedMember", "com.fasterxml.jackson.databind.ser.FilterProvider", "com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider", "com.fasterxml.jackson.databind.deser.BeanDeserializerModifier", "com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase", "com.fasterxml.jackson.databind.jsontype.impl.ClassNameIdResolver", "com.fasterxml.jackson.databind.jsontype.TypeDeserializer", "com.fasterxml.jackson.databind.jsontype.impl.TypeDeserializerBase", "com.fasterxml.jackson.databind.jsontype.impl.AsArrayTypeDeserializer", "com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer", "com.fasterxml.jackson.databind.type.TypeModifier", "com.fasterxml.jackson.databind.ser.BeanSerializerBuilder", "com.fasterxml.jackson.core.JsonParser", "com.fasterxml.jackson.core.base.ParserMinimalBase", "com.fasterxml.jackson.core.base.ParserBase", "com.fasterxml.jackson.core.json.ReaderBasedJsonParser", "com.fasterxml.jackson.core.util.TextBuffer", "com.fasterxml.jackson.core.json.JsonReadContext", "com.fasterxml.jackson.databind.deser.ValueInstantiator$Base", "com.fasterxml.jackson.databind.type.ClassKey", "com.fasterxml.jackson.core.io.InputDecorator", "com.fasterxml.jackson.databind.node.BinaryNode", "com.fasterxml.jackson.databind.type.ReferenceType", "com.fasterxml.jackson.annotation.JsonAutoDetect$Value", "com.fasterxml.jackson.core.Version", "com.fasterxml.jackson.databind.Module", "com.fasterxml.jackson.databind.module.SimpleModule", "com.fasterxml.jackson.databind.ser.Serializers$Base", "com.fasterxml.jackson.databind.module.SimpleSerializers", "com.fasterxml.jackson.core.JsonGenerationException", "com.fasterxml.jackson.databind.BeanProperty$Bogus", "com.fasterxml.jackson.databind.module.SimpleDeserializers", "com.fasterxml.jackson.databind.ser.BeanSerializerModifier", "com.fasterxml.jackson.core.json.ByteSourceJsonBootstrapper", "com.fasterxml.jackson.core.json.UTF8StreamJsonParser", "com.fasterxml.jackson.core.JsonLocation", "com.fasterxml.jackson.core.filter.TokenFilter", "com.fasterxml.jackson.core.filter.FilteringGeneratorDelegate", "com.fasterxml.jackson.core.filter.TokenFilterContext", "com.fasterxml.jackson.databind.ext.CoreXMLDeserializers$Std", "com.fasterxml.jackson.databind.exc.InvalidFormatException", "com.fasterxml.jackson.databind.jsontype.NamedType", "com.fasterxml.jackson.databind.node.ContainerNode", "com.fasterxml.jackson.databind.node.ObjectNode", "com.fasterxml.jackson.databind.node.ArrayNode", "com.fasterxml.jackson.databind.deser.DeserializationProblemHandler", "com.fasterxml.jackson.databind.PropertyNamingStrategy$PropertyNamingStrategyBase", "com.fasterxml.jackson.databind.PropertyNamingStrategy$SnakeCaseStrategy", "com.fasterxml.jackson.databind.PropertyNamingStrategy$UpperCamelCaseStrategy", "com.fasterxml.jackson.databind.PropertyNamingStrategy$LowerCaseStrategy", "com.fasterxml.jackson.databind.PropertyNamingStrategy$KebabCaseStrategy", "com.fasterxml.jackson.databind.PropertyNamingStrategy", "com.fasterxml.jackson.databind.deser.Deserializers$Base", "com.fasterxml.jackson.databind.deser.BuilderBasedDeserializer", "com.fasterxml.jackson.databind.BeanProperty$Std", "com.fasterxml.jackson.databind.deser.AbstractDeserializer", "com.fasterxml.jackson.databind.AbstractTypeResolver", "com.fasterxml.jackson.databind.module.SimpleAbstractTypeResolver", "com.fasterxml.jackson.core.util.MinimalPrettyPrinter", "com.fasterxml.jackson.core.io.DataOutputAsStream", "com.fasterxml.jackson.databind.exc.InvalidDefinitionException", "com.fasterxml.jackson.databind.introspect.NopAnnotationIntrospector$1", "com.fasterxml.jackson.databind.introspect.NopAnnotationIntrospector", "com.fasterxml.jackson.core.util.JsonParserDelegate", "com.fasterxml.jackson.core.filter.FilteringParserDelegate", "com.fasterxml.jackson.core.json.async.NonBlockingJsonParserBase", "com.fasterxml.jackson.core.json.async.NonBlockingJsonParser", "com.fasterxml.jackson.core.filter.JsonPointerBasedFilter", "com.fasterxml.jackson.core.JsonPointer", "com.fasterxml.jackson.databind.type.TypeParser$MyTokenizer", "com.fasterxml.jackson.databind.deser.std.NumberDeserializers", "com.fasterxml.jackson.databind.deser.std.NumberDeserializers$PrimitiveOrWrapperDeserializer", "com.fasterxml.jackson.databind.deser.std.NumberDeserializers$LongDeserializer", "com.fasterxml.jackson.core.util.VersionUtil", "com.fasterxml.jackson.databind.cfg.PackageVersion", "com.fasterxml.jackson.databind.introspect.AnnotationIntrospectorPair", "com.fasterxml.jackson.databind.node.TreeTraversingParser", "com.fasterxml.jackson.databind.node.NodeCursor", "com.fasterxml.jackson.databind.node.NodeCursor$RootCursor", "com.fasterxml.jackson.databind.deser.impl.MethodProperty", "com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder$8", "com.fasterxml.jackson.databind.deser.std.EnumDeserializer", "com.fasterxml.jackson.databind.util.EnumResolver", "com.fasterxml.jackson.databind.util.CompactStringObjectMap", "com.fasterxml.jackson.databind.deser.std.NumberDeserializers$IntegerDeserializer", "com.fasterxml.jackson.databind.util.TokenBuffer", "com.fasterxml.jackson.databind.util.TokenBuffer$Segment", "com.fasterxml.jackson.databind.ser.PropertyBuilder", "com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder$3", "com.fasterxml.jackson.databind.ser.PropertyBuilder$1", "com.fasterxml.jackson.databind.ser.PropertyWriter", "com.fasterxml.jackson.databind.ser.BeanPropertyWriter", "com.fasterxml.jackson.databind.ser.impl.PropertySerializerMap", "com.fasterxml.jackson.databind.ser.impl.PropertySerializerMap$Empty", "com.fasterxml.jackson.databind.ser.std.BeanSerializerBase", "com.fasterxml.jackson.databind.ser.BeanSerializer", "com.fasterxml.jackson.databind.ser.std.ClassSerializer", "com.fasterxml.jackson.databind.ser.std.NumberSerializers$1", "com.fasterxml.jackson.databind.ser.impl.PropertySerializerMap$SerializerAndMapResult", "com.fasterxml.jackson.databind.ser.impl.PropertySerializerMap$Single", "com.fasterxml.jackson.databind.ser.ContainerSerializer", "com.fasterxml.jackson.databind.ser.std.ArraySerializerBase", "com.fasterxml.jackson.databind.ser.std.StdArraySerializers$BooleanArraySerializer", "com.fasterxml.jackson.databind.ser.std.ByteArraySerializer", "com.fasterxml.jackson.databind.ser.std.StdArraySerializers$CharArraySerializer", "com.fasterxml.jackson.databind.ser.std.StdArraySerializers$TypedPrimitiveArraySerializer", "com.fasterxml.jackson.databind.ser.std.StdArraySerializers$ShortArraySerializer", "com.fasterxml.jackson.databind.ser.std.StdArraySerializers$IntArraySerializer", "com.fasterxml.jackson.databind.ser.std.StdArraySerializers$LongArraySerializer", "com.fasterxml.jackson.databind.ser.std.StdArraySerializers$FloatArraySerializer", "com.fasterxml.jackson.databind.ser.std.StdArraySerializers$DoubleArraySerializer", "com.fasterxml.jackson.databind.ser.std.StdArraySerializers", "com.fasterxml.jackson.databind.ser.std.ObjectArraySerializer", "com.fasterxml.jackson.core.io.JsonStringEncoder", "com.fasterxml.jackson.core.io.NumberOutput", "com.fasterxml.jackson.databind.module.SimpleKeyDeserializers", "com.fasterxml.jackson.core.JsonParseException", "com.fasterxml.jackson.databind.ObjectMapper$3", "com.fasterxml.jackson.databind.node.NodeCursor$ArrayCursor", "com.fasterxml.jackson.databind.introspect.VisibilityChecker$1", "com.fasterxml.jackson.databind.ser.std.EnumSerializer", "com.fasterxml.jackson.databind.util.EnumValues", "com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder$1", "com.fasterxml.jackson.databind.jsontype.TypeSerializer", "com.fasterxml.jackson.databind.jsontype.impl.TypeSerializerBase", "com.fasterxml.jackson.databind.jsontype.impl.AsWrapperTypeSerializer", "com.fasterxml.jackson.databind.ser.impl.TypeWrappedSerializer", "com.fasterxml.jackson.core.type.WritableTypeId", "com.fasterxml.jackson.databind.jsontype.TypeSerializer$1", "com.fasterxml.jackson.core.type.WritableTypeId$Inclusion", "com.fasterxml.jackson.core.JsonGenerator$1", "com.fasterxml.jackson.annotation.OptBoolean", "com.fasterxml.jackson.databind.ObjectWriter", "com.fasterxml.jackson.databind.ObjectWriter$GeneratorSettings", "com.fasterxml.jackson.databind.ObjectWriter$Prefetch", "com.fasterxml.jackson.databind.deser.std.NumberDeserializers$DoubleDeserializer", "com.fasterxml.jackson.databind.annotation.NoClass", "com.fasterxml.jackson.core.util.JsonParserSequence", "com.fasterxml.jackson.databind.util.SimpleBeanPropertyDefinition", "com.fasterxml.jackson.databind.ser.impl.SimpleBeanPropertyFilter", "com.fasterxml.jackson.databind.ser.impl.SimpleBeanPropertyFilter$FilterExceptFilter", "com.fasterxml.jackson.databind.jsontype.impl.AsArrayTypeSerializer", "com.fasterxml.jackson.databind.deser.std.NumberDeserializers$ShortDeserializer", "com.fasterxml.jackson.core.json.PackageVersion", "com.fasterxml.jackson.databind.deser.std.StringDeserializer", "com.fasterxml.jackson.databind.deser.std.DateDeserializers", "com.fasterxml.jackson.databind.deser.impl.FieldProperty", "com.fasterxml.jackson.databind.deser.std.ThrowableDeserializer", "com.fasterxml.jackson.databind.deser.std.ObjectArrayDeserializer", "com.fasterxml.jackson.databind.deser.std.StackTraceElementDeserializer", "com.fasterxml.jackson.databind.node.NodeCursor$ObjectCursor", "com.fasterxml.jackson.databind.deser.std.NumberDeserializers$FloatDeserializer", "com.fasterxml.jackson.databind.util.NameTransformer", "com.fasterxml.jackson.databind.util.NameTransformer$NopTransformer", "com.fasterxml.jackson.databind.ser.std.AsArraySerializerBase", "com.fasterxml.jackson.databind.ser.std.CollectionSerializer", "com.fasterxml.jackson.databind.ObjectMapper$1", "com.fasterxml.jackson.databind.deser.DataFormatReaders", "com.fasterxml.jackson.core.format.MatchStrength", "com.fasterxml.jackson.databind.node.JsonNodeType", "com.fasterxml.jackson.databind.deser.std.NumberDeserializers$CharacterDeserializer", "com.fasterxml.jackson.databind.ser.std.NumberSerializer$1", "com.fasterxml.jackson.databind.ser.impl.IndexedListSerializer", "com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeSerializer", "com.fasterxml.jackson.databind.KeyDeserializer", "com.fasterxml.jackson.databind.deser.std.StdKeyDeserializer", "com.fasterxml.jackson.databind.deser.std.StdKeyDeserializer$EnumKD", "com.fasterxml.jackson.databind.BeanProperty", "com.fasterxml.jackson.databind.jsontype.impl.AsExternalTypeDeserializer", "com.fasterxml.jackson.annotation.ObjectIdGenerator", "com.fasterxml.jackson.annotation.ObjectIdGenerators$Base", "com.fasterxml.jackson.annotation.ObjectIdGenerators$IntSequenceGenerator", "com.fasterxml.jackson.annotation.SimpleObjectIdResolver", "com.fasterxml.jackson.databind.deser.impl.ObjectIdReader", "com.fasterxml.jackson.databind.node.IntNode", "com.fasterxml.jackson.databind.util.NameTransformer$1", "com.fasterxml.jackson.databind.util.NameTransformer$Chained", "com.fasterxml.jackson.databind.DeserializationFeature" ); } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
6181c590f4e086137bd78aa037d3839e5900c020
09e83ce7b089be864f3517a298b120853c553056
/SoftBlueTasks/src/main/java/softblue/bluetasks/controller/ListTasksBean.java
ae47b4ada0de2073f2f70ac8263fca05f85ad3e1
[]
no_license
paulolopes123/PROJETOS-JAVA-JSE-JEE-WORKSPACE
50b622491d2f324ffc0b4f2a9ca22e7a84dec1f6
eb012812a6bee6a90ed0ad76f504df3bf62c4ee3
refs/heads/master
2020-04-15T13:38:50.787333
2017-03-26T15:46:15
2017-03-26T15:46:15
57,341,351
0
0
null
null
null
null
UTF-8
Java
false
false
1,784
java
package softblue.bluetasks.controller; import java.io.Serializable; import java.util.List; import javax.faces.view.ViewScoped; import javax.inject.Inject; import javax.inject.Named; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; import javax.persistence.Query; import javax.transaction.UserTransaction; import softblue.bluetasks.model.Task; @Named @ViewScoped public class ListTasksBean implements Serializable { private static final long serialVersionIUD = 1L; @PersistenceContext private EntityManager em; @Inject private UserTransaction ut; private Task currentTask; public String save() throws Exception { ut.begin(); currentTask.setCompleted(false); em.merge(currentTask); ut.commit(); return "List"; } @SuppressWarnings("unchecked") public List<Task> getTasks() { Query q = em.createQuery("SELECT t FROM Task t ORDER BY ID"); return q.getResultList(); } public String markAsCompleted(Task task) throws Exception { ut.begin(); Task managedTask = em.merge(task); managedTask.setCompleted(true); ut.commit(); return null; } public String delete(Task task) throws Exception { ut.begin(); Task managedTask = em.merge(task); em.remove(managedTask); ut.commit(); return null; } @SuppressWarnings("unchecked") public String deleteCompletedTasks() throws Exception { ut.begin(); Query q = em.createQuery("SELECT t FROM Task t WHERE t.completed = true"); List<Task> results = q.getResultList(); for (Task task : results) { em.remove(task); } ut.commit(); return null; } public Task getCurrentTask() { if (currentTask == null) { currentTask = new Task(); } return currentTask; } public String edit(Task task) { currentTask = task; return "Edit"; } }
[ "paulolopes18@yahoo.com.br" ]
paulolopes18@yahoo.com.br
e99e7feddd080a18b6572e674437fae9af1b0419
fa51687f6aa32d57a9f5f4efc6dcfda2806f244d
/jdk8-src/src/main/java/com/sun/corba/se/impl/logging/OMGSystemException.java
07ece5fab3558b273c7289b6a2aaa32bfe6fec7b
[]
no_license
yida-lxw/jdk8
44bad6ccd2d81099bea11433c8f2a0fc2e589eaa
9f69e5f33eb5ab32e385301b210db1e49e919aac
refs/heads/master
2022-12-29T23:56:32.001512
2020-04-27T04:14:10
2020-04-27T04:14:10
258,988,898
0
1
null
2020-10-13T21:32:05
2020-04-26T09:21:22
Java
UTF-8
Java
false
false
123,260
java
// Log wrapper class for standard exceptions // // Generated by MC.java version 1.0, DO NOT EDIT BY HAND! // Generated from input file /Users/java_re/workspace/8-2-build-macosx-x86_64/jdk8u212/12974/corba/src/share/classes/com/sun/corba/se/spi/logging/data/OMG.mc on Mon Apr 01 23:12:26 PDT 2019 package com.sun.corba.se.impl.logging; import com.sun.corba.se.spi.logging.LogWrapperBase; import com.sun.corba.se.spi.logging.LogWrapperFactory; import com.sun.corba.se.spi.orb.ORB; import org.omg.CORBA.BAD_CONTEXT; import org.omg.CORBA.BAD_INV_ORDER; import org.omg.CORBA.BAD_OPERATION; import org.omg.CORBA.BAD_PARAM; import org.omg.CORBA.BAD_TYPECODE; import org.omg.CORBA.CompletionStatus; import org.omg.CORBA.DATA_CONVERSION; import org.omg.CORBA.IMP_LIMIT; import org.omg.CORBA.INITIALIZE; import org.omg.CORBA.INTERNAL; import org.omg.CORBA.INTF_REPOS; import org.omg.CORBA.INV_OBJREF; import org.omg.CORBA.INV_POLICY; import org.omg.CORBA.MARSHAL; import org.omg.CORBA.NO_IMPLEMENT; import org.omg.CORBA.NO_RESOURCES; import org.omg.CORBA.OBJECT_NOT_EXIST; import org.omg.CORBA.OBJ_ADAPTER; import org.omg.CORBA.OMGVMCID; import org.omg.CORBA.TRANSACTION_ROLLEDBACK; import org.omg.CORBA.TRANSIENT; import org.omg.CORBA.UNKNOWN; import java.util.logging.Level; import java.util.logging.Logger; public class OMGSystemException extends LogWrapperBase { public OMGSystemException(Logger logger) { super(logger); } private static LogWrapperFactory factory = new LogWrapperFactory() { public LogWrapperBase create(Logger logger) { return new OMGSystemException(logger); } }; public static OMGSystemException get(ORB orb, String logDomain) { OMGSystemException wrapper = (OMGSystemException) orb.getLogWrapper(logDomain, "OMG", factory); return wrapper; } public static OMGSystemException get(String logDomain) { OMGSystemException wrapper = (OMGSystemException) ORB.staticGetLogWrapper(logDomain, "OMG", factory); return wrapper; } /////////////////////////////////////////////////////////// // BAD_CONTEXT /////////////////////////////////////////////////////////// public static final int IDL_CONTEXT_NOT_FOUND = OMGVMCID.value + 1; public BAD_CONTEXT idlContextNotFound(CompletionStatus cs, Throwable t) { BAD_CONTEXT exc = new BAD_CONTEXT(IDL_CONTEXT_NOT_FOUND, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.idlContextNotFound", parameters, OMGSystemException.class, exc); } return exc; } public BAD_CONTEXT idlContextNotFound(CompletionStatus cs) { return idlContextNotFound(cs, null); } public BAD_CONTEXT idlContextNotFound(Throwable t) { return idlContextNotFound(CompletionStatus.COMPLETED_NO, t); } public BAD_CONTEXT idlContextNotFound() { return idlContextNotFound(CompletionStatus.COMPLETED_NO, null); } public static final int NO_MATCHING_IDL_CONTEXT = OMGVMCID.value + 2; public BAD_CONTEXT noMatchingIdlContext(CompletionStatus cs, Throwable t) { BAD_CONTEXT exc = new BAD_CONTEXT(NO_MATCHING_IDL_CONTEXT, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.noMatchingIdlContext", parameters, OMGSystemException.class, exc); } return exc; } public BAD_CONTEXT noMatchingIdlContext(CompletionStatus cs) { return noMatchingIdlContext(cs, null); } public BAD_CONTEXT noMatchingIdlContext(Throwable t) { return noMatchingIdlContext(CompletionStatus.COMPLETED_NO, t); } public BAD_CONTEXT noMatchingIdlContext() { return noMatchingIdlContext(CompletionStatus.COMPLETED_NO, null); } /////////////////////////////////////////////////////////// // BAD_INV_ORDER /////////////////////////////////////////////////////////// public static final int DEP_PREVENT_DESTRUCTION = OMGVMCID.value + 1; public BAD_INV_ORDER depPreventDestruction(CompletionStatus cs, Throwable t) { BAD_INV_ORDER exc = new BAD_INV_ORDER(DEP_PREVENT_DESTRUCTION, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.depPreventDestruction", parameters, OMGSystemException.class, exc); } return exc; } public BAD_INV_ORDER depPreventDestruction(CompletionStatus cs) { return depPreventDestruction(cs, null); } public BAD_INV_ORDER depPreventDestruction(Throwable t) { return depPreventDestruction(CompletionStatus.COMPLETED_NO, t); } public BAD_INV_ORDER depPreventDestruction() { return depPreventDestruction(CompletionStatus.COMPLETED_NO, null); } public static final int DESTROY_INDESTRUCTIBLE = OMGVMCID.value + 2; public BAD_INV_ORDER destroyIndestructible(CompletionStatus cs, Throwable t) { BAD_INV_ORDER exc = new BAD_INV_ORDER(DESTROY_INDESTRUCTIBLE, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.destroyIndestructible", parameters, OMGSystemException.class, exc); } return exc; } public BAD_INV_ORDER destroyIndestructible(CompletionStatus cs) { return destroyIndestructible(cs, null); } public BAD_INV_ORDER destroyIndestructible(Throwable t) { return destroyIndestructible(CompletionStatus.COMPLETED_NO, t); } public BAD_INV_ORDER destroyIndestructible() { return destroyIndestructible(CompletionStatus.COMPLETED_NO, null); } public static final int SHUTDOWN_WAIT_FOR_COMPLETION_DEADLOCK = OMGVMCID.value + 3; public BAD_INV_ORDER shutdownWaitForCompletionDeadlock(CompletionStatus cs, Throwable t) { BAD_INV_ORDER exc = new BAD_INV_ORDER(SHUTDOWN_WAIT_FOR_COMPLETION_DEADLOCK, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.shutdownWaitForCompletionDeadlock", parameters, OMGSystemException.class, exc); } return exc; } public BAD_INV_ORDER shutdownWaitForCompletionDeadlock(CompletionStatus cs) { return shutdownWaitForCompletionDeadlock(cs, null); } public BAD_INV_ORDER shutdownWaitForCompletionDeadlock(Throwable t) { return shutdownWaitForCompletionDeadlock(CompletionStatus.COMPLETED_NO, t); } public BAD_INV_ORDER shutdownWaitForCompletionDeadlock() { return shutdownWaitForCompletionDeadlock(CompletionStatus.COMPLETED_NO, null); } public static final int BAD_OPERATION_AFTER_SHUTDOWN = OMGVMCID.value + 4; public BAD_INV_ORDER badOperationAfterShutdown(CompletionStatus cs, Throwable t) { BAD_INV_ORDER exc = new BAD_INV_ORDER(BAD_OPERATION_AFTER_SHUTDOWN, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.badOperationAfterShutdown", parameters, OMGSystemException.class, exc); } return exc; } public BAD_INV_ORDER badOperationAfterShutdown(CompletionStatus cs) { return badOperationAfterShutdown(cs, null); } public BAD_INV_ORDER badOperationAfterShutdown(Throwable t) { return badOperationAfterShutdown(CompletionStatus.COMPLETED_NO, t); } public BAD_INV_ORDER badOperationAfterShutdown() { return badOperationAfterShutdown(CompletionStatus.COMPLETED_NO, null); } public static final int BAD_INVOKE = OMGVMCID.value + 5; public BAD_INV_ORDER badInvoke(CompletionStatus cs, Throwable t) { BAD_INV_ORDER exc = new BAD_INV_ORDER(BAD_INVOKE, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.badInvoke", parameters, OMGSystemException.class, exc); } return exc; } public BAD_INV_ORDER badInvoke(CompletionStatus cs) { return badInvoke(cs, null); } public BAD_INV_ORDER badInvoke(Throwable t) { return badInvoke(CompletionStatus.COMPLETED_NO, t); } public BAD_INV_ORDER badInvoke() { return badInvoke(CompletionStatus.COMPLETED_NO, null); } public static final int BAD_SET_SERVANT_MANAGER = OMGVMCID.value + 6; public BAD_INV_ORDER badSetServantManager(CompletionStatus cs, Throwable t) { BAD_INV_ORDER exc = new BAD_INV_ORDER(BAD_SET_SERVANT_MANAGER, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.badSetServantManager", parameters, OMGSystemException.class, exc); } return exc; } public BAD_INV_ORDER badSetServantManager(CompletionStatus cs) { return badSetServantManager(cs, null); } public BAD_INV_ORDER badSetServantManager(Throwable t) { return badSetServantManager(CompletionStatus.COMPLETED_NO, t); } public BAD_INV_ORDER badSetServantManager() { return badSetServantManager(CompletionStatus.COMPLETED_NO, null); } public static final int BAD_ARGUMENTS_CALL = OMGVMCID.value + 7; public BAD_INV_ORDER badArgumentsCall(CompletionStatus cs, Throwable t) { BAD_INV_ORDER exc = new BAD_INV_ORDER(BAD_ARGUMENTS_CALL, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.badArgumentsCall", parameters, OMGSystemException.class, exc); } return exc; } public BAD_INV_ORDER badArgumentsCall(CompletionStatus cs) { return badArgumentsCall(cs, null); } public BAD_INV_ORDER badArgumentsCall(Throwable t) { return badArgumentsCall(CompletionStatus.COMPLETED_NO, t); } public BAD_INV_ORDER badArgumentsCall() { return badArgumentsCall(CompletionStatus.COMPLETED_NO, null); } public static final int BAD_CTX_CALL = OMGVMCID.value + 8; public BAD_INV_ORDER badCtxCall(CompletionStatus cs, Throwable t) { BAD_INV_ORDER exc = new BAD_INV_ORDER(BAD_CTX_CALL, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.badCtxCall", parameters, OMGSystemException.class, exc); } return exc; } public BAD_INV_ORDER badCtxCall(CompletionStatus cs) { return badCtxCall(cs, null); } public BAD_INV_ORDER badCtxCall(Throwable t) { return badCtxCall(CompletionStatus.COMPLETED_NO, t); } public BAD_INV_ORDER badCtxCall() { return badCtxCall(CompletionStatus.COMPLETED_NO, null); } public static final int BAD_RESULT_CALL = OMGVMCID.value + 9; public BAD_INV_ORDER badResultCall(CompletionStatus cs, Throwable t) { BAD_INV_ORDER exc = new BAD_INV_ORDER(BAD_RESULT_CALL, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.badResultCall", parameters, OMGSystemException.class, exc); } return exc; } public BAD_INV_ORDER badResultCall(CompletionStatus cs) { return badResultCall(cs, null); } public BAD_INV_ORDER badResultCall(Throwable t) { return badResultCall(CompletionStatus.COMPLETED_NO, t); } public BAD_INV_ORDER badResultCall() { return badResultCall(CompletionStatus.COMPLETED_NO, null); } public static final int BAD_SEND = OMGVMCID.value + 10; public BAD_INV_ORDER badSend(CompletionStatus cs, Throwable t) { BAD_INV_ORDER exc = new BAD_INV_ORDER(BAD_SEND, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.badSend", parameters, OMGSystemException.class, exc); } return exc; } public BAD_INV_ORDER badSend(CompletionStatus cs) { return badSend(cs, null); } public BAD_INV_ORDER badSend(Throwable t) { return badSend(CompletionStatus.COMPLETED_NO, t); } public BAD_INV_ORDER badSend() { return badSend(CompletionStatus.COMPLETED_NO, null); } public static final int BAD_POLL_BEFORE = OMGVMCID.value + 11; public BAD_INV_ORDER badPollBefore(CompletionStatus cs, Throwable t) { BAD_INV_ORDER exc = new BAD_INV_ORDER(BAD_POLL_BEFORE, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.badPollBefore", parameters, OMGSystemException.class, exc); } return exc; } public BAD_INV_ORDER badPollBefore(CompletionStatus cs) { return badPollBefore(cs, null); } public BAD_INV_ORDER badPollBefore(Throwable t) { return badPollBefore(CompletionStatus.COMPLETED_NO, t); } public BAD_INV_ORDER badPollBefore() { return badPollBefore(CompletionStatus.COMPLETED_NO, null); } public static final int BAD_POLL_AFTER = OMGVMCID.value + 12; public BAD_INV_ORDER badPollAfter(CompletionStatus cs, Throwable t) { BAD_INV_ORDER exc = new BAD_INV_ORDER(BAD_POLL_AFTER, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.badPollAfter", parameters, OMGSystemException.class, exc); } return exc; } public BAD_INV_ORDER badPollAfter(CompletionStatus cs) { return badPollAfter(cs, null); } public BAD_INV_ORDER badPollAfter(Throwable t) { return badPollAfter(CompletionStatus.COMPLETED_NO, t); } public BAD_INV_ORDER badPollAfter() { return badPollAfter(CompletionStatus.COMPLETED_NO, null); } public static final int BAD_POLL_SYNC = OMGVMCID.value + 13; public BAD_INV_ORDER badPollSync(CompletionStatus cs, Throwable t) { BAD_INV_ORDER exc = new BAD_INV_ORDER(BAD_POLL_SYNC, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.badPollSync", parameters, OMGSystemException.class, exc); } return exc; } public BAD_INV_ORDER badPollSync(CompletionStatus cs) { return badPollSync(cs, null); } public BAD_INV_ORDER badPollSync(Throwable t) { return badPollSync(CompletionStatus.COMPLETED_NO, t); } public BAD_INV_ORDER badPollSync() { return badPollSync(CompletionStatus.COMPLETED_NO, null); } public static final int INVALID_PI_CALL1 = OMGVMCID.value + 14; public BAD_INV_ORDER invalidPiCall1(CompletionStatus cs, Throwable t) { BAD_INV_ORDER exc = new BAD_INV_ORDER(INVALID_PI_CALL1, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.FINE)) { Object[] parameters = null; doLog(Level.FINE, "OMG.invalidPiCall1", parameters, OMGSystemException.class, exc); } return exc; } public BAD_INV_ORDER invalidPiCall1(CompletionStatus cs) { return invalidPiCall1(cs, null); } public BAD_INV_ORDER invalidPiCall1(Throwable t) { return invalidPiCall1(CompletionStatus.COMPLETED_NO, t); } public BAD_INV_ORDER invalidPiCall1() { return invalidPiCall1(CompletionStatus.COMPLETED_NO, null); } public static final int INVALID_PI_CALL2 = OMGVMCID.value + 14; public BAD_INV_ORDER invalidPiCall2(CompletionStatus cs, Throwable t) { BAD_INV_ORDER exc = new BAD_INV_ORDER(INVALID_PI_CALL2, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.FINE)) { Object[] parameters = null; doLog(Level.FINE, "OMG.invalidPiCall2", parameters, OMGSystemException.class, exc); } return exc; } public BAD_INV_ORDER invalidPiCall2(CompletionStatus cs) { return invalidPiCall2(cs, null); } public BAD_INV_ORDER invalidPiCall2(Throwable t) { return invalidPiCall2(CompletionStatus.COMPLETED_NO, t); } public BAD_INV_ORDER invalidPiCall2() { return invalidPiCall2(CompletionStatus.COMPLETED_NO, null); } public static final int INVALID_PI_CALL3 = OMGVMCID.value + 14; public BAD_INV_ORDER invalidPiCall3(CompletionStatus cs, Throwable t) { BAD_INV_ORDER exc = new BAD_INV_ORDER(INVALID_PI_CALL3, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.FINE)) { Object[] parameters = null; doLog(Level.FINE, "OMG.invalidPiCall3", parameters, OMGSystemException.class, exc); } return exc; } public BAD_INV_ORDER invalidPiCall3(CompletionStatus cs) { return invalidPiCall3(cs, null); } public BAD_INV_ORDER invalidPiCall3(Throwable t) { return invalidPiCall3(CompletionStatus.COMPLETED_NO, t); } public BAD_INV_ORDER invalidPiCall3() { return invalidPiCall3(CompletionStatus.COMPLETED_NO, null); } public static final int INVALID_PI_CALL4 = OMGVMCID.value + 14; public BAD_INV_ORDER invalidPiCall4(CompletionStatus cs, Throwable t) { BAD_INV_ORDER exc = new BAD_INV_ORDER(INVALID_PI_CALL4, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.FINE)) { Object[] parameters = null; doLog(Level.FINE, "OMG.invalidPiCall4", parameters, OMGSystemException.class, exc); } return exc; } public BAD_INV_ORDER invalidPiCall4(CompletionStatus cs) { return invalidPiCall4(cs, null); } public BAD_INV_ORDER invalidPiCall4(Throwable t) { return invalidPiCall4(CompletionStatus.COMPLETED_NO, t); } public BAD_INV_ORDER invalidPiCall4() { return invalidPiCall4(CompletionStatus.COMPLETED_NO, null); } public static final int SERVICE_CONTEXT_ADD_FAILED = OMGVMCID.value + 15; public BAD_INV_ORDER serviceContextAddFailed(CompletionStatus cs, Throwable t, Object arg0) { BAD_INV_ORDER exc = new BAD_INV_ORDER(SERVICE_CONTEXT_ADD_FAILED, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.FINE)) { Object[] parameters = new Object[1]; parameters[0] = arg0; doLog(Level.FINE, "OMG.serviceContextAddFailed", parameters, OMGSystemException.class, exc); } return exc; } public BAD_INV_ORDER serviceContextAddFailed(CompletionStatus cs, Object arg0) { return serviceContextAddFailed(cs, null, arg0); } public BAD_INV_ORDER serviceContextAddFailed(Throwable t, Object arg0) { return serviceContextAddFailed(CompletionStatus.COMPLETED_NO, t, arg0); } public BAD_INV_ORDER serviceContextAddFailed(Object arg0) { return serviceContextAddFailed(CompletionStatus.COMPLETED_NO, null, arg0); } public static final int POLICY_FACTORY_REG_FAILED = OMGVMCID.value + 16; public BAD_INV_ORDER policyFactoryRegFailed(CompletionStatus cs, Throwable t, Object arg0) { BAD_INV_ORDER exc = new BAD_INV_ORDER(POLICY_FACTORY_REG_FAILED, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = new Object[1]; parameters[0] = arg0; doLog(Level.WARNING, "OMG.policyFactoryRegFailed", parameters, OMGSystemException.class, exc); } return exc; } public BAD_INV_ORDER policyFactoryRegFailed(CompletionStatus cs, Object arg0) { return policyFactoryRegFailed(cs, null, arg0); } public BAD_INV_ORDER policyFactoryRegFailed(Throwable t, Object arg0) { return policyFactoryRegFailed(CompletionStatus.COMPLETED_NO, t, arg0); } public BAD_INV_ORDER policyFactoryRegFailed(Object arg0) { return policyFactoryRegFailed(CompletionStatus.COMPLETED_NO, null, arg0); } public static final int CREATE_POA_DESTROY = OMGVMCID.value + 17; public BAD_INV_ORDER createPoaDestroy(CompletionStatus cs, Throwable t) { BAD_INV_ORDER exc = new BAD_INV_ORDER(CREATE_POA_DESTROY, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.createPoaDestroy", parameters, OMGSystemException.class, exc); } return exc; } public BAD_INV_ORDER createPoaDestroy(CompletionStatus cs) { return createPoaDestroy(cs, null); } public BAD_INV_ORDER createPoaDestroy(Throwable t) { return createPoaDestroy(CompletionStatus.COMPLETED_NO, t); } public BAD_INV_ORDER createPoaDestroy() { return createPoaDestroy(CompletionStatus.COMPLETED_NO, null); } public static final int PRIORITY_REASSIGN = OMGVMCID.value + 18; public BAD_INV_ORDER priorityReassign(CompletionStatus cs, Throwable t) { BAD_INV_ORDER exc = new BAD_INV_ORDER(PRIORITY_REASSIGN, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.priorityReassign", parameters, OMGSystemException.class, exc); } return exc; } public BAD_INV_ORDER priorityReassign(CompletionStatus cs) { return priorityReassign(cs, null); } public BAD_INV_ORDER priorityReassign(Throwable t) { return priorityReassign(CompletionStatus.COMPLETED_NO, t); } public BAD_INV_ORDER priorityReassign() { return priorityReassign(CompletionStatus.COMPLETED_NO, null); } public static final int XA_START_OUTSIZE = OMGVMCID.value + 19; public BAD_INV_ORDER xaStartOutsize(CompletionStatus cs, Throwable t) { BAD_INV_ORDER exc = new BAD_INV_ORDER(XA_START_OUTSIZE, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.xaStartOutsize", parameters, OMGSystemException.class, exc); } return exc; } public BAD_INV_ORDER xaStartOutsize(CompletionStatus cs) { return xaStartOutsize(cs, null); } public BAD_INV_ORDER xaStartOutsize(Throwable t) { return xaStartOutsize(CompletionStatus.COMPLETED_NO, t); } public BAD_INV_ORDER xaStartOutsize() { return xaStartOutsize(CompletionStatus.COMPLETED_NO, null); } public static final int XA_START_PROTO = OMGVMCID.value + 20; public BAD_INV_ORDER xaStartProto(CompletionStatus cs, Throwable t) { BAD_INV_ORDER exc = new BAD_INV_ORDER(XA_START_PROTO, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.xaStartProto", parameters, OMGSystemException.class, exc); } return exc; } public BAD_INV_ORDER xaStartProto(CompletionStatus cs) { return xaStartProto(cs, null); } public BAD_INV_ORDER xaStartProto(Throwable t) { return xaStartProto(CompletionStatus.COMPLETED_NO, t); } public BAD_INV_ORDER xaStartProto() { return xaStartProto(CompletionStatus.COMPLETED_NO, null); } /////////////////////////////////////////////////////////// // BAD_OPERATION /////////////////////////////////////////////////////////// public static final int BAD_SERVANT_MANAGER_TYPE = OMGVMCID.value + 1; public BAD_OPERATION badServantManagerType(CompletionStatus cs, Throwable t) { BAD_OPERATION exc = new BAD_OPERATION(BAD_SERVANT_MANAGER_TYPE, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.badServantManagerType", parameters, OMGSystemException.class, exc); } return exc; } public BAD_OPERATION badServantManagerType(CompletionStatus cs) { return badServantManagerType(cs, null); } public BAD_OPERATION badServantManagerType(Throwable t) { return badServantManagerType(CompletionStatus.COMPLETED_NO, t); } public BAD_OPERATION badServantManagerType() { return badServantManagerType(CompletionStatus.COMPLETED_NO, null); } public static final int OPERATION_UNKNOWN_TO_TARGET = OMGVMCID.value + 2; public BAD_OPERATION operationUnknownToTarget(CompletionStatus cs, Throwable t) { BAD_OPERATION exc = new BAD_OPERATION(OPERATION_UNKNOWN_TO_TARGET, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.operationUnknownToTarget", parameters, OMGSystemException.class, exc); } return exc; } public BAD_OPERATION operationUnknownToTarget(CompletionStatus cs) { return operationUnknownToTarget(cs, null); } public BAD_OPERATION operationUnknownToTarget(Throwable t) { return operationUnknownToTarget(CompletionStatus.COMPLETED_NO, t); } public BAD_OPERATION operationUnknownToTarget() { return operationUnknownToTarget(CompletionStatus.COMPLETED_NO, null); } /////////////////////////////////////////////////////////// // BAD_PARAM /////////////////////////////////////////////////////////// public static final int UNABLE_REGISTER_VALUE_FACTORY = OMGVMCID.value + 1; public BAD_PARAM unableRegisterValueFactory(CompletionStatus cs, Throwable t) { BAD_PARAM exc = new BAD_PARAM(UNABLE_REGISTER_VALUE_FACTORY, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.unableRegisterValueFactory", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM unableRegisterValueFactory(CompletionStatus cs) { return unableRegisterValueFactory(cs, null); } public BAD_PARAM unableRegisterValueFactory(Throwable t) { return unableRegisterValueFactory(CompletionStatus.COMPLETED_NO, t); } public BAD_PARAM unableRegisterValueFactory() { return unableRegisterValueFactory(CompletionStatus.COMPLETED_NO, null); } public static final int RID_ALREADY_DEFINED = OMGVMCID.value + 2; public BAD_PARAM ridAlreadyDefined(CompletionStatus cs, Throwable t) { BAD_PARAM exc = new BAD_PARAM(RID_ALREADY_DEFINED, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.ridAlreadyDefined", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM ridAlreadyDefined(CompletionStatus cs) { return ridAlreadyDefined(cs, null); } public BAD_PARAM ridAlreadyDefined(Throwable t) { return ridAlreadyDefined(CompletionStatus.COMPLETED_NO, t); } public BAD_PARAM ridAlreadyDefined() { return ridAlreadyDefined(CompletionStatus.COMPLETED_NO, null); } public static final int NAME_USED_IFR = OMGVMCID.value + 3; public BAD_PARAM nameUsedIfr(CompletionStatus cs, Throwable t) { BAD_PARAM exc = new BAD_PARAM(NAME_USED_IFR, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.nameUsedIfr", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM nameUsedIfr(CompletionStatus cs) { return nameUsedIfr(cs, null); } public BAD_PARAM nameUsedIfr(Throwable t) { return nameUsedIfr(CompletionStatus.COMPLETED_NO, t); } public BAD_PARAM nameUsedIfr() { return nameUsedIfr(CompletionStatus.COMPLETED_NO, null); } public static final int TARGET_NOT_CONTAINER = OMGVMCID.value + 4; public BAD_PARAM targetNotContainer(CompletionStatus cs, Throwable t) { BAD_PARAM exc = new BAD_PARAM(TARGET_NOT_CONTAINER, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.targetNotContainer", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM targetNotContainer(CompletionStatus cs) { return targetNotContainer(cs, null); } public BAD_PARAM targetNotContainer(Throwable t) { return targetNotContainer(CompletionStatus.COMPLETED_NO, t); } public BAD_PARAM targetNotContainer() { return targetNotContainer(CompletionStatus.COMPLETED_NO, null); } public static final int NAME_CLASH = OMGVMCID.value + 5; public BAD_PARAM nameClash(CompletionStatus cs, Throwable t) { BAD_PARAM exc = new BAD_PARAM(NAME_CLASH, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.nameClash", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM nameClash(CompletionStatus cs) { return nameClash(cs, null); } public BAD_PARAM nameClash(Throwable t) { return nameClash(CompletionStatus.COMPLETED_NO, t); } public BAD_PARAM nameClash() { return nameClash(CompletionStatus.COMPLETED_NO, null); } public static final int NOT_SERIALIZABLE = OMGVMCID.value + 6; public BAD_PARAM notSerializable(CompletionStatus cs, Throwable t, Object arg0) { BAD_PARAM exc = new BAD_PARAM(NOT_SERIALIZABLE, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = new Object[1]; parameters[0] = arg0; doLog(Level.WARNING, "OMG.notSerializable", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM notSerializable(CompletionStatus cs, Object arg0) { return notSerializable(cs, null, arg0); } public BAD_PARAM notSerializable(Throwable t, Object arg0) { return notSerializable(CompletionStatus.COMPLETED_NO, t, arg0); } public BAD_PARAM notSerializable(Object arg0) { return notSerializable(CompletionStatus.COMPLETED_NO, null, arg0); } public static final int SO_BAD_SCHEME_NAME = OMGVMCID.value + 7; public BAD_PARAM soBadSchemeName(CompletionStatus cs, Throwable t) { BAD_PARAM exc = new BAD_PARAM(SO_BAD_SCHEME_NAME, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.soBadSchemeName", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM soBadSchemeName(CompletionStatus cs) { return soBadSchemeName(cs, null); } public BAD_PARAM soBadSchemeName(Throwable t) { return soBadSchemeName(CompletionStatus.COMPLETED_NO, t); } public BAD_PARAM soBadSchemeName() { return soBadSchemeName(CompletionStatus.COMPLETED_NO, null); } public static final int SO_BAD_ADDRESS = OMGVMCID.value + 8; public BAD_PARAM soBadAddress(CompletionStatus cs, Throwable t) { BAD_PARAM exc = new BAD_PARAM(SO_BAD_ADDRESS, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.soBadAddress", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM soBadAddress(CompletionStatus cs) { return soBadAddress(cs, null); } public BAD_PARAM soBadAddress(Throwable t) { return soBadAddress(CompletionStatus.COMPLETED_NO, t); } public BAD_PARAM soBadAddress() { return soBadAddress(CompletionStatus.COMPLETED_NO, null); } public static final int SO_BAD_SCHEMA_SPECIFIC = OMGVMCID.value + 9; public BAD_PARAM soBadSchemaSpecific(CompletionStatus cs, Throwable t) { BAD_PARAM exc = new BAD_PARAM(SO_BAD_SCHEMA_SPECIFIC, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.soBadSchemaSpecific", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM soBadSchemaSpecific(CompletionStatus cs) { return soBadSchemaSpecific(cs, null); } public BAD_PARAM soBadSchemaSpecific(Throwable t) { return soBadSchemaSpecific(CompletionStatus.COMPLETED_NO, t); } public BAD_PARAM soBadSchemaSpecific() { return soBadSchemaSpecific(CompletionStatus.COMPLETED_NO, null); } public static final int SO_NON_SPECIFIC = OMGVMCID.value + 10; public BAD_PARAM soNonSpecific(CompletionStatus cs, Throwable t) { BAD_PARAM exc = new BAD_PARAM(SO_NON_SPECIFIC, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.soNonSpecific", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM soNonSpecific(CompletionStatus cs) { return soNonSpecific(cs, null); } public BAD_PARAM soNonSpecific(Throwable t) { return soNonSpecific(CompletionStatus.COMPLETED_NO, t); } public BAD_PARAM soNonSpecific() { return soNonSpecific(CompletionStatus.COMPLETED_NO, null); } public static final int IR_DERIVE_ABS_INT_BASE = OMGVMCID.value + 11; public BAD_PARAM irDeriveAbsIntBase(CompletionStatus cs, Throwable t) { BAD_PARAM exc = new BAD_PARAM(IR_DERIVE_ABS_INT_BASE, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.irDeriveAbsIntBase", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM irDeriveAbsIntBase(CompletionStatus cs) { return irDeriveAbsIntBase(cs, null); } public BAD_PARAM irDeriveAbsIntBase(Throwable t) { return irDeriveAbsIntBase(CompletionStatus.COMPLETED_NO, t); } public BAD_PARAM irDeriveAbsIntBase() { return irDeriveAbsIntBase(CompletionStatus.COMPLETED_NO, null); } public static final int IR_VALUE_SUPPORT = OMGVMCID.value + 12; public BAD_PARAM irValueSupport(CompletionStatus cs, Throwable t) { BAD_PARAM exc = new BAD_PARAM(IR_VALUE_SUPPORT, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.irValueSupport", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM irValueSupport(CompletionStatus cs) { return irValueSupport(cs, null); } public BAD_PARAM irValueSupport(Throwable t) { return irValueSupport(CompletionStatus.COMPLETED_NO, t); } public BAD_PARAM irValueSupport() { return irValueSupport(CompletionStatus.COMPLETED_NO, null); } public static final int INCOMPLETE_TYPECODE = OMGVMCID.value + 13; public BAD_PARAM incompleteTypecode(CompletionStatus cs, Throwable t) { BAD_PARAM exc = new BAD_PARAM(INCOMPLETE_TYPECODE, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.incompleteTypecode", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM incompleteTypecode(CompletionStatus cs) { return incompleteTypecode(cs, null); } public BAD_PARAM incompleteTypecode(Throwable t) { return incompleteTypecode(CompletionStatus.COMPLETED_NO, t); } public BAD_PARAM incompleteTypecode() { return incompleteTypecode(CompletionStatus.COMPLETED_NO, null); } public static final int INVALID_OBJECT_ID = OMGVMCID.value + 14; public BAD_PARAM invalidObjectId(CompletionStatus cs, Throwable t) { BAD_PARAM exc = new BAD_PARAM(INVALID_OBJECT_ID, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.invalidObjectId", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM invalidObjectId(CompletionStatus cs) { return invalidObjectId(cs, null); } public BAD_PARAM invalidObjectId(Throwable t) { return invalidObjectId(CompletionStatus.COMPLETED_NO, t); } public BAD_PARAM invalidObjectId() { return invalidObjectId(CompletionStatus.COMPLETED_NO, null); } public static final int TYPECODE_BAD_NAME = OMGVMCID.value + 15; public BAD_PARAM typecodeBadName(CompletionStatus cs, Throwable t) { BAD_PARAM exc = new BAD_PARAM(TYPECODE_BAD_NAME, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.typecodeBadName", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM typecodeBadName(CompletionStatus cs) { return typecodeBadName(cs, null); } public BAD_PARAM typecodeBadName(Throwable t) { return typecodeBadName(CompletionStatus.COMPLETED_NO, t); } public BAD_PARAM typecodeBadName() { return typecodeBadName(CompletionStatus.COMPLETED_NO, null); } public static final int TYPECODE_BAD_REPID = OMGVMCID.value + 16; public BAD_PARAM typecodeBadRepid(CompletionStatus cs, Throwable t) { BAD_PARAM exc = new BAD_PARAM(TYPECODE_BAD_REPID, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.typecodeBadRepid", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM typecodeBadRepid(CompletionStatus cs) { return typecodeBadRepid(cs, null); } public BAD_PARAM typecodeBadRepid(Throwable t) { return typecodeBadRepid(CompletionStatus.COMPLETED_NO, t); } public BAD_PARAM typecodeBadRepid() { return typecodeBadRepid(CompletionStatus.COMPLETED_NO, null); } public static final int TYPECODE_INV_MEMBER = OMGVMCID.value + 17; public BAD_PARAM typecodeInvMember(CompletionStatus cs, Throwable t) { BAD_PARAM exc = new BAD_PARAM(TYPECODE_INV_MEMBER, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.typecodeInvMember", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM typecodeInvMember(CompletionStatus cs) { return typecodeInvMember(cs, null); } public BAD_PARAM typecodeInvMember(Throwable t) { return typecodeInvMember(CompletionStatus.COMPLETED_NO, t); } public BAD_PARAM typecodeInvMember() { return typecodeInvMember(CompletionStatus.COMPLETED_NO, null); } public static final int TC_UNION_DUP_LABEL = OMGVMCID.value + 18; public BAD_PARAM tcUnionDupLabel(CompletionStatus cs, Throwable t) { BAD_PARAM exc = new BAD_PARAM(TC_UNION_DUP_LABEL, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.tcUnionDupLabel", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM tcUnionDupLabel(CompletionStatus cs) { return tcUnionDupLabel(cs, null); } public BAD_PARAM tcUnionDupLabel(Throwable t) { return tcUnionDupLabel(CompletionStatus.COMPLETED_NO, t); } public BAD_PARAM tcUnionDupLabel() { return tcUnionDupLabel(CompletionStatus.COMPLETED_NO, null); } public static final int TC_UNION_INCOMPATIBLE = OMGVMCID.value + 19; public BAD_PARAM tcUnionIncompatible(CompletionStatus cs, Throwable t) { BAD_PARAM exc = new BAD_PARAM(TC_UNION_INCOMPATIBLE, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.tcUnionIncompatible", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM tcUnionIncompatible(CompletionStatus cs) { return tcUnionIncompatible(cs, null); } public BAD_PARAM tcUnionIncompatible(Throwable t) { return tcUnionIncompatible(CompletionStatus.COMPLETED_NO, t); } public BAD_PARAM tcUnionIncompatible() { return tcUnionIncompatible(CompletionStatus.COMPLETED_NO, null); } public static final int TC_UNION_BAD_DISC = OMGVMCID.value + 20; public BAD_PARAM tcUnionBadDisc(CompletionStatus cs, Throwable t) { BAD_PARAM exc = new BAD_PARAM(TC_UNION_BAD_DISC, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.tcUnionBadDisc", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM tcUnionBadDisc(CompletionStatus cs) { return tcUnionBadDisc(cs, null); } public BAD_PARAM tcUnionBadDisc(Throwable t) { return tcUnionBadDisc(CompletionStatus.COMPLETED_NO, t); } public BAD_PARAM tcUnionBadDisc() { return tcUnionBadDisc(CompletionStatus.COMPLETED_NO, null); } public static final int SET_EXCEPTION_BAD_ANY = OMGVMCID.value + 21; public BAD_PARAM setExceptionBadAny(CompletionStatus cs, Throwable t) { BAD_PARAM exc = new BAD_PARAM(SET_EXCEPTION_BAD_ANY, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.setExceptionBadAny", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM setExceptionBadAny(CompletionStatus cs) { return setExceptionBadAny(cs, null); } public BAD_PARAM setExceptionBadAny(Throwable t) { return setExceptionBadAny(CompletionStatus.COMPLETED_NO, t); } public BAD_PARAM setExceptionBadAny() { return setExceptionBadAny(CompletionStatus.COMPLETED_NO, null); } public static final int SET_EXCEPTION_UNLISTED = OMGVMCID.value + 22; public BAD_PARAM setExceptionUnlisted(CompletionStatus cs, Throwable t) { BAD_PARAM exc = new BAD_PARAM(SET_EXCEPTION_UNLISTED, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.setExceptionUnlisted", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM setExceptionUnlisted(CompletionStatus cs) { return setExceptionUnlisted(cs, null); } public BAD_PARAM setExceptionUnlisted(Throwable t) { return setExceptionUnlisted(CompletionStatus.COMPLETED_NO, t); } public BAD_PARAM setExceptionUnlisted() { return setExceptionUnlisted(CompletionStatus.COMPLETED_NO, null); } public static final int NO_CLIENT_WCHAR_CODESET_CTX = OMGVMCID.value + 23; public BAD_PARAM noClientWcharCodesetCtx(CompletionStatus cs, Throwable t) { BAD_PARAM exc = new BAD_PARAM(NO_CLIENT_WCHAR_CODESET_CTX, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.noClientWcharCodesetCtx", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM noClientWcharCodesetCtx(CompletionStatus cs) { return noClientWcharCodesetCtx(cs, null); } public BAD_PARAM noClientWcharCodesetCtx(Throwable t) { return noClientWcharCodesetCtx(CompletionStatus.COMPLETED_NO, t); } public BAD_PARAM noClientWcharCodesetCtx() { return noClientWcharCodesetCtx(CompletionStatus.COMPLETED_NO, null); } public static final int ILLEGAL_SERVICE_CONTEXT = OMGVMCID.value + 24; public BAD_PARAM illegalServiceContext(CompletionStatus cs, Throwable t) { BAD_PARAM exc = new BAD_PARAM(ILLEGAL_SERVICE_CONTEXT, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.illegalServiceContext", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM illegalServiceContext(CompletionStatus cs) { return illegalServiceContext(cs, null); } public BAD_PARAM illegalServiceContext(Throwable t) { return illegalServiceContext(CompletionStatus.COMPLETED_NO, t); } public BAD_PARAM illegalServiceContext() { return illegalServiceContext(CompletionStatus.COMPLETED_NO, null); } public static final int ENUM_OUT_OF_RANGE = OMGVMCID.value + 25; public BAD_PARAM enumOutOfRange(CompletionStatus cs, Throwable t) { BAD_PARAM exc = new BAD_PARAM(ENUM_OUT_OF_RANGE, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.enumOutOfRange", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM enumOutOfRange(CompletionStatus cs) { return enumOutOfRange(cs, null); } public BAD_PARAM enumOutOfRange(Throwable t) { return enumOutOfRange(CompletionStatus.COMPLETED_NO, t); } public BAD_PARAM enumOutOfRange() { return enumOutOfRange(CompletionStatus.COMPLETED_NO, null); } public static final int INVALID_SERVICE_CONTEXT_ID = OMGVMCID.value + 26; public BAD_PARAM invalidServiceContextId(CompletionStatus cs, Throwable t) { BAD_PARAM exc = new BAD_PARAM(INVALID_SERVICE_CONTEXT_ID, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.FINE)) { Object[] parameters = null; doLog(Level.FINE, "OMG.invalidServiceContextId", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM invalidServiceContextId(CompletionStatus cs) { return invalidServiceContextId(cs, null); } public BAD_PARAM invalidServiceContextId(Throwable t) { return invalidServiceContextId(CompletionStatus.COMPLETED_NO, t); } public BAD_PARAM invalidServiceContextId() { return invalidServiceContextId(CompletionStatus.COMPLETED_NO, null); } public static final int RIR_WITH_NULL_OBJECT = OMGVMCID.value + 27; public BAD_PARAM rirWithNullObject(CompletionStatus cs, Throwable t) { BAD_PARAM exc = new BAD_PARAM(RIR_WITH_NULL_OBJECT, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.rirWithNullObject", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM rirWithNullObject(CompletionStatus cs) { return rirWithNullObject(cs, null); } public BAD_PARAM rirWithNullObject(Throwable t) { return rirWithNullObject(CompletionStatus.COMPLETED_NO, t); } public BAD_PARAM rirWithNullObject() { return rirWithNullObject(CompletionStatus.COMPLETED_NO, null); } public static final int INVALID_COMPONENT_ID = OMGVMCID.value + 28; public BAD_PARAM invalidComponentId(CompletionStatus cs, Throwable t, Object arg0) { BAD_PARAM exc = new BAD_PARAM(INVALID_COMPONENT_ID, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.FINE)) { Object[] parameters = new Object[1]; parameters[0] = arg0; doLog(Level.FINE, "OMG.invalidComponentId", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM invalidComponentId(CompletionStatus cs, Object arg0) { return invalidComponentId(cs, null, arg0); } public BAD_PARAM invalidComponentId(Throwable t, Object arg0) { return invalidComponentId(CompletionStatus.COMPLETED_NO, t, arg0); } public BAD_PARAM invalidComponentId(Object arg0) { return invalidComponentId(CompletionStatus.COMPLETED_NO, null, arg0); } public static final int INVALID_PROFILE_ID = OMGVMCID.value + 29; public BAD_PARAM invalidProfileId(CompletionStatus cs, Throwable t) { BAD_PARAM exc = new BAD_PARAM(INVALID_PROFILE_ID, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.invalidProfileId", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM invalidProfileId(CompletionStatus cs) { return invalidProfileId(cs, null); } public BAD_PARAM invalidProfileId(Throwable t) { return invalidProfileId(CompletionStatus.COMPLETED_NO, t); } public BAD_PARAM invalidProfileId() { return invalidProfileId(CompletionStatus.COMPLETED_NO, null); } public static final int POLICY_TYPE_DUPLICATE = OMGVMCID.value + 30; public BAD_PARAM policyTypeDuplicate(CompletionStatus cs, Throwable t) { BAD_PARAM exc = new BAD_PARAM(POLICY_TYPE_DUPLICATE, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.policyTypeDuplicate", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM policyTypeDuplicate(CompletionStatus cs) { return policyTypeDuplicate(cs, null); } public BAD_PARAM policyTypeDuplicate(Throwable t) { return policyTypeDuplicate(CompletionStatus.COMPLETED_NO, t); } public BAD_PARAM policyTypeDuplicate() { return policyTypeDuplicate(CompletionStatus.COMPLETED_NO, null); } public static final int BAD_ONEWAY_DEFINITION = OMGVMCID.value + 31; public BAD_PARAM badOnewayDefinition(CompletionStatus cs, Throwable t) { BAD_PARAM exc = new BAD_PARAM(BAD_ONEWAY_DEFINITION, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.badOnewayDefinition", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM badOnewayDefinition(CompletionStatus cs) { return badOnewayDefinition(cs, null); } public BAD_PARAM badOnewayDefinition(Throwable t) { return badOnewayDefinition(CompletionStatus.COMPLETED_NO, t); } public BAD_PARAM badOnewayDefinition() { return badOnewayDefinition(CompletionStatus.COMPLETED_NO, null); } public static final int DII_FOR_IMPLICIT_OPERATION = OMGVMCID.value + 32; public BAD_PARAM diiForImplicitOperation(CompletionStatus cs, Throwable t) { BAD_PARAM exc = new BAD_PARAM(DII_FOR_IMPLICIT_OPERATION, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.diiForImplicitOperation", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM diiForImplicitOperation(CompletionStatus cs) { return diiForImplicitOperation(cs, null); } public BAD_PARAM diiForImplicitOperation(Throwable t) { return diiForImplicitOperation(CompletionStatus.COMPLETED_NO, t); } public BAD_PARAM diiForImplicitOperation() { return diiForImplicitOperation(CompletionStatus.COMPLETED_NO, null); } public static final int XA_CALL_INVAL = OMGVMCID.value + 33; public BAD_PARAM xaCallInval(CompletionStatus cs, Throwable t) { BAD_PARAM exc = new BAD_PARAM(XA_CALL_INVAL, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.xaCallInval", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM xaCallInval(CompletionStatus cs) { return xaCallInval(cs, null); } public BAD_PARAM xaCallInval(Throwable t) { return xaCallInval(CompletionStatus.COMPLETED_NO, t); } public BAD_PARAM xaCallInval() { return xaCallInval(CompletionStatus.COMPLETED_NO, null); } public static final int UNION_BAD_DISCRIMINATOR = OMGVMCID.value + 34; public BAD_PARAM unionBadDiscriminator(CompletionStatus cs, Throwable t) { BAD_PARAM exc = new BAD_PARAM(UNION_BAD_DISCRIMINATOR, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.unionBadDiscriminator", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM unionBadDiscriminator(CompletionStatus cs) { return unionBadDiscriminator(cs, null); } public BAD_PARAM unionBadDiscriminator(Throwable t) { return unionBadDiscriminator(CompletionStatus.COMPLETED_NO, t); } public BAD_PARAM unionBadDiscriminator() { return unionBadDiscriminator(CompletionStatus.COMPLETED_NO, null); } public static final int CTX_ILLEGAL_PROPERTY_NAME = OMGVMCID.value + 35; public BAD_PARAM ctxIllegalPropertyName(CompletionStatus cs, Throwable t) { BAD_PARAM exc = new BAD_PARAM(CTX_ILLEGAL_PROPERTY_NAME, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.ctxIllegalPropertyName", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM ctxIllegalPropertyName(CompletionStatus cs) { return ctxIllegalPropertyName(cs, null); } public BAD_PARAM ctxIllegalPropertyName(Throwable t) { return ctxIllegalPropertyName(CompletionStatus.COMPLETED_NO, t); } public BAD_PARAM ctxIllegalPropertyName() { return ctxIllegalPropertyName(CompletionStatus.COMPLETED_NO, null); } public static final int CTX_ILLEGAL_SEARCH_STRING = OMGVMCID.value + 36; public BAD_PARAM ctxIllegalSearchString(CompletionStatus cs, Throwable t) { BAD_PARAM exc = new BAD_PARAM(CTX_ILLEGAL_SEARCH_STRING, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.ctxIllegalSearchString", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM ctxIllegalSearchString(CompletionStatus cs) { return ctxIllegalSearchString(cs, null); } public BAD_PARAM ctxIllegalSearchString(Throwable t) { return ctxIllegalSearchString(CompletionStatus.COMPLETED_NO, t); } public BAD_PARAM ctxIllegalSearchString() { return ctxIllegalSearchString(CompletionStatus.COMPLETED_NO, null); } public static final int CTX_ILLEGAL_NAME = OMGVMCID.value + 37; public BAD_PARAM ctxIllegalName(CompletionStatus cs, Throwable t) { BAD_PARAM exc = new BAD_PARAM(CTX_ILLEGAL_NAME, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.ctxIllegalName", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM ctxIllegalName(CompletionStatus cs) { return ctxIllegalName(cs, null); } public BAD_PARAM ctxIllegalName(Throwable t) { return ctxIllegalName(CompletionStatus.COMPLETED_NO, t); } public BAD_PARAM ctxIllegalName() { return ctxIllegalName(CompletionStatus.COMPLETED_NO, null); } public static final int CTX_NON_EMPTY = OMGVMCID.value + 38; public BAD_PARAM ctxNonEmpty(CompletionStatus cs, Throwable t) { BAD_PARAM exc = new BAD_PARAM(CTX_NON_EMPTY, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.ctxNonEmpty", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM ctxNonEmpty(CompletionStatus cs) { return ctxNonEmpty(cs, null); } public BAD_PARAM ctxNonEmpty(Throwable t) { return ctxNonEmpty(CompletionStatus.COMPLETED_NO, t); } public BAD_PARAM ctxNonEmpty() { return ctxNonEmpty(CompletionStatus.COMPLETED_NO, null); } public static final int INVALID_STREAM_FORMAT_VERSION = OMGVMCID.value + 39; public BAD_PARAM invalidStreamFormatVersion(CompletionStatus cs, Throwable t, Object arg0) { BAD_PARAM exc = new BAD_PARAM(INVALID_STREAM_FORMAT_VERSION, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = new Object[1]; parameters[0] = arg0; doLog(Level.WARNING, "OMG.invalidStreamFormatVersion", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM invalidStreamFormatVersion(CompletionStatus cs, Object arg0) { return invalidStreamFormatVersion(cs, null, arg0); } public BAD_PARAM invalidStreamFormatVersion(Throwable t, Object arg0) { return invalidStreamFormatVersion(CompletionStatus.COMPLETED_NO, t, arg0); } public BAD_PARAM invalidStreamFormatVersion(Object arg0) { return invalidStreamFormatVersion(CompletionStatus.COMPLETED_NO, null, arg0); } public static final int NOT_A_VALUEOUTPUTSTREAM = OMGVMCID.value + 40; public BAD_PARAM notAValueoutputstream(CompletionStatus cs, Throwable t) { BAD_PARAM exc = new BAD_PARAM(NOT_A_VALUEOUTPUTSTREAM, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.notAValueoutputstream", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM notAValueoutputstream(CompletionStatus cs) { return notAValueoutputstream(cs, null); } public BAD_PARAM notAValueoutputstream(Throwable t) { return notAValueoutputstream(CompletionStatus.COMPLETED_NO, t); } public BAD_PARAM notAValueoutputstream() { return notAValueoutputstream(CompletionStatus.COMPLETED_NO, null); } public static final int NOT_A_VALUEINPUTSTREAM = OMGVMCID.value + 41; public BAD_PARAM notAValueinputstream(CompletionStatus cs, Throwable t) { BAD_PARAM exc = new BAD_PARAM(NOT_A_VALUEINPUTSTREAM, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.notAValueinputstream", parameters, OMGSystemException.class, exc); } return exc; } public BAD_PARAM notAValueinputstream(CompletionStatus cs) { return notAValueinputstream(cs, null); } public BAD_PARAM notAValueinputstream(Throwable t) { return notAValueinputstream(CompletionStatus.COMPLETED_NO, t); } public BAD_PARAM notAValueinputstream() { return notAValueinputstream(CompletionStatus.COMPLETED_NO, null); } /////////////////////////////////////////////////////////// // BAD_TYPECODE /////////////////////////////////////////////////////////// public static final int MARSHALL_INCOMPLETE_TYPECODE = OMGVMCID.value + 1; public BAD_TYPECODE marshallIncompleteTypecode(CompletionStatus cs, Throwable t) { BAD_TYPECODE exc = new BAD_TYPECODE(MARSHALL_INCOMPLETE_TYPECODE, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.marshallIncompleteTypecode", parameters, OMGSystemException.class, exc); } return exc; } public BAD_TYPECODE marshallIncompleteTypecode(CompletionStatus cs) { return marshallIncompleteTypecode(cs, null); } public BAD_TYPECODE marshallIncompleteTypecode(Throwable t) { return marshallIncompleteTypecode(CompletionStatus.COMPLETED_NO, t); } public BAD_TYPECODE marshallIncompleteTypecode() { return marshallIncompleteTypecode(CompletionStatus.COMPLETED_NO, null); } public static final int BAD_MEMBER_TYPECODE = OMGVMCID.value + 2; public BAD_TYPECODE badMemberTypecode(CompletionStatus cs, Throwable t) { BAD_TYPECODE exc = new BAD_TYPECODE(BAD_MEMBER_TYPECODE, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.badMemberTypecode", parameters, OMGSystemException.class, exc); } return exc; } public BAD_TYPECODE badMemberTypecode(CompletionStatus cs) { return badMemberTypecode(cs, null); } public BAD_TYPECODE badMemberTypecode(Throwable t) { return badMemberTypecode(CompletionStatus.COMPLETED_NO, t); } public BAD_TYPECODE badMemberTypecode() { return badMemberTypecode(CompletionStatus.COMPLETED_NO, null); } public static final int ILLEGAL_PARAMETER = OMGVMCID.value + 3; public BAD_TYPECODE illegalParameter(CompletionStatus cs, Throwable t) { BAD_TYPECODE exc = new BAD_TYPECODE(ILLEGAL_PARAMETER, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.illegalParameter", parameters, OMGSystemException.class, exc); } return exc; } public BAD_TYPECODE illegalParameter(CompletionStatus cs) { return illegalParameter(cs, null); } public BAD_TYPECODE illegalParameter(Throwable t) { return illegalParameter(CompletionStatus.COMPLETED_NO, t); } public BAD_TYPECODE illegalParameter() { return illegalParameter(CompletionStatus.COMPLETED_NO, null); } /////////////////////////////////////////////////////////// // DATA_CONVERSION /////////////////////////////////////////////////////////// public static final int CHAR_NOT_IN_CODESET = OMGVMCID.value + 1; public DATA_CONVERSION charNotInCodeset(CompletionStatus cs, Throwable t) { DATA_CONVERSION exc = new DATA_CONVERSION(CHAR_NOT_IN_CODESET, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.charNotInCodeset", parameters, OMGSystemException.class, exc); } return exc; } public DATA_CONVERSION charNotInCodeset(CompletionStatus cs) { return charNotInCodeset(cs, null); } public DATA_CONVERSION charNotInCodeset(Throwable t) { return charNotInCodeset(CompletionStatus.COMPLETED_NO, t); } public DATA_CONVERSION charNotInCodeset() { return charNotInCodeset(CompletionStatus.COMPLETED_NO, null); } public static final int PRIORITY_MAP_FAILRE = OMGVMCID.value + 2; public DATA_CONVERSION priorityMapFailre(CompletionStatus cs, Throwable t) { DATA_CONVERSION exc = new DATA_CONVERSION(PRIORITY_MAP_FAILRE, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.priorityMapFailre", parameters, OMGSystemException.class, exc); } return exc; } public DATA_CONVERSION priorityMapFailre(CompletionStatus cs) { return priorityMapFailre(cs, null); } public DATA_CONVERSION priorityMapFailre(Throwable t) { return priorityMapFailre(CompletionStatus.COMPLETED_NO, t); } public DATA_CONVERSION priorityMapFailre() { return priorityMapFailre(CompletionStatus.COMPLETED_NO, null); } /////////////////////////////////////////////////////////// // IMP_LIMIT /////////////////////////////////////////////////////////// public static final int NO_USABLE_PROFILE = OMGVMCID.value + 1; public IMP_LIMIT noUsableProfile(CompletionStatus cs, Throwable t) { IMP_LIMIT exc = new IMP_LIMIT(NO_USABLE_PROFILE, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.noUsableProfile", parameters, OMGSystemException.class, exc); } return exc; } public IMP_LIMIT noUsableProfile(CompletionStatus cs) { return noUsableProfile(cs, null); } public IMP_LIMIT noUsableProfile(Throwable t) { return noUsableProfile(CompletionStatus.COMPLETED_NO, t); } public IMP_LIMIT noUsableProfile() { return noUsableProfile(CompletionStatus.COMPLETED_NO, null); } /////////////////////////////////////////////////////////// // INITIALIZE /////////////////////////////////////////////////////////// public static final int PRIORITY_RANGE_RESTRICT = OMGVMCID.value + 1; public INITIALIZE priorityRangeRestrict(CompletionStatus cs, Throwable t) { INITIALIZE exc = new INITIALIZE(PRIORITY_RANGE_RESTRICT, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.priorityRangeRestrict", parameters, OMGSystemException.class, exc); } return exc; } public INITIALIZE priorityRangeRestrict(CompletionStatus cs) { return priorityRangeRestrict(cs, null); } public INITIALIZE priorityRangeRestrict(Throwable t) { return priorityRangeRestrict(CompletionStatus.COMPLETED_NO, t); } public INITIALIZE priorityRangeRestrict() { return priorityRangeRestrict(CompletionStatus.COMPLETED_NO, null); } /////////////////////////////////////////////////////////// // INV_OBJREF /////////////////////////////////////////////////////////// public static final int NO_SERVER_WCHAR_CODESET_CMP = OMGVMCID.value + 1; public INV_OBJREF noServerWcharCodesetCmp(CompletionStatus cs, Throwable t) { INV_OBJREF exc = new INV_OBJREF(NO_SERVER_WCHAR_CODESET_CMP, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.noServerWcharCodesetCmp", parameters, OMGSystemException.class, exc); } return exc; } public INV_OBJREF noServerWcharCodesetCmp(CompletionStatus cs) { return noServerWcharCodesetCmp(cs, null); } public INV_OBJREF noServerWcharCodesetCmp(Throwable t) { return noServerWcharCodesetCmp(CompletionStatus.COMPLETED_NO, t); } public INV_OBJREF noServerWcharCodesetCmp() { return noServerWcharCodesetCmp(CompletionStatus.COMPLETED_NO, null); } public static final int CODESET_COMPONENT_REQUIRED = OMGVMCID.value + 2; public INV_OBJREF codesetComponentRequired(CompletionStatus cs, Throwable t) { INV_OBJREF exc = new INV_OBJREF(CODESET_COMPONENT_REQUIRED, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.codesetComponentRequired", parameters, OMGSystemException.class, exc); } return exc; } public INV_OBJREF codesetComponentRequired(CompletionStatus cs) { return codesetComponentRequired(cs, null); } public INV_OBJREF codesetComponentRequired(Throwable t) { return codesetComponentRequired(CompletionStatus.COMPLETED_NO, t); } public INV_OBJREF codesetComponentRequired() { return codesetComponentRequired(CompletionStatus.COMPLETED_NO, null); } /////////////////////////////////////////////////////////// // INV_POLICY /////////////////////////////////////////////////////////// public static final int IOR_POLICY_RECONCILE_ERROR = OMGVMCID.value + 1; public INV_POLICY iorPolicyReconcileError(CompletionStatus cs, Throwable t) { INV_POLICY exc = new INV_POLICY(IOR_POLICY_RECONCILE_ERROR, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.iorPolicyReconcileError", parameters, OMGSystemException.class, exc); } return exc; } public INV_POLICY iorPolicyReconcileError(CompletionStatus cs) { return iorPolicyReconcileError(cs, null); } public INV_POLICY iorPolicyReconcileError(Throwable t) { return iorPolicyReconcileError(CompletionStatus.COMPLETED_NO, t); } public INV_POLICY iorPolicyReconcileError() { return iorPolicyReconcileError(CompletionStatus.COMPLETED_NO, null); } public static final int POLICY_UNKNOWN = OMGVMCID.value + 2; public INV_POLICY policyUnknown(CompletionStatus cs, Throwable t) { INV_POLICY exc = new INV_POLICY(POLICY_UNKNOWN, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.policyUnknown", parameters, OMGSystemException.class, exc); } return exc; } public INV_POLICY policyUnknown(CompletionStatus cs) { return policyUnknown(cs, null); } public INV_POLICY policyUnknown(Throwable t) { return policyUnknown(CompletionStatus.COMPLETED_NO, t); } public INV_POLICY policyUnknown() { return policyUnknown(CompletionStatus.COMPLETED_NO, null); } public static final int NO_POLICY_FACTORY = OMGVMCID.value + 3; public INV_POLICY noPolicyFactory(CompletionStatus cs, Throwable t) { INV_POLICY exc = new INV_POLICY(NO_POLICY_FACTORY, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.noPolicyFactory", parameters, OMGSystemException.class, exc); } return exc; } public INV_POLICY noPolicyFactory(CompletionStatus cs) { return noPolicyFactory(cs, null); } public INV_POLICY noPolicyFactory(Throwable t) { return noPolicyFactory(CompletionStatus.COMPLETED_NO, t); } public INV_POLICY noPolicyFactory() { return noPolicyFactory(CompletionStatus.COMPLETED_NO, null); } /////////////////////////////////////////////////////////// // INTERNAL /////////////////////////////////////////////////////////// public static final int XA_RMERR = OMGVMCID.value + 1; public INTERNAL xaRmerr(CompletionStatus cs, Throwable t) { INTERNAL exc = new INTERNAL(XA_RMERR, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.xaRmerr", parameters, OMGSystemException.class, exc); } return exc; } public INTERNAL xaRmerr(CompletionStatus cs) { return xaRmerr(cs, null); } public INTERNAL xaRmerr(Throwable t) { return xaRmerr(CompletionStatus.COMPLETED_NO, t); } public INTERNAL xaRmerr() { return xaRmerr(CompletionStatus.COMPLETED_NO, null); } public static final int XA_RMFAIL = OMGVMCID.value + 2; public INTERNAL xaRmfail(CompletionStatus cs, Throwable t) { INTERNAL exc = new INTERNAL(XA_RMFAIL, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.xaRmfail", parameters, OMGSystemException.class, exc); } return exc; } public INTERNAL xaRmfail(CompletionStatus cs) { return xaRmfail(cs, null); } public INTERNAL xaRmfail(Throwable t) { return xaRmfail(CompletionStatus.COMPLETED_NO, t); } public INTERNAL xaRmfail() { return xaRmfail(CompletionStatus.COMPLETED_NO, null); } /////////////////////////////////////////////////////////// // INTF_REPOS /////////////////////////////////////////////////////////// public static final int NO_IR = OMGVMCID.value + 1; public INTF_REPOS noIr(CompletionStatus cs, Throwable t) { INTF_REPOS exc = new INTF_REPOS(NO_IR, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.noIr", parameters, OMGSystemException.class, exc); } return exc; } public INTF_REPOS noIr(CompletionStatus cs) { return noIr(cs, null); } public INTF_REPOS noIr(Throwable t) { return noIr(CompletionStatus.COMPLETED_NO, t); } public INTF_REPOS noIr() { return noIr(CompletionStatus.COMPLETED_NO, null); } public static final int NO_INTERFACE_IN_IR = OMGVMCID.value + 2; public INTF_REPOS noInterfaceInIr(CompletionStatus cs, Throwable t) { INTF_REPOS exc = new INTF_REPOS(NO_INTERFACE_IN_IR, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.noInterfaceInIr", parameters, OMGSystemException.class, exc); } return exc; } public INTF_REPOS noInterfaceInIr(CompletionStatus cs) { return noInterfaceInIr(cs, null); } public INTF_REPOS noInterfaceInIr(Throwable t) { return noInterfaceInIr(CompletionStatus.COMPLETED_NO, t); } public INTF_REPOS noInterfaceInIr() { return noInterfaceInIr(CompletionStatus.COMPLETED_NO, null); } /////////////////////////////////////////////////////////// // MARSHAL /////////////////////////////////////////////////////////// public static final int UNABLE_LOCATE_VALUE_FACTORY = OMGVMCID.value + 1; public MARSHAL unableLocateValueFactory(CompletionStatus cs, Throwable t) { MARSHAL exc = new MARSHAL(UNABLE_LOCATE_VALUE_FACTORY, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.FINE)) { Object[] parameters = null; doLog(Level.FINE, "OMG.unableLocateValueFactory", parameters, OMGSystemException.class, exc); } return exc; } public MARSHAL unableLocateValueFactory(CompletionStatus cs) { return unableLocateValueFactory(cs, null); } public MARSHAL unableLocateValueFactory(Throwable t) { return unableLocateValueFactory(CompletionStatus.COMPLETED_NO, t); } public MARSHAL unableLocateValueFactory() { return unableLocateValueFactory(CompletionStatus.COMPLETED_NO, null); } public static final int SET_RESULT_BEFORE_CTX = OMGVMCID.value + 2; public MARSHAL setResultBeforeCtx(CompletionStatus cs, Throwable t) { MARSHAL exc = new MARSHAL(SET_RESULT_BEFORE_CTX, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.setResultBeforeCtx", parameters, OMGSystemException.class, exc); } return exc; } public MARSHAL setResultBeforeCtx(CompletionStatus cs) { return setResultBeforeCtx(cs, null); } public MARSHAL setResultBeforeCtx(Throwable t) { return setResultBeforeCtx(CompletionStatus.COMPLETED_NO, t); } public MARSHAL setResultBeforeCtx() { return setResultBeforeCtx(CompletionStatus.COMPLETED_NO, null); } public static final int BAD_NVLIST = OMGVMCID.value + 3; public MARSHAL badNvlist(CompletionStatus cs, Throwable t) { MARSHAL exc = new MARSHAL(BAD_NVLIST, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.badNvlist", parameters, OMGSystemException.class, exc); } return exc; } public MARSHAL badNvlist(CompletionStatus cs) { return badNvlist(cs, null); } public MARSHAL badNvlist(Throwable t) { return badNvlist(CompletionStatus.COMPLETED_NO, t); } public MARSHAL badNvlist() { return badNvlist(CompletionStatus.COMPLETED_NO, null); } public static final int NOT_AN_OBJECT_IMPL = OMGVMCID.value + 4; public MARSHAL notAnObjectImpl(CompletionStatus cs, Throwable t) { MARSHAL exc = new MARSHAL(NOT_AN_OBJECT_IMPL, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.notAnObjectImpl", parameters, OMGSystemException.class, exc); } return exc; } public MARSHAL notAnObjectImpl(CompletionStatus cs) { return notAnObjectImpl(cs, null); } public MARSHAL notAnObjectImpl(Throwable t) { return notAnObjectImpl(CompletionStatus.COMPLETED_NO, t); } public MARSHAL notAnObjectImpl() { return notAnObjectImpl(CompletionStatus.COMPLETED_NO, null); } public static final int WCHAR_BAD_GIOP_VERSION_SENT = OMGVMCID.value + 5; public MARSHAL wcharBadGiopVersionSent(CompletionStatus cs, Throwable t) { MARSHAL exc = new MARSHAL(WCHAR_BAD_GIOP_VERSION_SENT, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.wcharBadGiopVersionSent", parameters, OMGSystemException.class, exc); } return exc; } public MARSHAL wcharBadGiopVersionSent(CompletionStatus cs) { return wcharBadGiopVersionSent(cs, null); } public MARSHAL wcharBadGiopVersionSent(Throwable t) { return wcharBadGiopVersionSent(CompletionStatus.COMPLETED_NO, t); } public MARSHAL wcharBadGiopVersionSent() { return wcharBadGiopVersionSent(CompletionStatus.COMPLETED_NO, null); } public static final int WCHAR_BAD_GIOP_VERSION_RETURNED = OMGVMCID.value + 6; public MARSHAL wcharBadGiopVersionReturned(CompletionStatus cs, Throwable t) { MARSHAL exc = new MARSHAL(WCHAR_BAD_GIOP_VERSION_RETURNED, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.wcharBadGiopVersionReturned", parameters, OMGSystemException.class, exc); } return exc; } public MARSHAL wcharBadGiopVersionReturned(CompletionStatus cs) { return wcharBadGiopVersionReturned(cs, null); } public MARSHAL wcharBadGiopVersionReturned(Throwable t) { return wcharBadGiopVersionReturned(CompletionStatus.COMPLETED_NO, t); } public MARSHAL wcharBadGiopVersionReturned() { return wcharBadGiopVersionReturned(CompletionStatus.COMPLETED_NO, null); } public static final int UNSUPPORTED_FORMAT_VERSION = OMGVMCID.value + 7; public MARSHAL unsupportedFormatVersion(CompletionStatus cs, Throwable t) { MARSHAL exc = new MARSHAL(UNSUPPORTED_FORMAT_VERSION, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.unsupportedFormatVersion", parameters, OMGSystemException.class, exc); } return exc; } public MARSHAL unsupportedFormatVersion(CompletionStatus cs) { return unsupportedFormatVersion(cs, null); } public MARSHAL unsupportedFormatVersion(Throwable t) { return unsupportedFormatVersion(CompletionStatus.COMPLETED_NO, t); } public MARSHAL unsupportedFormatVersion() { return unsupportedFormatVersion(CompletionStatus.COMPLETED_NO, null); } public static final int RMIIIOP_OPTIONAL_DATA_INCOMPATIBLE1 = OMGVMCID.value + 8; public MARSHAL rmiiiopOptionalDataIncompatible1(CompletionStatus cs, Throwable t) { MARSHAL exc = new MARSHAL(RMIIIOP_OPTIONAL_DATA_INCOMPATIBLE1, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.rmiiiopOptionalDataIncompatible1", parameters, OMGSystemException.class, exc); } return exc; } public MARSHAL rmiiiopOptionalDataIncompatible1(CompletionStatus cs) { return rmiiiopOptionalDataIncompatible1(cs, null); } public MARSHAL rmiiiopOptionalDataIncompatible1(Throwable t) { return rmiiiopOptionalDataIncompatible1(CompletionStatus.COMPLETED_NO, t); } public MARSHAL rmiiiopOptionalDataIncompatible1() { return rmiiiopOptionalDataIncompatible1(CompletionStatus.COMPLETED_NO, null); } public static final int RMIIIOP_OPTIONAL_DATA_INCOMPATIBLE2 = OMGVMCID.value + 8; public MARSHAL rmiiiopOptionalDataIncompatible2(CompletionStatus cs, Throwable t) { MARSHAL exc = new MARSHAL(RMIIIOP_OPTIONAL_DATA_INCOMPATIBLE2, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.rmiiiopOptionalDataIncompatible2", parameters, OMGSystemException.class, exc); } return exc; } public MARSHAL rmiiiopOptionalDataIncompatible2(CompletionStatus cs) { return rmiiiopOptionalDataIncompatible2(cs, null); } public MARSHAL rmiiiopOptionalDataIncompatible2(Throwable t) { return rmiiiopOptionalDataIncompatible2(CompletionStatus.COMPLETED_NO, t); } public MARSHAL rmiiiopOptionalDataIncompatible2() { return rmiiiopOptionalDataIncompatible2(CompletionStatus.COMPLETED_NO, null); } public static final int RMIIIOP_OPTIONAL_DATA_INCOMPATIBLE3 = OMGVMCID.value + 8; public MARSHAL rmiiiopOptionalDataIncompatible3(CompletionStatus cs, Throwable t) { MARSHAL exc = new MARSHAL(RMIIIOP_OPTIONAL_DATA_INCOMPATIBLE3, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.FINE)) { Object[] parameters = null; doLog(Level.FINE, "OMG.rmiiiopOptionalDataIncompatible3", parameters, OMGSystemException.class, exc); } return exc; } public MARSHAL rmiiiopOptionalDataIncompatible3(CompletionStatus cs) { return rmiiiopOptionalDataIncompatible3(cs, null); } public MARSHAL rmiiiopOptionalDataIncompatible3(Throwable t) { return rmiiiopOptionalDataIncompatible3(CompletionStatus.COMPLETED_NO, t); } public MARSHAL rmiiiopOptionalDataIncompatible3() { return rmiiiopOptionalDataIncompatible3(CompletionStatus.COMPLETED_NO, null); } /////////////////////////////////////////////////////////// // NO_IMPLEMENT /////////////////////////////////////////////////////////// public static final int MISSING_LOCAL_VALUE_IMPL = OMGVMCID.value + 1; public NO_IMPLEMENT missingLocalValueImpl(CompletionStatus cs, Throwable t) { NO_IMPLEMENT exc = new NO_IMPLEMENT(MISSING_LOCAL_VALUE_IMPL, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.missingLocalValueImpl", parameters, OMGSystemException.class, exc); } return exc; } public NO_IMPLEMENT missingLocalValueImpl(CompletionStatus cs) { return missingLocalValueImpl(cs, null); } public NO_IMPLEMENT missingLocalValueImpl(Throwable t) { return missingLocalValueImpl(CompletionStatus.COMPLETED_NO, t); } public NO_IMPLEMENT missingLocalValueImpl() { return missingLocalValueImpl(CompletionStatus.COMPLETED_NO, null); } public static final int INCOMPATIBLE_VALUE_IMPL = OMGVMCID.value + 2; public NO_IMPLEMENT incompatibleValueImpl(CompletionStatus cs, Throwable t) { NO_IMPLEMENT exc = new NO_IMPLEMENT(INCOMPATIBLE_VALUE_IMPL, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.incompatibleValueImpl", parameters, OMGSystemException.class, exc); } return exc; } public NO_IMPLEMENT incompatibleValueImpl(CompletionStatus cs) { return incompatibleValueImpl(cs, null); } public NO_IMPLEMENT incompatibleValueImpl(Throwable t) { return incompatibleValueImpl(CompletionStatus.COMPLETED_NO, t); } public NO_IMPLEMENT incompatibleValueImpl() { return incompatibleValueImpl(CompletionStatus.COMPLETED_NO, null); } public static final int NO_USABLE_PROFILE_2 = OMGVMCID.value + 3; public NO_IMPLEMENT noUsableProfile2(CompletionStatus cs, Throwable t) { NO_IMPLEMENT exc = new NO_IMPLEMENT(NO_USABLE_PROFILE_2, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.noUsableProfile2", parameters, OMGSystemException.class, exc); } return exc; } public NO_IMPLEMENT noUsableProfile2(CompletionStatus cs) { return noUsableProfile2(cs, null); } public NO_IMPLEMENT noUsableProfile2(Throwable t) { return noUsableProfile2(CompletionStatus.COMPLETED_NO, t); } public NO_IMPLEMENT noUsableProfile2() { return noUsableProfile2(CompletionStatus.COMPLETED_NO, null); } public static final int DII_LOCAL_OBJECT = OMGVMCID.value + 4; public NO_IMPLEMENT diiLocalObject(CompletionStatus cs, Throwable t) { NO_IMPLEMENT exc = new NO_IMPLEMENT(DII_LOCAL_OBJECT, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.diiLocalObject", parameters, OMGSystemException.class, exc); } return exc; } public NO_IMPLEMENT diiLocalObject(CompletionStatus cs) { return diiLocalObject(cs, null); } public NO_IMPLEMENT diiLocalObject(Throwable t) { return diiLocalObject(CompletionStatus.COMPLETED_NO, t); } public NO_IMPLEMENT diiLocalObject() { return diiLocalObject(CompletionStatus.COMPLETED_NO, null); } public static final int BIO_RESET = OMGVMCID.value + 5; public NO_IMPLEMENT bioReset(CompletionStatus cs, Throwable t) { NO_IMPLEMENT exc = new NO_IMPLEMENT(BIO_RESET, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.bioReset", parameters, OMGSystemException.class, exc); } return exc; } public NO_IMPLEMENT bioReset(CompletionStatus cs) { return bioReset(cs, null); } public NO_IMPLEMENT bioReset(Throwable t) { return bioReset(CompletionStatus.COMPLETED_NO, t); } public NO_IMPLEMENT bioReset() { return bioReset(CompletionStatus.COMPLETED_NO, null); } public static final int BIO_META_NOT_AVAILABLE = OMGVMCID.value + 6; public NO_IMPLEMENT bioMetaNotAvailable(CompletionStatus cs, Throwable t) { NO_IMPLEMENT exc = new NO_IMPLEMENT(BIO_META_NOT_AVAILABLE, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.bioMetaNotAvailable", parameters, OMGSystemException.class, exc); } return exc; } public NO_IMPLEMENT bioMetaNotAvailable(CompletionStatus cs) { return bioMetaNotAvailable(cs, null); } public NO_IMPLEMENT bioMetaNotAvailable(Throwable t) { return bioMetaNotAvailable(CompletionStatus.COMPLETED_NO, t); } public NO_IMPLEMENT bioMetaNotAvailable() { return bioMetaNotAvailable(CompletionStatus.COMPLETED_NO, null); } public static final int BIO_GENOMIC_NO_ITERATOR = OMGVMCID.value + 7; public NO_IMPLEMENT bioGenomicNoIterator(CompletionStatus cs, Throwable t) { NO_IMPLEMENT exc = new NO_IMPLEMENT(BIO_GENOMIC_NO_ITERATOR, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.bioGenomicNoIterator", parameters, OMGSystemException.class, exc); } return exc; } public NO_IMPLEMENT bioGenomicNoIterator(CompletionStatus cs) { return bioGenomicNoIterator(cs, null); } public NO_IMPLEMENT bioGenomicNoIterator(Throwable t) { return bioGenomicNoIterator(CompletionStatus.COMPLETED_NO, t); } public NO_IMPLEMENT bioGenomicNoIterator() { return bioGenomicNoIterator(CompletionStatus.COMPLETED_NO, null); } /////////////////////////////////////////////////////////// // NO_RESOURCES /////////////////////////////////////////////////////////// public static final int PI_OPERATION_NOT_SUPPORTED1 = OMGVMCID.value + 1; public NO_RESOURCES piOperationNotSupported1(CompletionStatus cs, Throwable t) { NO_RESOURCES exc = new NO_RESOURCES(PI_OPERATION_NOT_SUPPORTED1, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.FINE)) { Object[] parameters = null; doLog(Level.FINE, "OMG.piOperationNotSupported1", parameters, OMGSystemException.class, exc); } return exc; } public NO_RESOURCES piOperationNotSupported1(CompletionStatus cs) { return piOperationNotSupported1(cs, null); } public NO_RESOURCES piOperationNotSupported1(Throwable t) { return piOperationNotSupported1(CompletionStatus.COMPLETED_NO, t); } public NO_RESOURCES piOperationNotSupported1() { return piOperationNotSupported1(CompletionStatus.COMPLETED_NO, null); } public static final int PI_OPERATION_NOT_SUPPORTED2 = OMGVMCID.value + 1; public NO_RESOURCES piOperationNotSupported2(CompletionStatus cs, Throwable t) { NO_RESOURCES exc = new NO_RESOURCES(PI_OPERATION_NOT_SUPPORTED2, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.FINE)) { Object[] parameters = null; doLog(Level.FINE, "OMG.piOperationNotSupported2", parameters, OMGSystemException.class, exc); } return exc; } public NO_RESOURCES piOperationNotSupported2(CompletionStatus cs) { return piOperationNotSupported2(cs, null); } public NO_RESOURCES piOperationNotSupported2(Throwable t) { return piOperationNotSupported2(CompletionStatus.COMPLETED_NO, t); } public NO_RESOURCES piOperationNotSupported2() { return piOperationNotSupported2(CompletionStatus.COMPLETED_NO, null); } public static final int PI_OPERATION_NOT_SUPPORTED3 = OMGVMCID.value + 1; public NO_RESOURCES piOperationNotSupported3(CompletionStatus cs, Throwable t) { NO_RESOURCES exc = new NO_RESOURCES(PI_OPERATION_NOT_SUPPORTED3, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.FINE)) { Object[] parameters = null; doLog(Level.FINE, "OMG.piOperationNotSupported3", parameters, OMGSystemException.class, exc); } return exc; } public NO_RESOURCES piOperationNotSupported3(CompletionStatus cs) { return piOperationNotSupported3(cs, null); } public NO_RESOURCES piOperationNotSupported3(Throwable t) { return piOperationNotSupported3(CompletionStatus.COMPLETED_NO, t); } public NO_RESOURCES piOperationNotSupported3() { return piOperationNotSupported3(CompletionStatus.COMPLETED_NO, null); } public static final int PI_OPERATION_NOT_SUPPORTED4 = OMGVMCID.value + 1; public NO_RESOURCES piOperationNotSupported4(CompletionStatus cs, Throwable t) { NO_RESOURCES exc = new NO_RESOURCES(PI_OPERATION_NOT_SUPPORTED4, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.FINE)) { Object[] parameters = null; doLog(Level.FINE, "OMG.piOperationNotSupported4", parameters, OMGSystemException.class, exc); } return exc; } public NO_RESOURCES piOperationNotSupported4(CompletionStatus cs) { return piOperationNotSupported4(cs, null); } public NO_RESOURCES piOperationNotSupported4(Throwable t) { return piOperationNotSupported4(CompletionStatus.COMPLETED_NO, t); } public NO_RESOURCES piOperationNotSupported4() { return piOperationNotSupported4(CompletionStatus.COMPLETED_NO, null); } public static final int PI_OPERATION_NOT_SUPPORTED5 = OMGVMCID.value + 1; public NO_RESOURCES piOperationNotSupported5(CompletionStatus cs, Throwable t) { NO_RESOURCES exc = new NO_RESOURCES(PI_OPERATION_NOT_SUPPORTED5, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.FINE)) { Object[] parameters = null; doLog(Level.FINE, "OMG.piOperationNotSupported5", parameters, OMGSystemException.class, exc); } return exc; } public NO_RESOURCES piOperationNotSupported5(CompletionStatus cs) { return piOperationNotSupported5(cs, null); } public NO_RESOURCES piOperationNotSupported5(Throwable t) { return piOperationNotSupported5(CompletionStatus.COMPLETED_NO, t); } public NO_RESOURCES piOperationNotSupported5() { return piOperationNotSupported5(CompletionStatus.COMPLETED_NO, null); } public static final int PI_OPERATION_NOT_SUPPORTED6 = OMGVMCID.value + 1; public NO_RESOURCES piOperationNotSupported6(CompletionStatus cs, Throwable t) { NO_RESOURCES exc = new NO_RESOURCES(PI_OPERATION_NOT_SUPPORTED6, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.FINE)) { Object[] parameters = null; doLog(Level.FINE, "OMG.piOperationNotSupported6", parameters, OMGSystemException.class, exc); } return exc; } public NO_RESOURCES piOperationNotSupported6(CompletionStatus cs) { return piOperationNotSupported6(cs, null); } public NO_RESOURCES piOperationNotSupported6(Throwable t) { return piOperationNotSupported6(CompletionStatus.COMPLETED_NO, t); } public NO_RESOURCES piOperationNotSupported6() { return piOperationNotSupported6(CompletionStatus.COMPLETED_NO, null); } public static final int PI_OPERATION_NOT_SUPPORTED7 = OMGVMCID.value + 1; public NO_RESOURCES piOperationNotSupported7(CompletionStatus cs, Throwable t) { NO_RESOURCES exc = new NO_RESOURCES(PI_OPERATION_NOT_SUPPORTED7, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.FINE)) { Object[] parameters = null; doLog(Level.FINE, "OMG.piOperationNotSupported7", parameters, OMGSystemException.class, exc); } return exc; } public NO_RESOURCES piOperationNotSupported7(CompletionStatus cs) { return piOperationNotSupported7(cs, null); } public NO_RESOURCES piOperationNotSupported7(Throwable t) { return piOperationNotSupported7(CompletionStatus.COMPLETED_NO, t); } public NO_RESOURCES piOperationNotSupported7() { return piOperationNotSupported7(CompletionStatus.COMPLETED_NO, null); } public static final int PI_OPERATION_NOT_SUPPORTED8 = OMGVMCID.value + 1; public NO_RESOURCES piOperationNotSupported8(CompletionStatus cs, Throwable t) { NO_RESOURCES exc = new NO_RESOURCES(PI_OPERATION_NOT_SUPPORTED8, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.FINE)) { Object[] parameters = null; doLog(Level.FINE, "OMG.piOperationNotSupported8", parameters, OMGSystemException.class, exc); } return exc; } public NO_RESOURCES piOperationNotSupported8(CompletionStatus cs) { return piOperationNotSupported8(cs, null); } public NO_RESOURCES piOperationNotSupported8(Throwable t) { return piOperationNotSupported8(CompletionStatus.COMPLETED_NO, t); } public NO_RESOURCES piOperationNotSupported8() { return piOperationNotSupported8(CompletionStatus.COMPLETED_NO, null); } public static final int NO_CONNECTION_PRIORITY = OMGVMCID.value + 2; public NO_RESOURCES noConnectionPriority(CompletionStatus cs, Throwable t) { NO_RESOURCES exc = new NO_RESOURCES(NO_CONNECTION_PRIORITY, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.noConnectionPriority", parameters, OMGSystemException.class, exc); } return exc; } public NO_RESOURCES noConnectionPriority(CompletionStatus cs) { return noConnectionPriority(cs, null); } public NO_RESOURCES noConnectionPriority(Throwable t) { return noConnectionPriority(CompletionStatus.COMPLETED_NO, t); } public NO_RESOURCES noConnectionPriority() { return noConnectionPriority(CompletionStatus.COMPLETED_NO, null); } /////////////////////////////////////////////////////////// // TRANSACTION_ROLLEDBACK /////////////////////////////////////////////////////////// public static final int XA_RB = OMGVMCID.value + 1; public TRANSACTION_ROLLEDBACK xaRb(CompletionStatus cs, Throwable t) { TRANSACTION_ROLLEDBACK exc = new TRANSACTION_ROLLEDBACK(XA_RB, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.xaRb", parameters, OMGSystemException.class, exc); } return exc; } public TRANSACTION_ROLLEDBACK xaRb(CompletionStatus cs) { return xaRb(cs, null); } public TRANSACTION_ROLLEDBACK xaRb(Throwable t) { return xaRb(CompletionStatus.COMPLETED_NO, t); } public TRANSACTION_ROLLEDBACK xaRb() { return xaRb(CompletionStatus.COMPLETED_NO, null); } public static final int XA_NOTA = OMGVMCID.value + 2; public TRANSACTION_ROLLEDBACK xaNota(CompletionStatus cs, Throwable t) { TRANSACTION_ROLLEDBACK exc = new TRANSACTION_ROLLEDBACK(XA_NOTA, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.xaNota", parameters, OMGSystemException.class, exc); } return exc; } public TRANSACTION_ROLLEDBACK xaNota(CompletionStatus cs) { return xaNota(cs, null); } public TRANSACTION_ROLLEDBACK xaNota(Throwable t) { return xaNota(CompletionStatus.COMPLETED_NO, t); } public TRANSACTION_ROLLEDBACK xaNota() { return xaNota(CompletionStatus.COMPLETED_NO, null); } public static final int XA_END_TRUE_ROLLBACK_DEFERRED = OMGVMCID.value + 3; public TRANSACTION_ROLLEDBACK xaEndTrueRollbackDeferred(CompletionStatus cs, Throwable t) { TRANSACTION_ROLLEDBACK exc = new TRANSACTION_ROLLEDBACK(XA_END_TRUE_ROLLBACK_DEFERRED, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.xaEndTrueRollbackDeferred", parameters, OMGSystemException.class, exc); } return exc; } public TRANSACTION_ROLLEDBACK xaEndTrueRollbackDeferred(CompletionStatus cs) { return xaEndTrueRollbackDeferred(cs, null); } public TRANSACTION_ROLLEDBACK xaEndTrueRollbackDeferred(Throwable t) { return xaEndTrueRollbackDeferred(CompletionStatus.COMPLETED_NO, t); } public TRANSACTION_ROLLEDBACK xaEndTrueRollbackDeferred() { return xaEndTrueRollbackDeferred(CompletionStatus.COMPLETED_NO, null); } /////////////////////////////////////////////////////////// // TRANSIENT /////////////////////////////////////////////////////////// public static final int POA_REQUEST_DISCARD = OMGVMCID.value + 1; public TRANSIENT poaRequestDiscard(CompletionStatus cs, Throwable t) { TRANSIENT exc = new TRANSIENT(POA_REQUEST_DISCARD, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.poaRequestDiscard", parameters, OMGSystemException.class, exc); } return exc; } public TRANSIENT poaRequestDiscard(CompletionStatus cs) { return poaRequestDiscard(cs, null); } public TRANSIENT poaRequestDiscard(Throwable t) { return poaRequestDiscard(CompletionStatus.COMPLETED_NO, t); } public TRANSIENT poaRequestDiscard() { return poaRequestDiscard(CompletionStatus.COMPLETED_NO, null); } public static final int NO_USABLE_PROFILE_3 = OMGVMCID.value + 2; public TRANSIENT noUsableProfile3(CompletionStatus cs, Throwable t) { TRANSIENT exc = new TRANSIENT(NO_USABLE_PROFILE_3, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.noUsableProfile3", parameters, OMGSystemException.class, exc); } return exc; } public TRANSIENT noUsableProfile3(CompletionStatus cs) { return noUsableProfile3(cs, null); } public TRANSIENT noUsableProfile3(Throwable t) { return noUsableProfile3(CompletionStatus.COMPLETED_NO, t); } public TRANSIENT noUsableProfile3() { return noUsableProfile3(CompletionStatus.COMPLETED_NO, null); } public static final int REQUEST_CANCELLED = OMGVMCID.value + 3; public TRANSIENT requestCancelled(CompletionStatus cs, Throwable t) { TRANSIENT exc = new TRANSIENT(REQUEST_CANCELLED, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.requestCancelled", parameters, OMGSystemException.class, exc); } return exc; } public TRANSIENT requestCancelled(CompletionStatus cs) { return requestCancelled(cs, null); } public TRANSIENT requestCancelled(Throwable t) { return requestCancelled(CompletionStatus.COMPLETED_NO, t); } public TRANSIENT requestCancelled() { return requestCancelled(CompletionStatus.COMPLETED_NO, null); } public static final int POA_DESTROYED = OMGVMCID.value + 4; public TRANSIENT poaDestroyed(CompletionStatus cs, Throwable t) { TRANSIENT exc = new TRANSIENT(POA_DESTROYED, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.poaDestroyed", parameters, OMGSystemException.class, exc); } return exc; } public TRANSIENT poaDestroyed(CompletionStatus cs) { return poaDestroyed(cs, null); } public TRANSIENT poaDestroyed(Throwable t) { return poaDestroyed(CompletionStatus.COMPLETED_NO, t); } public TRANSIENT poaDestroyed() { return poaDestroyed(CompletionStatus.COMPLETED_NO, null); } /////////////////////////////////////////////////////////// // OBJECT_NOT_EXIST /////////////////////////////////////////////////////////// public static final int UNREGISTERED_VALUE_AS_OBJREF = OMGVMCID.value + 1; public OBJECT_NOT_EXIST unregisteredValueAsObjref(CompletionStatus cs, Throwable t) { OBJECT_NOT_EXIST exc = new OBJECT_NOT_EXIST(UNREGISTERED_VALUE_AS_OBJREF, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.unregisteredValueAsObjref", parameters, OMGSystemException.class, exc); } return exc; } public OBJECT_NOT_EXIST unregisteredValueAsObjref(CompletionStatus cs) { return unregisteredValueAsObjref(cs, null); } public OBJECT_NOT_EXIST unregisteredValueAsObjref(Throwable t) { return unregisteredValueAsObjref(CompletionStatus.COMPLETED_NO, t); } public OBJECT_NOT_EXIST unregisteredValueAsObjref() { return unregisteredValueAsObjref(CompletionStatus.COMPLETED_NO, null); } public static final int NO_OBJECT_ADAPTOR = OMGVMCID.value + 2; public OBJECT_NOT_EXIST noObjectAdaptor(CompletionStatus cs, Throwable t) { OBJECT_NOT_EXIST exc = new OBJECT_NOT_EXIST(NO_OBJECT_ADAPTOR, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.FINE)) { Object[] parameters = null; doLog(Level.FINE, "OMG.noObjectAdaptor", parameters, OMGSystemException.class, exc); } return exc; } public OBJECT_NOT_EXIST noObjectAdaptor(CompletionStatus cs) { return noObjectAdaptor(cs, null); } public OBJECT_NOT_EXIST noObjectAdaptor(Throwable t) { return noObjectAdaptor(CompletionStatus.COMPLETED_NO, t); } public OBJECT_NOT_EXIST noObjectAdaptor() { return noObjectAdaptor(CompletionStatus.COMPLETED_NO, null); } public static final int BIO_NOT_AVAILABLE = OMGVMCID.value + 3; public OBJECT_NOT_EXIST bioNotAvailable(CompletionStatus cs, Throwable t) { OBJECT_NOT_EXIST exc = new OBJECT_NOT_EXIST(BIO_NOT_AVAILABLE, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.bioNotAvailable", parameters, OMGSystemException.class, exc); } return exc; } public OBJECT_NOT_EXIST bioNotAvailable(CompletionStatus cs) { return bioNotAvailable(cs, null); } public OBJECT_NOT_EXIST bioNotAvailable(Throwable t) { return bioNotAvailable(CompletionStatus.COMPLETED_NO, t); } public OBJECT_NOT_EXIST bioNotAvailable() { return bioNotAvailable(CompletionStatus.COMPLETED_NO, null); } public static final int OBJECT_ADAPTER_INACTIVE = OMGVMCID.value + 4; public OBJECT_NOT_EXIST objectAdapterInactive(CompletionStatus cs, Throwable t) { OBJECT_NOT_EXIST exc = new OBJECT_NOT_EXIST(OBJECT_ADAPTER_INACTIVE, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.objectAdapterInactive", parameters, OMGSystemException.class, exc); } return exc; } public OBJECT_NOT_EXIST objectAdapterInactive(CompletionStatus cs) { return objectAdapterInactive(cs, null); } public OBJECT_NOT_EXIST objectAdapterInactive(Throwable t) { return objectAdapterInactive(CompletionStatus.COMPLETED_NO, t); } public OBJECT_NOT_EXIST objectAdapterInactive() { return objectAdapterInactive(CompletionStatus.COMPLETED_NO, null); } /////////////////////////////////////////////////////////// // OBJ_ADAPTER /////////////////////////////////////////////////////////// public static final int ADAPTER_ACTIVATOR_EXCEPTION = OMGVMCID.value + 1; public OBJ_ADAPTER adapterActivatorException(CompletionStatus cs, Throwable t, Object arg0, Object arg1) { OBJ_ADAPTER exc = new OBJ_ADAPTER(ADAPTER_ACTIVATOR_EXCEPTION, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = new Object[2]; parameters[0] = arg0; parameters[1] = arg1; doLog(Level.WARNING, "OMG.adapterActivatorException", parameters, OMGSystemException.class, exc); } return exc; } public OBJ_ADAPTER adapterActivatorException(CompletionStatus cs, Object arg0, Object arg1) { return adapterActivatorException(cs, null, arg0, arg1); } public OBJ_ADAPTER adapterActivatorException(Throwable t, Object arg0, Object arg1) { return adapterActivatorException(CompletionStatus.COMPLETED_NO, t, arg0, arg1); } public OBJ_ADAPTER adapterActivatorException(Object arg0, Object arg1) { return adapterActivatorException(CompletionStatus.COMPLETED_NO, null, arg0, arg1); } public static final int BAD_SERVANT_TYPE = OMGVMCID.value + 2; public OBJ_ADAPTER badServantType(CompletionStatus cs, Throwable t) { OBJ_ADAPTER exc = new OBJ_ADAPTER(BAD_SERVANT_TYPE, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.badServantType", parameters, OMGSystemException.class, exc); } return exc; } public OBJ_ADAPTER badServantType(CompletionStatus cs) { return badServantType(cs, null); } public OBJ_ADAPTER badServantType(Throwable t) { return badServantType(CompletionStatus.COMPLETED_NO, t); } public OBJ_ADAPTER badServantType() { return badServantType(CompletionStatus.COMPLETED_NO, null); } public static final int NO_DEFAULT_SERVANT = OMGVMCID.value + 3; public OBJ_ADAPTER noDefaultServant(CompletionStatus cs, Throwable t) { OBJ_ADAPTER exc = new OBJ_ADAPTER(NO_DEFAULT_SERVANT, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.noDefaultServant", parameters, OMGSystemException.class, exc); } return exc; } public OBJ_ADAPTER noDefaultServant(CompletionStatus cs) { return noDefaultServant(cs, null); } public OBJ_ADAPTER noDefaultServant(Throwable t) { return noDefaultServant(CompletionStatus.COMPLETED_NO, t); } public OBJ_ADAPTER noDefaultServant() { return noDefaultServant(CompletionStatus.COMPLETED_NO, null); } public static final int NO_SERVANT_MANAGER = OMGVMCID.value + 4; public OBJ_ADAPTER noServantManager(CompletionStatus cs, Throwable t) { OBJ_ADAPTER exc = new OBJ_ADAPTER(NO_SERVANT_MANAGER, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.noServantManager", parameters, OMGSystemException.class, exc); } return exc; } public OBJ_ADAPTER noServantManager(CompletionStatus cs) { return noServantManager(cs, null); } public OBJ_ADAPTER noServantManager(Throwable t) { return noServantManager(CompletionStatus.COMPLETED_NO, t); } public OBJ_ADAPTER noServantManager() { return noServantManager(CompletionStatus.COMPLETED_NO, null); } public static final int BAD_POLICY_INCARNATE = OMGVMCID.value + 5; public OBJ_ADAPTER badPolicyIncarnate(CompletionStatus cs, Throwable t) { OBJ_ADAPTER exc = new OBJ_ADAPTER(BAD_POLICY_INCARNATE, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.badPolicyIncarnate", parameters, OMGSystemException.class, exc); } return exc; } public OBJ_ADAPTER badPolicyIncarnate(CompletionStatus cs) { return badPolicyIncarnate(cs, null); } public OBJ_ADAPTER badPolicyIncarnate(Throwable t) { return badPolicyIncarnate(CompletionStatus.COMPLETED_NO, t); } public OBJ_ADAPTER badPolicyIncarnate() { return badPolicyIncarnate(CompletionStatus.COMPLETED_NO, null); } public static final int PI_EXC_COMP_ESTABLISHED = OMGVMCID.value + 6; public OBJ_ADAPTER piExcCompEstablished(CompletionStatus cs, Throwable t) { OBJ_ADAPTER exc = new OBJ_ADAPTER(PI_EXC_COMP_ESTABLISHED, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.piExcCompEstablished", parameters, OMGSystemException.class, exc); } return exc; } public OBJ_ADAPTER piExcCompEstablished(CompletionStatus cs) { return piExcCompEstablished(cs, null); } public OBJ_ADAPTER piExcCompEstablished(Throwable t) { return piExcCompEstablished(CompletionStatus.COMPLETED_NO, t); } public OBJ_ADAPTER piExcCompEstablished() { return piExcCompEstablished(CompletionStatus.COMPLETED_NO, null); } public static final int NULL_SERVANT_RETURNED = OMGVMCID.value + 7; public OBJ_ADAPTER nullServantReturned(CompletionStatus cs, Throwable t) { OBJ_ADAPTER exc = new OBJ_ADAPTER(NULL_SERVANT_RETURNED, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.FINE)) { Object[] parameters = null; doLog(Level.FINE, "OMG.nullServantReturned", parameters, OMGSystemException.class, exc); } return exc; } public OBJ_ADAPTER nullServantReturned(CompletionStatus cs) { return nullServantReturned(cs, null); } public OBJ_ADAPTER nullServantReturned(Throwable t) { return nullServantReturned(CompletionStatus.COMPLETED_NO, t); } public OBJ_ADAPTER nullServantReturned() { return nullServantReturned(CompletionStatus.COMPLETED_NO, null); } /////////////////////////////////////////////////////////// // UNKNOWN /////////////////////////////////////////////////////////// public static final int UNKNOWN_USER_EXCEPTION = OMGVMCID.value + 1; public UNKNOWN unknownUserException(CompletionStatus cs, Throwable t) { UNKNOWN exc = new UNKNOWN(UNKNOWN_USER_EXCEPTION, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.FINE)) { Object[] parameters = null; doLog(Level.FINE, "OMG.unknownUserException", parameters, OMGSystemException.class, exc); } return exc; } public UNKNOWN unknownUserException(CompletionStatus cs) { return unknownUserException(cs, null); } public UNKNOWN unknownUserException(Throwable t) { return unknownUserException(CompletionStatus.COMPLETED_NO, t); } public UNKNOWN unknownUserException() { return unknownUserException(CompletionStatus.COMPLETED_NO, null); } public static final int UNSUPPORTED_SYSTEM_EXCEPTION = OMGVMCID.value + 2; public UNKNOWN unsupportedSystemException(CompletionStatus cs, Throwable t) { UNKNOWN exc = new UNKNOWN(UNSUPPORTED_SYSTEM_EXCEPTION, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.unsupportedSystemException", parameters, OMGSystemException.class, exc); } return exc; } public UNKNOWN unsupportedSystemException(CompletionStatus cs) { return unsupportedSystemException(cs, null); } public UNKNOWN unsupportedSystemException(Throwable t) { return unsupportedSystemException(CompletionStatus.COMPLETED_NO, t); } public UNKNOWN unsupportedSystemException() { return unsupportedSystemException(CompletionStatus.COMPLETED_NO, null); } public static final int PI_UNKNOWN_USER_EXCEPTION = OMGVMCID.value + 3; public UNKNOWN piUnknownUserException(CompletionStatus cs, Throwable t) { UNKNOWN exc = new UNKNOWN(PI_UNKNOWN_USER_EXCEPTION, cs); if (t != null) exc.initCause(t); if (logger.isLoggable(Level.WARNING)) { Object[] parameters = null; doLog(Level.WARNING, "OMG.piUnknownUserException", parameters, OMGSystemException.class, exc); } return exc; } public UNKNOWN piUnknownUserException(CompletionStatus cs) { return piUnknownUserException(cs, null); } public UNKNOWN piUnknownUserException(Throwable t) { return piUnknownUserException(CompletionStatus.COMPLETED_NO, t); } public UNKNOWN piUnknownUserException() { return piUnknownUserException(CompletionStatus.COMPLETED_NO, null); } }
[ "yida@caibeike.com" ]
yida@caibeike.com
9375c223c916d1e4965254b8081f341e574330f7
6b24fb152ede1b2916a1d0271dc14d3243aa06c8
/src/com/semm/core/comando/trivia/ProcesarVenta.java
6e744462983d18580ff9763e5027ed6e34761bef
[]
no_license
githubsfuns/ion
e6d4edd5b9fc560e534abf7fd17bb2e6ee6dd393
a231c31043250044f5ab7c7941f9266389d95e0e
refs/heads/master
2020-04-06T18:05:46.904965
2017-04-04T16:26:14
2017-04-04T16:26:14
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,102
java
package com.semm.core.comando.trivia; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.apache.log4j.Logger; import com.semm.core.bd.FabricaDAO; import com.semm.core.bd.ProductoDAO; import com.semm.core.bd.TxDAO; import com.semm.core.bd.VentaDAO; import com.semm.core.bd.VisitaDAO; import com.semm.core.bd.trivia.ParticipanteDAO; import com.semm.core.comando.Comando; import com.semm.core.comando.Responder; import com.semm.core.comando.cvmed.ProcesarVisita; import com.semm.core.conexiones.CnxMensaje; import com.semm.core.conexiones.NuevoMensaje; import com.semm.core.servicios.cvmed.Producto; import com.semm.core.servicios.cvmed.Visita; import com.semm.core.servicios.trivia.Participante; import com.semm.core.servicios.trivia.Venta; public class ProcesarVenta extends Comando { public static Logger log = Logger.getLogger(ProcesarVenta.class); Pattern regex_visita = Pattern.compile("ventas?\\s+(\\w+)\\s+(\\w+)\\s+(\\d+)\\s+(\\d{6,8})",Pattern.CASE_INSENSITIVE); @Override public void ejecutar(NuevoMensaje m) { String sku,prod,cantidad,fecha; CnxMensaje sms = (CnxMensaje)m; FabricaDAO fab = FabricaDAO.getInstancia(FabricaDAO.HIBERNATE); ProductoDAO pdao = fab.getProductoDAO(); Responder responder = new Responder(); Matcher match; String mclean = sms.getContenido().getMsg().replaceAll("[-/\\.]", ""); match = regex_visita.matcher(mclean); if(match.find()){ sku = match.group(1); prod = match.group(2); // TODO: Se acorto la expresion regular y ahora no contemplafallas cantidad = match.group(3); fecha = match.group(4); log.debug("Formato de Visita OK ... Procesando Venta: " + sku + " " + prod + " " + cantidad +" "+fecha); responder.setResp(procesar(sms.getPara(),sku,prod,cantidad,fecha)); log.debug("Venta Done"); } else { responder.setResp("Disculpe el formato del mensaje es invalido. VENTA (FACTURA) (MODELO) (CANTIDAD) (FECHA)"); } responder.ejecutar(sms); } private String procesar(String tlf,String sku, String prod, String cant,String fecha) { String resp = ""; Participante part = verificarParticipante(tlf); if(part==null) return "Venta rechazada. El Participante no esta registrado en la promocion LGCLUB. Envia la palabra LGCLUB para participar."; Venta vent = verificarFactura(sku); if(vent != null) return "Esta venta ya ha sido registrada en nuestro sistema. Contacte al equipo de soporte para mayor informacion."; Producto modelo = verificarProducto(prod.toUpperCase()); if(modelo==null){ Producto pdf = new Producto(); pdf.setCodigo("GENERICO"); modelo = pdf; } //return "Venta Rechazada. El modelo ingresado no participa en la promocion de LG CLUB"; //VERIFICAR PERIODO DE LA VENTA int cantidad = 1; try { cantidad = Integer.parseInt(cant); }catch (NumberFormatException e) { return "Venta Rechazada. La cantidad vendida debe ser mayor que cero (0)"; } SimpleDateFormat fech = new SimpleDateFormat("ddMMyyyy"); Date f; try { f = fech.parse(fecha); }catch (ParseException e) { return "Venta Rechazada. Formato de fecha invalida Ej. 01062010"; } //Generar una venta Venta venta = new Venta(); venta.setParticipante(part); venta.setSku(sku); venta.setFecha(f); venta.setProducto(modelo); venta.setCantidad(cantidad); venta.setPuntosgen(cantidad*modelo.getPuntos()); guardarVenta(venta); resp = "Felicidades! Su venta ha quedado registrada y pendiente por aprobacion de LG"; return resp; } private Participante verificarParticipante(String rep){ Participante r = null; FabricaDAO fab = FabricaDAO.getInstancia(FabricaDAO.HIBERNATE); ParticipanteDAO rdao = fab.getParticipanteDAO(); TxDAO tx = fab.getTx(); tx.beginTx(); try { r = rdao.buscarPorIdGet(rep, false); } catch (RuntimeException e) { // TODO: handle exception } tx.commit(); return r; } private Producto verificarProducto(String prod){ Producto pro = null; FabricaDAO fab = FabricaDAO.getInstancia(FabricaDAO.HIBERNATE); ProductoDAO mdao = fab.getProductoDAO(); TxDAO tx = fab.getTx(); tx.beginTx(); try { pro = mdao.buscarPorIdGet(prod, false); } catch (RuntimeException e) { // TODO: handle exception } tx.commit(); return pro; } private Venta verificarFactura(String sku){ Venta pro = null; FabricaDAO fab = FabricaDAO.getInstancia(FabricaDAO.HIBERNATE); VentaDAO mdao = fab.getVentaDAO(); TxDAO tx = fab.getTx(); tx.beginTx(); try { pro = mdao.buscarFactura(sku); } catch (RuntimeException e) { // TODO: handle exception } tx.commit(); return pro; } private void guardarVenta(Venta visit){ FabricaDAO fab = FabricaDAO.getInstancia(FabricaDAO.HIBERNATE); VentaDAO vdao = fab.getVentaDAO(); TxDAO tx = fab.getTx(); tx.beginTx(); log.debug("Empezando a Guardar Venta"); vdao.guardar(visit); tx.commit(); tx.evict(visit); } }
[ "mas@ignite.team" ]
mas@ignite.team
98988258292435d44083e81ff58d5fcedc8af0b4
01fd8a043c024f3da95752975834f75dd2f6c399
/src/main/java/ar/edu/unlam/tallerweb1/servicios/ServicioPlan.java
cc707d1e6fa01e5f5a6a8e2b8d5858b24720ceb8
[]
no_license
taller-web-1/NUTRICION
efb474194813542bbfa254a6b5ca21b31f8c3ea6
c8862f586e85bcb21590f0b15d9a77750b55506f
refs/heads/master
2020-03-19T21:51:38.731906
2018-08-01T18:30:39
2018-08-01T18:30:39
136,952,398
0
0
null
null
null
null
UTF-8
Java
false
false
156
java
package ar.edu.unlam.tallerweb1.servicios; import ar.edu.unlam.tallerweb1.modelo.Plan; public interface ServicioPlan { Plan consultarPlan(Long id); }
[ "noreply@github.com" ]
taller-web-1.noreply@github.com
05dcf13d2a6e6de2b7b0024c2c574ec2c2babce1
540b0af99eef8cdb9f2b8f31075504ebeab36c74
/heartwork/work-usercore/src/main/java/im/heart/security/filter/ForceLogoutFilter.java
c6af62b631e0fced5e24e149a416bbdc1c68f273
[]
no_license
nullllun/heartwork
682aca16df2a970bf1ab598458c234052bd795e7
1d8e56da24c805d1792f0ecdd59c70779fc5eed7
refs/heads/master
2020-07-11T18:51:03.529649
2018-10-23T07:20:28
2018-10-23T07:20:28
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,524
java
package im.heart.security.filter; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import org.apache.shiro.session.Session; import org.apache.shiro.session.SessionException; import org.apache.shiro.subject.Subject; import org.apache.shiro.web.filter.authc.LogoutFilter; import org.apache.shiro.web.util.WebUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import im.heart.security.session.OnlineSession; import im.heart.security.session.ShiroSessionDAO; import im.heart.security.utils.SecurityUtilsHelper; import im.heart.usercore.vo.FrameUserVO; /** * * @author gg * @desc:强制踢出用户 */ public class ForceLogoutFilter extends LogoutFilter { protected static final Logger logger = LoggerFactory.getLogger(ForceLogoutFilter.class); public static final String DEFAULT_REDIRECT_URL = "/login.jhtml?logout=3"; private String redirectUrl = DEFAULT_REDIRECT_URL; @Autowired private ShiroSessionDAO shiroSessionDAO; protected void saveRequest(ServletRequest request) { WebUtils.saveRequest(request); } @Override protected boolean preHandle(ServletRequest request, ServletResponse response) throws Exception { Subject subject = getSubject(request, response); if (!subject.isAuthenticated() && !subject.isRemembered()) {// 如果没有登录,直接进行之后的流程 return true; } Session session = subject.getSession(); FrameUserVO user = SecurityUtilsHelper.getCurrentUser(); if(user==null){// 如果没有登录,直接进行之后的流程 return true; } Session onlineSession = this.shiroSessionDAO.readSession(session.getId()); if (onlineSession != null && onlineSession instanceof OnlineSession) { OnlineSession ss = (OnlineSession) onlineSession; if (OnlineSession.OnlineStatus.force_logout==ss.getStatus()) { try { logger.info("检测到用户已经被踢出,移除用户"+user.getUserName()); subject.logout(); } catch (SessionException ise) { logger.info("Encountered session exception during logout. This can generally safely be ignored." + ise); } saveRequest(request); issueRedirect(request, response, redirectUrl); return false; } } return true; } public String getRedirectUrl() { return redirectUrl; } public void setRedirectUrl(String redirectUrl) { this.redirectUrl = redirectUrl; } }
[ "lkg61230413@163.com" ]
lkg61230413@163.com
c2fabbb9141c08bb7c50eec604f1e9a9ab7c6120
ec90c1bcf8ed08f055b5290280348115edeea7a7
/src/weiskopf/clock/ClockMain.java
f1c127ea61bc07ed89015d51404a70be63821774
[]
no_license
AlizaWeiskopf/mco152-spring2014
6e2dd009a0b2defdca0f5810debd024d20fe09a6
121df2d03f27a49f974024e4218b1ee02fb17bb8
refs/heads/master
2020-05-16T12:41:35.875809
2014-05-28T00:42:59
2014-05-28T00:42:59
null
0
0
null
null
null
null
UTF-8
Java
false
false
178
java
package weiskopf.clock; public class ClockMain { public static void main(String[] args) { ClockFrame frame = new ClockFrame(); frame.setVisible(true); } }
[ "student@192.168.117.130" ]
student@192.168.117.130
b94d81c245e46808c88cd3c3972a8be60da8cb7c
4056e1aab67f5ddead85bb11efc0d8fd2dbca858
/spark/pdd1/src/pdd1/MapTask.java
9ded8bf2ced270eb4ab07b96e31f163cca22e4fd
[]
no_license
zhtk/csboring
a671ec1363ff0c7c7f23c98af7719a9d9ab257ed
496374c1aebecd1e2569a54e74f216dd4d4e905a
refs/heads/master
2022-05-07T04:08:52.925383
2019-07-26T18:38:44
2019-07-26T18:38:50
84,849,260
0
0
null
2022-04-12T21:54:59
2017-03-13T16:25:52
Haskell
UTF-8
Java
false
false
2,355
java
package pdd1; import java.io.*; import java.util.*; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.io.*; import org.apache.hadoop.mapreduce.Mapper; public class MapTask extends Mapper<Object, Text, Text, Text> { public static final int SHINGLE_LENGTH = 5; public static final int PERMUTATIONS = 100; public static final int BANDS = 20; public static final int BAND_SIZE = 5; private Configuration conf; public static String stripSpecialChars(Text text) { return text.toString().replaceAll("[^A-Za-z]", ""); } public static Set<String> getShingles(String text) { Set<String> result = new HashSet<>(); for (int i = 0; i < text.length() - SHINGLE_LENGTH; ++i) try { result.add(text.substring(i, i + SHINGLE_LENGTH).toLowerCase()); } catch(Exception e) { System.err.println(e.getMessage()); } return result; } public static int shingleToInt(String text) { int result = 0; for (int i = 0; i < text.length(); ++i) { result += text.charAt(i) - 'a'; result *= 26; } return result; } public int getPartialSignature(int permutation, Set<String> shingles) { int seed = conf.getInt("similarity.seed.nr" + Integer.toString(permutation), 0); int hash = -1; for (String shingle : shingles) if (hash == -1 || hash > (shingleToInt(shingle) ^ seed)) hash = shingleToInt(shingle) ^ seed; return hash; } public ArrayList<Integer> getSignature(Set<String> shingles) { ArrayList<Integer> result = new ArrayList<>(); for (int i = 0; i < PERMUTATIONS; ++i) result.add(getPartialSignature(i, shingles)); return result; } @Override public void setup(Context context) throws IOException, InterruptedException { conf = context.getConfiguration(); } @Override public void map(Object key, Text value, Context context) throws IOException, InterruptedException { if (value.toString().equals("\"Id\",\"content\"")) return; String line = stripSpecialChars(value); Set<String> shingles = getShingles(line); ArrayList<Integer> signature = getSignature(shingles); for (int i = 0; i < BANDS; ++i) { String newKey = Integer.toString(i); for (int j = i * BAND_SIZE; j < (i + 1) * BAND_SIZE; ++j) newKey += ";" + Integer.toString(signature.get(j)); context.write(new Text(newKey), value); } } }
[ "pz361374@students.mimuw.edu.pl" ]
pz361374@students.mimuw.edu.pl
b3451e33550ac4fb68ba4c4a7fc55a47e9a8098f
8b627edbb23577f1108dd202463f86b533d4f43f
/src/main/java/com/bytatech/ayoos/payment/service/AuditEventService.java
50f92ecbde727dee29b97b1c6671174473131fc9
[]
no_license
test-ayoos/payment
857b459cb17579a633a127b2e98f6319f419cabe
0979fdf28d6026044c14094c87a0091a9d8a362b
refs/heads/master
2020-03-28T20:56:15.801666
2018-09-17T11:33:28
2018-09-17T11:33:28
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,880
java
package com.bytatech.ayoos.payment.service; import com.bytatech.ayoos.payment.config.audit.AuditEventConverter; import com.bytatech.ayoos.payment.repository.PersistenceAuditEventRepository; import org.springframework.boot.actuate.audit.AuditEvent; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import java.time.Instant; import java.util.Optional; /** * Service for managing audit events. * <p> * This is the default implementation to support SpringBoot Actuator AuditEventRepository */ @Service @Transactional public class AuditEventService { private final PersistenceAuditEventRepository persistenceAuditEventRepository; private final AuditEventConverter auditEventConverter; public AuditEventService( PersistenceAuditEventRepository persistenceAuditEventRepository, AuditEventConverter auditEventConverter) { this.persistenceAuditEventRepository = persistenceAuditEventRepository; this.auditEventConverter = auditEventConverter; } public Page<AuditEvent> findAll(Pageable pageable) { return persistenceAuditEventRepository.findAll(pageable) .map(auditEventConverter::convertToAuditEvent); } public Page<AuditEvent> findByDates(Instant fromDate, Instant toDate, Pageable pageable) { return persistenceAuditEventRepository.findAllByAuditEventDateBetween(fromDate, toDate, pageable) .map(auditEventConverter::convertToAuditEvent); } public Optional<AuditEvent> find(Long id) { return Optional.ofNullable(persistenceAuditEventRepository.findById(id)) .filter(Optional::isPresent) .map(Optional::get) .map(auditEventConverter::convertToAuditEvent); } }
[ "abilash.s@lxisoft.com" ]
abilash.s@lxisoft.com
2299ee776cc1f7755873980c48fb22e5343fd05e
e52c7bae225ca899bc6914ffbb3b490849f9cdff
/src/arraysExercises/MinimumNumber2DArray.java
17ea5fc3c0a673e0b89f1d5c9f5ef153019a8c21
[]
no_license
hemantmadan799/SamplePrograms
a7167500e09745b29f4650346c9896a8043129c7
15f9240472e614737fd883bc33317a77b921d953
refs/heads/master
2022-04-12T16:08:55.837082
2020-04-12T10:43:27
2020-04-12T10:43:27
255,060,599
0
0
null
null
null
null
UTF-8
Java
false
false
742
java
package arraysExercises; public class MinimumNumber2DArray { public static void main(String[] args) { // TODO Auto-generated method stub //java program for finding the minimum number from a 2D Array int arr[][]= {{2,4,5}, {3,10,7}, {1,2,9}}; int min=arr[0][0]; int mincolumn = 0; int j=0; for(int i=0;i<arr.length;i++) { for(j=0;j<arr.length;j++) { if(arr[i][j]<min) { min=arr[i][j]; mincolumn=j; } } } // System.out.println("minimum number is "+min); // System.out.println("min column value is "+mincolumn); int k=0; int max=0; max=arr[k][mincolumn]; while(k<arr.length) { if(arr[k][mincolumn]>max) max=arr[k][mincolumn]; k++; } System.out.println(max); } }
[ "hemant.madan@qualitestgroup.com" ]
hemant.madan@qualitestgroup.com
30a088f3372e21d2deaf3e067f5986d9d25fa8a0
7254c9950a8078a39bd4a01a0dbc64a1d7757839
/src/main/java/org/neo4jboot/repository/share/PersonRepository.java
36a1662c8909e04a3dc8ba7955d82583838cd009
[]
no_license
unclebean/neo4jboot
c5273480ca7a4ac85f49ebdff012062f3d894803
b58650e51fb60fd9586884eabb9cf9090a4ab007
refs/heads/master
2021-01-10T02:02:43.164567
2016-01-26T23:05:54
2016-01-26T23:05:54
50,465,768
0
0
null
null
null
null
UTF-8
Java
false
false
260
java
package org.neo4jboot.repository.share; import org.neo4jboot.domain.share.Person; import org.springframework.data.neo4j.repository.GraphRepository; /** * Created by hugh on 1/26/16. */ public interface PersonRepository extends GraphRepository<Person> { }
[ "unclebean2013@gmail.com" ]
unclebean2013@gmail.com
a4d0357c879dcf94db9cd13a095b8e3df5726372
8e256e4eb16aa47992bbc0f755ce7930544f8e2d
/ru/golovanova/collections/ILinkedList.java
f00660d2e11dc10e0c58b53cf07bb35486ceb0c8
[]
no_license
GolovanovaElena/MyJavaEducation
14db357a9e3dde89b42d3d4604a38bb43afc23b4
f5e11fa388b74b8d3bd34b226dd0f6ad50a4edb9
refs/heads/master
2023-02-28T18:36:37.042820
2021-02-10T06:09:49
2021-02-10T06:09:49
321,799,359
0
0
null
null
null
null
UTF-8
Java
false
false
337
java
package ru.golovanova.collections; public interface ILinkedList<E> extends Iterable<E> { void add(E element); void add(int index, E element); void clear(); E get(int index); int indexOf(E element); E remove(int index); E set(int index, E element); int size(); E[] toArray(); String toString(); }
[ "gol.elena99@gmail.com" ]
gol.elena99@gmail.com
889b350a7016ef211ce83aac35cbe82610fc2005
2b6f1bc829dce791b7b62f8e66d28ab0cad6860a
/app/src/main/java/gmd/plantilla/androidapp/service/dao/EventDAO.java
87999edb4c3f08abf262491b48a505c5f3a8b1ae
[]
no_license
cfsanchez/disc_event
569037f36acbd692033e7c842bc5abbc3caf46f2
8893db70ec9eb949a9632f44386df264f64b76ac
refs/heads/master
2021-07-08T12:28:52.504445
2017-10-08T00:37:27
2017-10-08T00:37:27
106,139,912
0
0
null
null
null
null
UTF-8
Java
false
false
305
java
package gmd.plantilla.androidapp.service.dao; import gmd.plantilla.androidapp.domain.model.Disc; import gmd.plantilla.androidapp.domain.model.Event; /** * Created by jmauriciog on 01/06/2016. */ public interface EventDAO { public long insert(Event model); public Event getCurrentEvent(); }
[ "carlos@multiplica.com" ]
carlos@multiplica.com
c37bd85f1d95bac44f26ce6599d606755d9f3c25
57471374ed9d86d889160995def3c9ec00694709
/src/main/java/com/krakenforce/app/dtos/TagChild.java
3aacc9d59f21e773e36c9c07f3f9493d37eb70d8
[]
no_license
krakenforce/KrakenShopBackend
357c84408fab15dd4bcd4458463dbf57c6caa75d
a2acd8ffa1c76a325e36c769fc4e5131b0b0a4e0
refs/heads/master
2023-08-26T05:30:10.641130
2021-11-14T03:44:13
2021-11-14T03:44:13
417,678,658
0
1
null
2021-11-14T03:44:13
2021-10-16T01:02:30
Java
UTF-8
Java
false
false
352
java
package com.krakenforce.app.dtos; public class TagChild { private int tagId; private String name; public int getTagId() { return tagId; } public void setTagId(int tagId) { this.tagId = tagId; } public String getName() { return name; } public void setName(String name) { this.name = name; } public TagChild() { super(); } }
[ "ngotoan2709@outlook.com" ]
ngotoan2709@outlook.com
3b92f7a2cffa2ba0cd33ba701354380c9e3fddbb
6763e86f2d7f6568c41f5c070e37acbbfe328be6
/JusttHairs/src/com/justthairs/Utils.java
9c466d0db75cdafc60a4c2a70c1003193b6e9b83
[]
no_license
achinwo/justt-hairs
e11f716573d80edd07a631e95986d9a8bb8bf0ee
02a7522f571bf0364751659e4c39e150df6235e3
refs/heads/master
2021-01-13T01:25:18.366252
2014-07-12T11:06:14
2014-07-12T11:06:14
null
0
0
null
null
null
null
UTF-8
Java
false
false
9,638
java
package com.justthairs; import java.io.DataOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.RandomAccessFile; import java.lang.ref.WeakReference; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URL; import java.nio.channels.FileChannel; import java.util.StringTokenizer; import java.util.logging.Logger; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.HttpStatus; import org.apache.http.client.methods.HttpGet; import org.json.JSONException; import org.json.JSONObject; import android.app.Activity; import android.content.res.AssetManager; import android.database.Cursor; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.net.Uri; import android.net.http.AndroidHttpClient; import android.os.AsyncTask; import android.provider.MediaStore; import android.util.Log; import android.widget.ImageView; public class Utils { public static JSONObject loadJSON(String path) { JSONObject json = null; try { InputStream is = new FileInputStream(path); int size = is.available(); byte[] buffer = new byte[size]; is.read(buffer); is.close(); json = new JSONObject(new String(buffer, "UTF-8")); } catch (JSONException e) { Log.e("LOADJSON", e.toString()); } catch (IOException ex) { ex.printStackTrace(); Log.e("LOADJSON", ex.toString()); return null; } return json; } public static File downloadFile(String urlStr, String destFolder) { File f = null; try { URL url = new URL(urlStr); InputStream input = url.openStream(); FileOutputStream fos = null; String localFile = null; // Get only file name StringTokenizer st = new StringTokenizer(url.getFile(), "/"); while (st.hasMoreTokens()) { localFile = st.nextToken(); } String fullPath = destFolder + "/" + localFile; fos = new FileOutputStream(fullPath); int oneChar = 0; while ((oneChar = input.read()) != -1) { fos.write(oneChar); } input.close(); fos.close(); f = new File(fullPath); } catch (IOException ex) { Log.e("Error: ", ex.toString()); return null; } return f; } public static boolean copyFile(String src, String dst){ boolean success = false; RandomAccessFile s = null; RandomAccessFile d = null; FileChannel inChannel = null; FileChannel outChannel = null; try { File tmpDst = new File(dst + "/" + new File(src).getName()); if(!tmpDst.exists()){ tmpDst.createNewFile(); } s = new RandomAccessFile(src, "rw"); d = new RandomAccessFile(tmpDst, "rw"); inChannel = s.getChannel(); outChannel = d.getChannel(); inChannel.transferTo(0, inChannel.size(), outChannel); success = true; }catch(IOException ex){ Log.e("COPY_FILE", "Error: "+ex.toString()); }finally { try{ if (inChannel != null){ inChannel.close(); } if (outChannel != null){ outChannel.close(); } if (s != null){ s.close(); } if (d != null){ d.close(); } }catch(Exception e){ Log.e("COPY_FILE", "Error while closing streams: "+e.toString()); } } return success; } public static String getPath(Uri uri, Activity a) { String[] projection = { MediaStore.Images.Media.DATA }; Cursor cursor = a.managedQuery(uri, projection, null, null, null); a.startManagingCursor(cursor); int column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA); cursor.moveToFirst(); return cursor.getString(column_index); } public static Boolean uploadFile(String fileName, String destURLStr) { FileInputStream fileInputStream = null; String exsistingFileName = fileName; URL connectURL = null; String lineEnd = "\r\n"; String twoHyphens = "--"; String boundary = "*****"; String Tag = "3rd"; Boolean result = false; HttpURLConnection conn = null; try { connectURL = new URL(destURLStr); fileInputStream = new FileInputStream(fileName); // ------------------ CLIENT REQUEST Log.e(Tag, "Starting to bad things"); // Open a HTTP connection to the URL conn = (HttpURLConnection) connectURL.openConnection(); // Allow Inputs conn.setDoInput(true); // Allow Outputs conn.setDoOutput(true); // Don't use a cached copy. conn.setUseCaches(false); // Use a post method. conn.setRequestMethod("POST"); conn.setRequestProperty("Connection", "Keep-Alive"); conn.setRequestProperty("Content-Type", "multipart/form-data;boundary=" + boundary); conn.setRequestProperty("Image", "hello world!"); DataOutputStream dos = new DataOutputStream(conn.getOutputStream()); dos.writeBytes(twoHyphens + boundary + lineEnd); dos.writeBytes("Content-Disposition: form-data; name=\"uploadedfile\";filename=\"" + exsistingFileName + "\"" + lineEnd); dos.writeBytes(lineEnd); Log.e(Tag, "Headers are written" ); // create a buffer of maximum size int bytesAvailable = fileInputStream.available(); int maxBufferSize = 1024; int bufferSize = Math.min(bytesAvailable, maxBufferSize); byte[] buffer = new byte[bufferSize]; // read file and write it into form... int bytesRead = fileInputStream.read(buffer, 0, bufferSize); while (bytesRead > 0) { dos.write(buffer, 0, bufferSize); bytesAvailable = fileInputStream.available(); bufferSize = Math.min(bytesAvailable, maxBufferSize); bytesRead = fileInputStream.read(buffer, 0, bufferSize); } // send multipart form data necesssary after file data... dos.writeBytes(lineEnd); dos.writeBytes(twoHyphens + boundary + twoHyphens + lineEnd); // close streams Log.e(Tag, "File is written"); fileInputStream.close(); dos.flush(); result = true; InputStream is = conn.getInputStream(); // retrieve the response from server int ch; StringBuffer b = new StringBuffer(); Log.e(Tag, "Getting response"); while ((ch = is.read()) != -1) { b.append((char) ch); } String s = b.toString(); Log.i("Response", s); dos.close(); } catch (MalformedURLException ex) { Log.e(Tag, "error: " + ex.getMessage(), ex); }catch (IOException ioe) { Log.e(Tag, "error: " + ioe.getMessage(), ioe); }finally{ if(conn != null){ conn.disconnect(); } } return result; } public class UploadFileTask extends AsyncTask<String, Void, Boolean> { @Override protected Boolean doInBackground(String... params) { Boolean result = uploadFile(params[0], params[1]); return result; } @Override protected void onPostExecute(Boolean result) { // TODO Auto-generated method stub Log.d("UPLOAD_RESULT", ""+result); } } public static Bitmap getBitmap(String pathStr) { InputStream istr = null; Bitmap bitmap = null; try { Logger.getLogger("getBitmapFromAsset").info( "getting image: " + pathStr); istr = new FileInputStream(pathStr); bitmap = BitmapFactory.decodeStream(istr); } catch (IOException e) { e.printStackTrace(); Logger.getLogger("getBitmapFromAsset").info("ERROR: " + e); } return bitmap; } class ImageDownloaderTask extends AsyncTask<String, Void, File> { private final WeakReference imageViewReference; public ImageDownloaderTask(ImageView imageView) { imageViewReference = new WeakReference(imageView); } @Override // Actual download method, run in the task thread protected File doInBackground(String... params) { // params comes from the execute() call: params[0] is the url. return downloadFile(params[0], params[1]); } @Override // Once the image is downloaded, associates it to the imageView protected void onPostExecute(File localFile) { if (isCancelled()) { localFile = null; } if (imageViewReference != null) { ImageView imageView = (ImageView) imageViewReference.get(); if (imageView != null) { if (localFile != null && localFile.exists()) { imageView.setImageBitmap(Utils.getBitmap(localFile .getAbsolutePath())); } else { imageView.setImageDrawable(imageView.getContext() .getResources() .getDrawable(R.drawable.no_image)); } } } } } static Bitmap downloadBitmap(String url) { final AndroidHttpClient client = AndroidHttpClient .newInstance("Android"); final HttpGet getRequest = new HttpGet(url); try { HttpResponse response = client.execute(getRequest); final int statusCode = response.getStatusLine().getStatusCode(); if (statusCode != HttpStatus.SC_OK) { Log.w("ImageDownloader", "Error " + statusCode + " while retrieving bitmap from " + url); return null; } final HttpEntity entity = response.getEntity(); if (entity != null) { InputStream inputStream = null; try { inputStream = entity.getContent(); final Bitmap bitmap = BitmapFactory .decodeStream(inputStream); return bitmap; } finally { if (inputStream != null) { inputStream.close(); } entity.consumeContent(); } } } catch (Exception e) { // Could provide a more explicit error message for IOException or // IllegalStateException getRequest.abort(); Log.w("ImageDownloader", "Error while retrieving bitmap from " + url); } finally { if (client != null) { client.close(); } } return null; } }
[ "anthony.chinwo@gmail.com" ]
anthony.chinwo@gmail.com
caef68d2a29a565b4c63d4d7561d569762f64e5e
7fe458fa771a6ccaa84dd34ff7077ec60af67857
/src/main/java/com/example/demo/repositories/ProductRepositories.java
659110b4646ce92d3cdbede0c889aa234b3694b7
[]
no_license
trongMbui/demo
74e069d15b5afd835bdfc82649d64d3cc57310dd
386e790a65357c680c434be2eaddb789824efdd0
refs/heads/master
2023-05-07T03:21:24.616797
2021-05-29T15:39:55
2021-05-29T15:39:55
369,153,583
0
0
null
null
null
null
UTF-8
Java
false
false
301
java
package com.example.demo.repositories; import java.util.List; import com.example.demo.entities.Product; import org.springframework.data.jpa.repository.JpaRepository; public interface ProductRepositories extends JpaRepository<Product, Long>{ List<Product> findTop3ByOrderByNameAsc(); }
[ "73167391+checklist132@users.noreply.github.com" ]
73167391+checklist132@users.noreply.github.com
f89b1f7e00258b02c6da77bedd09e24f2e244888
ec38345b19a37f8e446c2495f799f2b2c6280098
/src/main/java/be/vdab/restservices/BrouwerResource.java
4c350d2d0887c5b9f061d53910bdc264c81ce828
[]
no_license
fahmei/brouwers
be8ae46eb1068e36ea64b71d76b832535f9a8f41
e267e99cbc43f9d77d1704149831bc48f52e226f
refs/heads/master
2016-08-11T06:29:26.580634
2015-11-04T14:03:19
2015-11-04T14:03:19
44,172,316
0
0
null
null
null
null
UTF-8
Java
false
false
892
java
package be.vdab.restservices; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; import org.springframework.hateoas.EntityLinks; import org.springframework.hateoas.ResourceSupport; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility; import be.vdab.entities.Brouwer; @XmlRootElement @XmlAccessorType(XmlAccessType.FIELD) @JsonAutoDetect(fieldVisibility = Visibility.ANY) class BrouwerResource extends ResourceSupport { @SuppressWarnings("unused") private Brouwer brouwer; public BrouwerResource() {} public BrouwerResource(Brouwer brouwer, EntityLinks entityLinks) { this.brouwer = brouwer; this.add(entityLinks.linkToSingleResource(Brouwer.class, brouwer.getId())); } }
[ "“fahmei.tahiri@telenet.be" ]
“fahmei.tahiri@telenet.be
dd87de75dcff19b5e1d37a5b610bf3075fb794ba
ec74ee1ad533441344b7db12b3b29729e9a8d582
/SassyGrade/app/src/main/java/com/example/lucas/sassygrade/MainActivity.java
495869ce7aacb7ec21e392dbae8dc5cde81e18dc
[]
no_license
Lucastrike/android
5050302ca96ee924bb46d20a9cf34248836aa9fa
cd5cf55cfcb961d4812d1840796c08715f382fd5
refs/heads/master
2021-01-13T10:47:30.473854
2016-10-19T09:46:39
2016-10-19T09:46:39
69,742,212
0
0
null
null
null
null
UTF-8
Java
false
false
8,737
java
package com.example.lucas.sassygrade; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.ImageView; import android.widget.TextView; public class MainActivity extends AppCompatActivity { int[] ListFotos = new int[]{ R.drawable.image1, R.drawable.image2, R.drawable.image3, R.drawable.image4, R.drawable.image5, R.drawable.image6, R.drawable.image7, R.drawable.image8, R.drawable.image9, R.drawable.image10 }; double notas[] = new double[ListFotos.length]; int posicion; int numVotes[] = new int[ListFotos.length]; double maxNotas[] = new double[ListFotos.length]; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); //Campuramos el ImageView y el text view nota ImageView imageView = (ImageView) findViewById(R.id.showImage); TextView textGrade = (TextView) findViewById(R.id.gradeToShow); //hacemos la funcion random posicion = generateRandom(9); //Volcamos el drawable aleatorio imageView.setImageResource(ListFotos[posicion]); String notaAMostrar = String.valueOf(notas[posicion]); textGrade.setText("Esta imagen tiene de nota: "+notaAMostrar); } public void setGrade1(View v){ //añadimos a la nota maxima maxNotas[posicion] = maxNotas[posicion] + 1; //sumamos uno a el conteo numVotes[posicion]++; notas[posicion] = maxNotas[posicion]/numVotes[posicion]; //Campuramos el ImageView ImageView imageView = (ImageView) findViewById(R.id.showImage); TextView noteShow = (TextView) findViewById(R.id.gradeToShow); //coloreamos las estrellas de la nota Button star1 = (Button) findViewById(R.id.star1); star1.setBackgroundResource(R.drawable.star); Button star2 = (Button) findViewById(R.id.star2); star2.setBackgroundResource(R.drawable.stare); Button star3 = (Button) findViewById(R.id.star3); star3.setBackgroundResource(R.drawable.stare); Button star4 = (Button) findViewById(R.id.star4); star4.setBackgroundResource(R.drawable.stare); Button star5 = (Button) findViewById(R.id.star5); star5.setBackgroundResource(R.drawable.stare); //genero tro random posicion = generateRandom(9); //Volcamos el drawable aleatorio a el imageView imageView.setImageResource(ListFotos[posicion]); String notaAMostrar = String.valueOf(notas[posicion]); noteShow.setText("Esta imagen tiene de nota: " + notas[posicion]); } public void setGrade2(View v){ //añadimos a la nota maxima maxNotas[posicion] = maxNotas[posicion] + 2; //sumamos uno a el conteo numVotes[posicion]++; notas[posicion] = maxNotas[posicion]/numVotes[posicion]; //Campuramos el ImageView ImageView imageView = (ImageView) findViewById(R.id.showImage); TextView noteShow = (TextView) findViewById(R.id.gradeToShow); //coloreamos las estrellas de la nota Button star1 = (Button) findViewById(R.id.star1); star1.setBackgroundResource(R.drawable.star); Button star2 = (Button) findViewById(R.id.star2); star2.setBackgroundResource(R.drawable.star); Button star3 = (Button) findViewById(R.id.star3); star3.setBackgroundResource(R.drawable.stare); Button star4 = (Button) findViewById(R.id.star4); star4.setBackgroundResource(R.drawable.stare); Button star5 = (Button) findViewById(R.id.star5); star5.setBackgroundResource(R.drawable.stare); //genero tro random posicion = generateRandom(9); //Volcamos el drawable aleatorio a el imageView imageView.setImageResource(ListFotos[posicion]); String notaAMostrar = String.valueOf(notas[posicion]); noteShow.setText("Esta imagen tiene de nota: "+notas[posicion]); } public void setGrade3(View v){ //añadimos a la nota maxima maxNotas[posicion] = maxNotas[posicion] + 3; //sumamos uno a el conteo numVotes[posicion]++; notas[posicion] = maxNotas[posicion]/numVotes[posicion]; //Campuramos el ImageView ImageView imageView = (ImageView) findViewById(R.id.showImage); TextView noteShow = (TextView) findViewById(R.id.gradeToShow); //coloreamos las estrellas de la nota Button star1 = (Button) findViewById(R.id.star1); star1.setBackgroundResource(R.drawable.star); Button star2 = (Button) findViewById(R.id.star2); star2.setBackgroundResource(R.drawable.star); Button star3 = (Button) findViewById(R.id.star3); star3.setBackgroundResource(R.drawable.star); Button star4 = (Button) findViewById(R.id.star4); star4.setBackgroundResource(R.drawable.stare); Button star5 = (Button) findViewById(R.id.star5); star5.setBackgroundResource(R.drawable.stare); //genero tro random posicion = generateRandom(9); //Volcamos el drawable aleatorio a el imageView imageView.setImageResource(ListFotos[posicion]); String notaAMostrar = String.valueOf(notas[posicion]); noteShow.setText("Esta imagen tiene de nota: "+notas[posicion]); } public void setGrade4(View v){ //añadimos a la nota maxima maxNotas[posicion] = maxNotas[posicion] + 4; //sumamos uno a el conteo numVotes[posicion]++; notas[posicion] = maxNotas[posicion]/numVotes[posicion]; //Campuramos el ImageView ImageView imageView = (ImageView) findViewById(R.id.showImage); TextView noteShow = (TextView) findViewById(R.id.gradeToShow); //coloreamos las estrellas de la nota Button star1 = (Button) findViewById(R.id.star1); star1.setBackgroundResource(R.drawable.star); Button star2 = (Button) findViewById(R.id.star2); star2.setBackgroundResource(R.drawable.star); Button star3 = (Button) findViewById(R.id.star3); star3.setBackgroundResource(R.drawable.star); Button star4 = (Button) findViewById(R.id.star4); star4.setBackgroundResource(R.drawable.star); Button star5 = (Button) findViewById(R.id.star5); star5.setBackgroundResource(R.drawable.stare); //genero tro random posicion = generateRandom(9); //Volcamos el drawable aleatorio a el imageView imageView.setImageResource(ListFotos[posicion]); String notaAMostrar = String.valueOf(notas[posicion]); noteShow.setText("Esta imagen tiene de nota: "+notas[posicion]); } public void setGrade5(View v){ //añadimos a la nota maxima maxNotas[posicion] = maxNotas[posicion] + 5; //sumamos uno a el conteo numVotes[posicion]++; notas[posicion] = maxNotas[posicion]/numVotes[posicion]; //Campuramos el ImageView ImageView imageView = (ImageView) findViewById(R.id.showImage); TextView noteShow = (TextView) findViewById(R.id.gradeToShow); //coloreamos las estrellas de la nota Button star1 = (Button) findViewById(R.id.star1); star1.setBackgroundResource(R.drawable.star); Button star2 = (Button) findViewById(R.id.star2); star2.setBackgroundResource(R.drawable.star); Button star3 = (Button) findViewById(R.id.star3); star3.setBackgroundResource(R.drawable.star); Button star4 = (Button) findViewById(R.id.star4); star4.setBackgroundResource(R.drawable.star); Button star5 = (Button) findViewById(R.id.star5); star5.setBackgroundResource(R.drawable.star); //genero tro random posicion = generateRandom(9); //Volcamos el drawable aleatorio a el imageView imageView.setImageResource(ListFotos[posicion]); String notaAMostrar = String.valueOf(notas[posicion]); noteShow.setText("Esta imagen tiene de nota: "+notas[posicion]); } public int generateRandom(int numMax){ return ((int) (Math.random()*numMax)+1); } }
[ "lucastrike1@gmail.com" ]
lucastrike1@gmail.com
88b5dc733bb5059f7cbf74cf54c19572ba2bab73
8c7f7cdbf580b21c788ca8d8b9da65037471c204
/frontend/src/RestServive/ApplicationConfig.java
a035c3a489c9c89ea0de59cceebc338f292ffb56
[]
no_license
DHMapindane/ADHProjcectDH209122138
c5c2925b1b836d5348130502fb90f95e0bd0ecd6
933fafdcd140e57e397ffca3b5b9d14a54c83b87
refs/heads/master
2020-08-28T00:03:41.400045
2019-10-25T12:51:56
2019-10-25T12:51:56
217,525,656
0
0
null
null
null
null
UTF-8
Java
false
false
967
java
package RestServive; import java.util.Collections; import java.util.HashSet; import java.util.Set; import javax.ws.rs.ApplicationPath; import javax.ws.rs.core.Application; @ApplicationPath("resources") public class ApplicationConfig extends Application { private final Set<Class<?>> classes; public ApplicationConfig() { HashSet<Class<?>> c = new HashSet<>(); try { Class jsonProvider = Class.forName("org.glassfish.jersey.jackson.JacksonFeature"); c.add(jsonProvider); } catch (ClassNotFoundException ex) { java.util.logging.Logger.getLogger( getClass().getName()) .log(java.util.logging.Level.SEVERE, null, ex); } c.add(PreviousTweetsService.class); classes = Collections.unmodifiableSet(c); } @Override public Set<Class<?>> getClasses() { return classes; } }
[ "HamiltonM@LTPDAC084.dac.local" ]
HamiltonM@LTPDAC084.dac.local
f89ec15c0da2919fe09b6a8cd94849852df3845e
1e624cd7d90513844606713c182dbdaa4004cfde
/ip-limiter-common/src/main/java/com/eeeffff/limiter/common/enumeration/BlackIpLimitType.java
a681ad316c9ac563b0d46945c1efae54ec21f579
[ "Apache-2.0" ]
permissive
quiteboy/ip-limiter
2e923f695f0277b1647b266b9836b10e497959ae
c21aedb7a3d8e4e87956c95ef5c291f5870c3d9e
refs/heads/master
2023-06-12T21:37:25.176935
2021-07-05T02:27:00
2021-07-05T02:27:00
null
0
0
null
null
null
null
UTF-8
Java
false
false
204
java
package com.eeeffff.limiter.common.enumeration; public enum BlackIpLimitType { MINUTE, // 限制访问1分钟 HOUR, // 限制访问1小时 DAY, // 限制访问1天 EVER // 永远限制访问 }
[ "56553655@163.com" ]
56553655@163.com
85bf40f6e616392a19ab962e769943814174f460
6d5d0f8e41b12a9e037e8e0f23649b893795ac48
/src/main/java/Repository/BuddyInfo.java
259eeaf93da129f016c129d61ad1ed532c7cb3c1
[]
no_license
Fahid-Mannan/AddressBookApplication
690f572a6b806742a3d1aed6f593b1c958d972c5
b67a735291c51dc6a3c33cc12868abbf98d2f414
refs/heads/master
2020-12-29T08:35:22.568152
2020-02-14T20:40:51
2020-02-14T20:40:51
238,537,943
0
0
null
2020-10-13T19:18:18
2020-02-05T20:05:49
Java
UTF-8
Java
false
false
1,827
java
package Repository; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; @Entity public class BuddyInfo { private long id; private String name; private String address; private long phoneNum; public BuddyInfo() { } public BuddyInfo(String name, String address, long phoneNum) { this.name = name; this.address = address; this.phoneNum = phoneNum; } public BuddyInfo(BuddyInfo buddy) { this.name = buddy.getName(); this.address = buddy.getAddress(); this.phoneNum = buddy.getPhoneNum(); } @Id @GeneratedValue public long getId() { return id; } public void setId(long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getAddress() { return address; } public void setAddress(String address) { this.address = address; } public long getPhoneNum() { return phoneNum; } public void setPhoneNum(long phoneNum) { this.phoneNum = phoneNum; } public Boolean equals(BuddyInfo buddy) { if (this.name.equals(buddy.name) && this.address.equals(buddy.address) && this.phoneNum == buddy.phoneNum) { return true; } return false; } public String toString() { return ("Buddy: " + this.name + " the address: " + this.address + " the phone number: " + this.phoneNum + "."); } public static void main(String[] args) { // TODO Auto-generated method stub BuddyInfo buddy = new BuddyInfo(); buddy.setName("Homer"); System.out.println("Hello " + buddy.getName() + "."); } }
[ "fahidmannan@labs.sce.carleton.ca" ]
fahidmannan@labs.sce.carleton.ca
6bc45871d394c4c7b7da230a62b498103daf8c43
32b72e1dc8b6ee1be2e80bb70a03a021c83db550
/ast_results/nextcloud_android/src/main/java/com/owncloud/android/ui/notifications/NotificationUtils.java
b0020d91a7c6c144db836b744ddc0ef810eca3a5
[]
no_license
cmFodWx5YWRhdjEyMTA5/smell-and-machine-learning
d90c41a17e88fcd99d543124eeb6e93f9133cb4a
0564143d92f8024ff5fa6b659c2baebf827582b1
refs/heads/master
2020-07-13T13:53:40.297493
2019-01-11T11:51:18
2019-01-11T11:51:18
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,830
java
// isComment package com.owncloud.android.ui.notifications; import android.app.NotificationManager; import android.content.Context; import android.os.Handler; import android.os.HandlerThread; import android.os.Process; import com.owncloud.android.utils.ThemeUtils; import java.util.Random; import androidx.core.app.NotificationCompat; import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; public final class isClassOrIsInterface { public static final String isVariable = "isStringConstant"; public static final String isVariable = "isStringConstant"; public static final String isVariable = "isStringConstant"; public static final String isVariable = "isStringConstant"; public static final String isVariable = "isStringConstant"; public static final String isVariable = "isStringConstant"; public static final String isVariable = "isStringConstant"; private isConstructor() { // isComment } /** * isComment */ public static NotificationCompat.Builder isMethod(Context isParameter) { return new NotificationCompat.Builder(isNameExpr).isMethod(isNameExpr.isMethod(isNameExpr)); } @SuppressFBWarnings("isStringConstant") public static void isMethod(final NotificationManager isParameter, final int isParameter, long isParameter) { HandlerThread isVariable = new HandlerThread("isStringConstant" + (new Random(isNameExpr.isMethod())).isMethod(), isNameExpr.isFieldAccessExpr); isNameExpr.isMethod(); Handler isVariable = new Handler(isNameExpr.isMethod()); isNameExpr.isMethod(new Runnable() { public void isMethod() { isNameExpr.isMethod(isNameExpr); ((HandlerThread) isNameExpr.isMethod()).isMethod().isMethod(); } }, isNameExpr); } }
[ "matheus@melsolucoes.net" ]
matheus@melsolucoes.net
3598a9729b5c53673272e3c4d55bad2185d12381
3ff0654930542e9e513657dd93adc212fa2ca5a4
/socket/src/test/java/org/apache/mina/filter/codec/statemachine/DecodingStateMachine.java
a99ca259dcebab1b9b0d1346267f548db28a5d6c
[]
no_license
Hymn-Qin/socket-core
1b74f7db4228c3feb6fbb1a6cc7728a898e78643
3fd9e9f9926bd642e89e8df6a07bcfa6a93b15ef
refs/heads/master
2022-11-13T10:02:21.392655
2020-07-08T09:13:16
2020-07-08T09:13:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,976
java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES 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.mina.filter.codec.statemachine; import java.util.ArrayList; import java.util.List; import org.apache.mina.core.buffer.IoBuffer; import org.apache.mina.core.filterchain.IoFilter.NextFilter; import org.apache.mina.core.session.IoSession; import org.apache.mina.filter.codec.ProtocolCodecFilter; import org.apache.mina.filter.codec.ProtocolDecoderOutput; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * Abstract base class for decoder state machines. Calls init() to * get the start {@link DecodingState} of the state machine. Calls * destroy() when the state machine has reached its end state or when * the session is closed. * <p> * NOTE: The {@link ProtocolDecoderOutput} used by this class when calling * {@link DecodingState#decode(IoBuffer, ProtocolDecoderOutput)} buffers decoded * messages in a {@link List}. Once the state machine has reached its end state * this class will call finishDecode(List, ProtocolDecoderOutput). The * implementation will have to take care of writing the decoded messages to the * real {@link ProtocolDecoderOutput} used by the configured * {@link ProtocolCodecFilter}. * </p> * * @author <a href="http://mina.apache.org">Apache MINA Project</a> */ public abstract class DecodingStateMachine implements DecodingState { private static final Logger LOGGER = LoggerFactory.getLogger(DecodingStateMachine.class); private final List<Object> childProducts = new ArrayList<>(); private final ProtocolDecoderOutput childOutput = new ProtocolDecoderOutput() { /** * {@inheritDoc} */ @Override public void flush(NextFilter nextFilter, IoSession session) { // Do nothing } /** * {@inheritDoc} */ @Override public void write(Object message) { childProducts.add(message); } }; private DecodingState currentState; private boolean initialized; /** * Invoked to initialize this state machine. * * @return the start {@link DecodingState}. * @throws Exception if the initialization failed */ protected abstract DecodingState init() throws Exception; /** * Called once the state machine has reached its end. * * @param childProducts contains the messages generated by each of the * {@link DecodingState}s which were exposed to the socketCallback data * during the life time of this state machine. * @param out the real {@link ProtocolDecoderOutput} used by the * {@link ProtocolCodecFilter}. * @return the next state if the state machine should resume. * @throws Exception if the decoding end failed */ protected abstract DecodingState finishDecode(List<Object> childProducts, ProtocolDecoderOutput out) throws Exception; /** * Invoked to destroy this state machine once the end state has been reached * or the session has been closed. * * @throws Exception if the destruction failed */ protected abstract void destroy() throws Exception; /** * {@inheritDoc} */ @Override public DecodingState decode(IoBuffer in, ProtocolDecoderOutput out) throws Exception { DecodingState state = getCurrentState(); final int limit = in.limit(); int pos = in.position(); try { for (;;) { // Wait for more data if all data is consumed. if (pos == limit) { break; } DecodingState oldState = state; state = state.decode(in, childOutput); // If finished, call finishDecode if (state == null) { return finishDecode(childProducts, out); } int newPos = in.position(); // Wait for more data if nothing is consumed and state didn't change. if (newPos == pos && oldState == state) { break; } pos = newPos; } return this; } catch (Exception e) { state = null; throw e; } finally { this.currentState = state; // Destroy if decoding is finished or failed. if (state == null) { cleanup(); } } } /** * {@inheritDoc} */ @Override public DecodingState finishDecode(ProtocolDecoderOutput out) throws Exception { DecodingState nextState; DecodingState state = getCurrentState(); try { for (;;) { DecodingState oldState = state; state = state.finishDecode(childOutput); if (state == null) { // Finished break; } // Exit if state didn't change. if (oldState == state) { break; } } } catch (Exception e) { state = null; if (LOGGER.isDebugEnabled()) { LOGGER.debug("Ignoring the exception caused by a closed session.", e); } } finally { this.currentState = state; nextState = finishDecode(childProducts, out); if (state == null) { cleanup(); } } return nextState; } private void cleanup() { if (!initialized) { throw new IllegalStateException(); } initialized = false; childProducts.clear(); try { destroy(); } catch (Exception e2) { if (LOGGER.isDebugEnabled()) { LOGGER.warn("Failed to destroy a decoding state machine.", e2); } } } private DecodingState getCurrentState() throws Exception { DecodingState state = this.currentState; if (state == null) { state = init(); initialized = true; } return state; } }
[ "18339989537@163.com" ]
18339989537@163.com
cf52d6d674204440910c2b3583fb8f86dd391c33
0ad108c2ea8db4d48592cac89535d906caafe5a8
/src/main/java/hqlQuery/InsertStudent.java
677b2a1ce7feedb6b4c1baf0aa9597181569df2a
[]
no_license
coderbrains/Hibernate_tutorial
2a338f457bbe8428404d19edb19ea5f5adaebf6c
e479201491d6db39c8c12981cd48ad0b8b4b714c
refs/heads/master
2023-05-15T08:10:36.373079
2021-06-02T18:05:42
2021-06-02T18:05:42
372,157,321
0
0
null
null
null
null
UTF-8
Java
false
false
2,422
java
package hqlQuery; import java.util.Arrays; import java.util.List; import org.hibernate.query.*; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.Transaction; import org.hibernate.cfg.Configuration; public class InsertStudent { public static void main(String[] args) { SessionFactory factory = new Configuration().configure("hibernate.cfg.xml").buildSessionFactory(); Session session = factory.openSession(); Transaction t = session.beginTransaction(); for(int i = 0;i < 100 ;i++) { Studentt student1 = new Studentt(); student1.setAge(i); student1.setName("Awanish Kumar" + i); student1.setBranch("ME" + i); student1.setId(i * 100); session.save(student1); } // fetching all the student from the database. // String q = "from Studentt"; // Query query = session.createQuery(q); // List<Studentt> list = query.list(); // // for(Studentt student : list) { // System.out.println(student); // } // //fetching all the student from the databasse having common attribute. // q = "from Studentt where age = 202"; // query = session.createQuery(q); // list = query.list(); // // for(Studentt student : list) { // System.out.println(student); // } // //fetching the student information having the same attribute externally... // q = "from Studentt where age =:x"; // query = session.createQuery(q); // query.setParameter("x", 20); // list = query.list(); // // for(Studentt student : list) { // System.out.println(student); // } //deleting a row from the table. // q = "delete from Studentt where id =:x"; // query = session.createQuery(q); // query.setParameter("x", 101); // int r = query.executeUpdate(); // System.out.println(r); // //updating student from the data base/ // query = session.createQuery("update Studentt set name =:x where id =:i"); // query.setParameter("i", 10); // query.setParameter("x", "Ram"); // int l = query.executeUpdate(); // System.out.println(l); // Joining two tables from the hql; // query = session.createQuery("select q.qid, q.questions , a.ans from Que as q inner join q.list as a"); // // List<Object[]> list3 = query.getResultList(); // // for(Object[] arr: list3) { // System.out.println(Arrays.toString(arr)); // } // t.commit(); factory.close(); session.close(); } }
[ "awanishkumarsingh03@gmail.com" ]
awanishkumarsingh03@gmail.com
9d37e3b5c9b6899d84cc1fedfc7c43800f14efb1
dd4c9d67e9b5b4b3db13d069aafb9771588ccc3f
/World Simulator Java/src/Organism/Animals/types/Antelope.java
47ba3e881e894ed5846bb13971ac8ee0f43029b5
[]
no_license
allan-kirui/World-Simulation-Game
7d139b3fd97a2ddba255bbc5e62518ea9084e3a9
0ec212db272e63d1fdbf1c99e85ff8fb20502f28
refs/heads/main
2023-06-10T13:52:16.561564
2021-06-29T15:43:43
2021-06-29T15:43:43
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,177
java
package Organism.Animals.types; import Organism.Animals.Animal; import Organism.Organism; import general.World.World; import general.pos; import java.awt.*; public class Antelope extends Animal { public Antelope(pos location, World world, int age) { super(4, 4, location, 'A', true, world, age, 2, "Antelope", new Color(220, 135, 86, 255)); } public Antelope(World world) { this.set_force(4); this.set_initiative(4); this.set_char('A'); this.set_alive(true); this.set_world(world); this.set_age(0); this.set_range(2); this.set_name("Antelope"); this.set_color(new Color(220, 135, 86, 255)); } @Override public Organism create_new_org(World world) { return new Antelope(world); } @Override public char draw_symbol() { return 'A'; } @Override public void successful_breed(pos new_pos) { world_.save_in_baby_list(new Antelope(new_pos, world_, 1)); //world_->add_to_log("New antelope created at {" + to_string(new_pos.x) + ", " += to_string(new_pos.y) + "}"); } }
[ "noreply@github.com" ]
allan-kirui.noreply@github.com
b5bf11140e758783fc3f1b27b4909c602023bda8
0cbb1121f2ea2e3f140e9906a04b4bae6fcb1e95
/src/java/edu/psu/citeseerx/loaders/StatisticsGeneratorLoader.java
0c81a153927176b0df4c2226473e3302edb70c2a
[ "Apache-2.0" ]
permissive
WebSciences/citeseer-ucl
be63577454a40a310e5c561dfcaa9c56d20584be
c4869317c51e91dcc36e30b55d2619ac0a7a6f89
refs/heads/master
2021-01-25T05:28:05.521271
2012-11-02T19:32:11
2012-11-02T19:32:11
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,437
java
/* * Copyright 2007 Penn State University * 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 edu.psu.citeseerx.loaders; import java.io.IOException; import org.springframework.beans.factory.ListableBeanFactory; import edu.psu.citeseerx.updates.StatisticsGenerator; /** * Loads the statisticsGenerator bean and runs genStats, using the supplied * command line argument if there is one. * * @author Isaac Councill * @version $Rev: 665 $ $Date: 2008-07-27 13:10:35 -0400 (Sun, 27 Jul 2008) $ */ public class StatisticsGeneratorLoader { public static void main(String[] args) throws IOException { ListableBeanFactory factory = ContextReader.loadContext(); StatisticsGenerator generator = (StatisticsGenerator)factory.getBean("statisticsGenerator"); if (args.length > 0) { generator.genStats(args[0]); } else { generator.genStats(); } } }
[ "Krispy2009@gmail.com" ]
Krispy2009@gmail.com
4fa878b7a7c5e8f71f437ad8f0c120d877ba36f5
dd571e7bc0d9a6dce9447b04f336dbc603d91957
/copyQTEEPro/src/test/java/com/mycompany/demoqt/Pagelibrary/HowToCustomize.java
c7d2ba2cdede94a1d2ea2f99a7b50c36b0abe8fa
[]
no_license
sagargore2893/Selenium
7bf0812f2d92f0524075ab3a6b76e106019a91e5
7861f922fdc01737de8d67e3cc1b9bc9389d2859
refs/heads/master
2021-01-18T17:36:04.511383
2017-08-17T05:33:27
2017-08-17T05:33:27
86,810,272
0
0
null
null
null
null
UTF-8
Java
false
false
81
java
package com.mycompany.demoqt.Pagelibrary; public class HowToCustomize { }
[ "sagargore280193@gmail.com" ]
sagargore280193@gmail.com
2dab3f54bc25eccf8575b76a40276d4ed0a128b2
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/MOCKITO-10b-1-9-PESA_II-WeightedSum:TestLen:CallDiversity/org/mockito/exceptions/Reporter_ESTest_scaffolding.java
f03dd9410b46930daf5ed649a1ee026348324aa8
[]
no_license
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
cf118b23ecb87a8bf59643e42f7556b521d1f754
3bb39683f9c343b8ec94890a00b8f260d158dfe3
refs/heads/master
2022-07-29T14:44:00.774547
2020-08-10T15:14:49
2020-08-10T15:14:49
285,804,495
0
0
null
null
null
null
UTF-8
Java
false
false
4,713
java
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Fri Apr 03 09:21:21 UTC 2020 */ package org.mockito.exceptions; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; @EvoSuiteClassExclude public class Reporter_ESTest_scaffolding { @org.junit.Rule public org.evosuite.runtime.vnet.NonFunctionalRequirementRule nfr = new org.evosuite.runtime.vnet.NonFunctionalRequirementRule(); private org.evosuite.runtime.thread.ThreadStopper threadStopper = new org.evosuite.runtime.thread.ThreadStopper (org.evosuite.runtime.thread.KillSwitchHandler.getInstance(), 3000); @BeforeClass public static void initEvoSuiteFramework() { org.evosuite.runtime.RuntimeSettings.className = "org.mockito.exceptions.Reporter"; org.evosuite.runtime.GuiSupport.initialize(); org.evosuite.runtime.RuntimeSettings.maxNumberOfIterationsPerLoop = 10000; org.evosuite.runtime.RuntimeSettings.mockSystemIn = true; org.evosuite.runtime.Runtime.getInstance().resetRuntime(); } @Before public void initTestCase(){ threadStopper.storeCurrentThreads(); threadStopper.startRecordingTime(); org.evosuite.runtime.GuiSupport.setHeadless(); org.evosuite.runtime.Runtime.getInstance().resetRuntime(); org.evosuite.runtime.agent.InstrumentingAgent.activate(); } @After public void doneWithTestCase(){ threadStopper.killAndJoinClientThreads(); org.evosuite.runtime.agent.InstrumentingAgent.deactivate(); org.evosuite.runtime.GuiSupport.restoreHeadlessMode(); } private static void initializeClasses() { org.evosuite.runtime.classhandling.ClassStateSupport.initializeClasses(Reporter_ESTest_scaffolding.class.getClassLoader() , "org.mockito.exceptions.misusing.UnfinishedStubbingException", "org.mockito.configuration.AnnotationEngine", "org.mockito.cglib.proxy.Callback", "org.mockito.exceptions.misusing.UnfinishedVerificationException", "org.mockito.invocation.Invocation", "org.mockito.exceptions.verification.NoInteractionsWanted", "org.mockito.invocation.Location", "org.mockito.exceptions.PrintableInvocation", "org.mockito.listeners.InvocationListener", "org.mockito.exceptions.Reporter", "org.mockito.exceptions.verification.VerificationInOrderFailure", "org.mockito.configuration.DefaultMockitoConfiguration", "org.mockito.invocation.DescribedInvocation", "org.mockito.internal.configuration.ClassPathLoader", "org.mockito.exceptions.base.MockitoException", "org.mockito.exceptions.misusing.NullInsteadOfMockException", "org.mockito.stubbing.Answer", "org.mockito.invocation.InvocationOnMock", "org.mockito.exceptions.verification.WantedButNotInvoked", "org.mockito.internal.util.StringJoiner", "org.mockito.internal.exceptions.stacktrace.StackTraceFilter", "org.mockito.exceptions.misusing.NotAMockException", "org.mockito.internal.creation.CglibMockMaker", "org.mockito.exceptions.misusing.FriendlyReminderException", "org.mockito.configuration.IMockitoConfiguration", "org.mockito.exceptions.misusing.MissingMethodInvocationException", "org.mockito.exceptions.verification.SmartNullPointerException", "org.mockito.exceptions.misusing.WrongTypeOfReturnValue", "org.mockito.exceptions.verification.TooLittleActualInvocations", "org.mockito.internal.exceptions.stacktrace.DefaultStackTraceCleaner", "org.mockito.exceptions.stacktrace.StackTraceCleaner", "org.mockito.internal.configuration.GlobalConfiguration", "org.mockito.exceptions.base.MockitoAssertionError", "org.mockito.internal.reporting.Discrepancy", "org.mockito.cglib.proxy.MethodInterceptor", "org.mockito.exceptions.verification.TooManyActualInvocations", "org.mockito.plugins.MockMaker", "org.mockito.exceptions.verification.ArgumentsAreDifferent", "org.mockito.exceptions.verification.NeverWantedButInvoked", "org.mockito.exceptions.misusing.CannotStubVoidMethodWithReturnValue", "org.mockito.exceptions.misusing.CannotVerifyStubOnlyMock", "org.mockito.internal.exceptions.stacktrace.DefaultStackTraceCleanerProvider", "org.mockito.plugins.StackTraceCleanerProvider", "org.mockito.exceptions.misusing.MockitoConfigurationException", "org.mockito.internal.exceptions.stacktrace.ConditionalStackTraceFilter", "org.mockito.configuration.MockitoConfiguration", "org.mockito.exceptions.misusing.InvalidUseOfMatchersException" ); } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
43200a742dc3ce7b3c3b2178b375c5707d7dc2ff
2036d367d6bba61a56c82f43bf41941d58150cb9
/src/main/java/cm/com/letsgo/config/WebsocketSecurityConfiguration.java
f92abb755b0dc245f670b87b5ad00800fbcc3f73
[]
no_license
trsorsimo96/letsgoCameroon
80325920e2ba79517fec72b93f03493fa342fcfc
54819a8c1982e1a2f84a77fc2f6e628e99c5c034
refs/heads/master
2020-03-30T15:50:13.479459
2018-10-03T08:28:57
2018-10-03T08:28:57
151,381,516
0
0
null
2018-10-03T08:28:58
2018-10-03T08:18:48
Java
UTF-8
Java
false
false
1,472
java
package cm.com.letsgo.config; import cm.com.letsgo.security.AuthoritiesConstants; import org.springframework.context.annotation.Configuration; import org.springframework.messaging.simp.SimpMessageType; import org.springframework.security.config.annotation.web.messaging.MessageSecurityMetadataSourceRegistry; import org.springframework.security.config.annotation.web.socket.AbstractSecurityWebSocketMessageBrokerConfigurer; @Configuration public class WebsocketSecurityConfiguration extends AbstractSecurityWebSocketMessageBrokerConfigurer { @Override protected void configureInbound(MessageSecurityMetadataSourceRegistry messages) { messages .nullDestMatcher().authenticated() .simpDestMatchers("/topic/tracker").hasAuthority(AuthoritiesConstants.ADMIN) // matches any destination that starts with /topic/ // (i.e. cannot send messages directly to /topic/) // (i.e. cannot subscribe to /topic/messages/* to get messages sent to // /topic/messages-user<id>) .simpDestMatchers("/topic/**").authenticated() // message types other than MESSAGE and SUBSCRIBE .simpTypeMatchers(SimpMessageType.MESSAGE, SimpMessageType.SUBSCRIBE).denyAll() // catch all .anyMessage().denyAll(); } /** * Disables CSRF for Websockets. */ @Override protected boolean sameOriginDisabled() { return true; } }
[ "jhipster-bot@jhipster.tech" ]
jhipster-bot@jhipster.tech
3cbb968183a24a962f14931229cace498b8b3bcd
22a0c37ea87d16be23d33e1f748343c8e375fca4
/learninghtml5gameprogramming/chapter5/TestMidi.java
e9ad9ad576ec0691fce038410903d40717c0222f
[]
no_license
mcli28/HTML-CSS-JS
d14168099a0800bd42238a7787b2e41a0728f1d8
f65f77499507dd167f399c8af0bb41db2e6ff543
refs/heads/master
2023-07-09T01:01:47.981734
2023-06-26T12:00:35
2023-06-26T12:00:35
27,412,025
0
0
null
null
null
null
UTF-8
Java
false
false
234
java
import org.jfugue.Player; public class TestMidi{ public static void main(String[] args) { Player player = new Player(); String musicString = "I[Harpsichord] A4h A5h D5h G5h"; player.play(musicString, new File("text.mid")); } }
[ "mclimber28@gmail.com" ]
mclimber28@gmail.com
ec550e54c83ce960ebd7705bde60034110585115
a58cc1b2f0944c36b4d1f83d47afb7835a86ee01
/BU/quote/java/com/fonality/billsoft/CalcReverseTaxesWithFipsCode.java
4c1dd0a86c22d1d1a2d43c492e3659ffe016bc9d
[]
no_license
sstovall19/fcs
623eac4ff8167435700bd01c43a0f1db59734aa1
dd15e517b45ab358f93ac5f2ac5814607b94933c
refs/heads/master
2020-04-15T15:57:31.991777
2014-02-22T00:46:32
2014-02-22T00:46:32
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,909
java
package com.fonality.billsoft; import javax.xml.bind.JAXBElement; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElementRef; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="aTransaction" type="{http://schemas.datacontract.org/2004/07/EZTaxWebService}Transaction" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "aTransaction" }) @XmlRootElement(name = "CalcReverseTaxesWithFipsCode") public class CalcReverseTaxesWithFipsCode { @XmlElementRef(name = "aTransaction", namespace = "http://tempuri.org/", type = JAXBElement.class, required = false) protected JAXBElement<Transaction> aTransaction; /** * Gets the value of the aTransaction property. * * @return * possible object is * {@link JAXBElement }{@code <}{@link Transaction }{@code >} * */ public JAXBElement<Transaction> getATransaction() { return aTransaction; } /** * Sets the value of the aTransaction property. * * @param value * allowed object is * {@link JAXBElement }{@code <}{@link Transaction }{@code >} * */ public void setATransaction(JAXBElement<Transaction> value) { this.aTransaction = value; } }
[ "sstovall19@ubuntu.ubuntu-domain" ]
sstovall19@ubuntu.ubuntu-domain
1df3731d8800088194d1d913de2bd6bba339c4b9
2cc44a49fcae38a913e592058af939faa042335c
/streams/src/main/java/org/apache/kafka/streams/processor/internals/Tasks.java
35056ffbd0828cbe75a6ee45973c4002cf272530
[ "Apache-2.0", "BSD-3-Clause", "EPL-2.0", "CDDL-1.0", "GPL-2.0-only", "LicenseRef-scancode-public-domain", "W3C", "CC0-1.0", "GPL-1.0-or-later", "CPL-1.0", "GPL-2.0-or-later", "LicenseRef-scancode-generic-export-compliance", "LicenseRef-scancode-other-permissive", "CC-PDDC", "APSL-2.0", "LicenseRef-scancode-free-unknown", "MIT", "LicenseRef-scancode-unknown-license-reference", "EPL-1.0", "Classpath-exception-2.0", "CDDL-1.1", "WTFPL", "BSD-2-Clause" ]
permissive
daijianhao/kafka
f696c5e9e4109c42bc28e048d7d2de6a51012212
28a4e3be8007c2e313fab5b931e9dad0388c2e09
refs/heads/trunk
2023-07-06T08:56:49.196702
2021-08-15T08:52:20
2021-08-15T08:52:20
262,017,304
0
0
Apache-2.0
2021-08-15T08:52:21
2020-05-07T10:15:00
null
UTF-8
Java
false
false
13,447
java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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.streams.processor.internals; import org.apache.kafka.clients.consumer.Consumer; import org.apache.kafka.common.Metric; import org.apache.kafka.common.MetricName; import org.apache.kafka.common.TopicPartition; import org.apache.kafka.common.utils.LogContext; import org.apache.kafka.streams.processor.TaskId; import org.apache.kafka.streams.processor.internals.metrics.StreamsMetricsImpl; import java.util.HashSet; import org.slf4j.Logger; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Set; import java.util.TreeMap; import java.util.stream.Collectors; class Tasks { private final Logger log; private final TopologyMetadata topologyMetadata; private final StreamsMetricsImpl streamsMetrics; private final Map<TaskId, Task> allTasksPerId = new TreeMap<>(); private final Map<TaskId, Task> readOnlyTasksPerId = Collections.unmodifiableMap(allTasksPerId); private final Collection<Task> readOnlyTasks = Collections.unmodifiableCollection(allTasksPerId.values()); // TODO: change type to `StreamTask` private final Map<TaskId, Task> activeTasksPerId = new TreeMap<>(); // TODO: change type to `StreamTask` private final Map<TopicPartition, Task> activeTasksPerPartition = new HashMap<>(); // TODO: change type to `StreamTask` private final Map<TaskId, Task> readOnlyActiveTasksPerId = Collections.unmodifiableMap(activeTasksPerId); private final Set<TaskId> readOnlyActiveTaskIds = Collections.unmodifiableSet(activeTasksPerId.keySet()); // TODO: change type to `StreamTask` private final Collection<Task> readOnlyActiveTasks = Collections.unmodifiableCollection(activeTasksPerId.values()); // TODO: change type to `StandbyTask` private final Map<TaskId, Task> standbyTasksPerId = new TreeMap<>(); // TODO: change type to `StandbyTask` private final Map<TaskId, Task> readOnlyStandbyTasksPerId = Collections.unmodifiableMap(standbyTasksPerId); private final Set<TaskId> readOnlyStandbyTaskIds = Collections.unmodifiableSet(standbyTasksPerId.keySet()); private final ActiveTaskCreator activeTaskCreator; private final StandbyTaskCreator standbyTaskCreator; private Consumer<byte[], byte[]> mainConsumer; Tasks(final String logPrefix, final TopologyMetadata topologyMetadata, final StreamsMetricsImpl streamsMetrics, final ActiveTaskCreator activeTaskCreator, final StandbyTaskCreator standbyTaskCreator) { final LogContext logContext = new LogContext(logPrefix); log = logContext.logger(getClass()); this.topologyMetadata = topologyMetadata; this.streamsMetrics = streamsMetrics; this.activeTaskCreator = activeTaskCreator; this.standbyTaskCreator = standbyTaskCreator; } void setMainConsumer(final Consumer<byte[], byte[]> mainConsumer) { this.mainConsumer = mainConsumer; } void handleNewAssignmentAndCreateTasks(final Map<TaskId, Set<TopicPartition>> activeTasksToCreate, final Map<TaskId, Set<TopicPartition>> standbyTasksToCreate, final Set<TaskId> assignedActiveTasks, final Set<TaskId> assignedStandbyTasks) { activeTaskCreator.removeRevokedUnknownTasks(assignedActiveTasks); standbyTaskCreator.removeRevokedUnknownTasks(assignedStandbyTasks); createTasks(activeTasksToCreate, standbyTasksToCreate); } void maybeCreateTasksFromNewTopologies() { final Set<String> currentNamedTopologies = topologyMetadata.namedTopologiesView(); createTasks( activeTaskCreator.uncreatedTasksForTopologies(currentNamedTopologies), standbyTaskCreator.uncreatedTasksForTopologies(currentNamedTopologies) ); } void createTasks(final Map<TaskId, Set<TopicPartition>> activeTasksToCreate, final Map<TaskId, Set<TopicPartition>> standbyTasksToCreate) { for (final Map.Entry<TaskId, Set<TopicPartition>> taskToBeCreated : activeTasksToCreate.entrySet()) { final TaskId taskId = taskToBeCreated.getKey(); if (activeTasksPerId.containsKey(taskId)) { throw new IllegalStateException("Attempted to create an active task that we already own: " + taskId); } } for (final Map.Entry<TaskId, Set<TopicPartition>> taskToBeCreated : standbyTasksToCreate.entrySet()) { final TaskId taskId = taskToBeCreated.getKey(); if (standbyTasksPerId.containsKey(taskId)) { throw new IllegalStateException("Attempted to create a standby task that we already own: " + taskId); } } // keep this check to simplify testing (ie, no need to mock `activeTaskCreator`) if (!activeTasksToCreate.isEmpty()) { // TODO: change type to `StreamTask` for (final Task activeTask : activeTaskCreator.createTasks(mainConsumer, activeTasksToCreate)) { activeTasksPerId.put(activeTask.id(), activeTask); allTasksPerId.put(activeTask.id(), activeTask); for (final TopicPartition topicPartition : activeTask.inputPartitions()) { activeTasksPerPartition.put(topicPartition, activeTask); } } } // keep this check to simplify testing (ie, no need to mock `standbyTaskCreator`) if (!standbyTasksToCreate.isEmpty()) { // TODO: change type to `StandbyTask` for (final Task standbyTask : standbyTaskCreator.createTasks(standbyTasksToCreate)) { standbyTasksPerId.put(standbyTask.id(), standbyTask); allTasksPerId.put(standbyTask.id(), standbyTask); } } } void convertActiveToStandby(final StreamTask activeTask, final Set<TopicPartition> partitions, final Map<TaskId, RuntimeException> taskCloseExceptions) { if (activeTasksPerId.remove(activeTask.id()) == null) { throw new IllegalStateException("Attempted to convert unknown active task to standby task: " + activeTask.id()); } final Set<TopicPartition> toBeRemoved = activeTasksPerPartition.entrySet().stream() .filter(e -> e.getValue().id().equals(activeTask.id())) .map(Map.Entry::getKey) .collect(Collectors.toSet()); toBeRemoved.forEach(activeTasksPerPartition::remove); cleanUpTaskProducerAndRemoveTask(activeTask.id(), taskCloseExceptions); final StandbyTask standbyTask = standbyTaskCreator.createStandbyTaskFromActive(activeTask, partitions); standbyTasksPerId.put(standbyTask.id(), standbyTask); allTasksPerId.put(standbyTask.id(), standbyTask); } void convertStandbyToActive(final StandbyTask standbyTask, final Set<TopicPartition> partitions) { if (standbyTasksPerId.remove(standbyTask.id()) == null) { throw new IllegalStateException("Attempted to convert unknown standby task to stream task: " + standbyTask.id()); } final StreamTask activeTask = activeTaskCreator.createActiveTaskFromStandby(standbyTask, partitions, mainConsumer); activeTasksPerId.put(activeTask.id(), activeTask); for (final TopicPartition topicPartition : activeTask.inputPartitions()) { activeTasksPerPartition.put(topicPartition, activeTask); } allTasksPerId.put(activeTask.id(), activeTask); } void updateInputPartitionsAndResume(final Task task, final Set<TopicPartition> topicPartitions) { final boolean requiresUpdate = !task.inputPartitions().equals(topicPartitions); if (requiresUpdate) { log.debug("Update task {} inputPartitions: current {}, new {}", task, task.inputPartitions(), topicPartitions); for (final TopicPartition inputPartition : task.inputPartitions()) { activeTasksPerPartition.remove(inputPartition); } if (task.isActive()) { for (final TopicPartition topicPartition : topicPartitions) { activeTasksPerPartition.put(topicPartition, task); } } task.updateInputPartitions(topicPartitions, topologyMetadata.nodeToSourceTopics(task.id())); } task.resume(); } void cleanUpTaskProducerAndRemoveTask(final TaskId taskId, final Map<TaskId, RuntimeException> taskCloseExceptions) { try { activeTaskCreator.closeAndRemoveTaskProducerIfNeeded(taskId); } catch (final RuntimeException e) { final String uncleanMessage = String.format("Failed to close task %s cleanly. Attempting to close remaining tasks before re-throwing:", taskId); log.error(uncleanMessage, e); taskCloseExceptions.putIfAbsent(taskId, e); } removeTaskBeforeClosing(taskId); } void reInitializeThreadProducer() { activeTaskCreator.reInitializeThreadProducer(); } void closeThreadProducerIfNeeded() { activeTaskCreator.closeThreadProducerIfNeeded(); } // TODO: change type to `StreamTask` void closeAndRemoveTaskProducerIfNeeded(final Task activeTask) { activeTaskCreator.closeAndRemoveTaskProducerIfNeeded(activeTask.id()); } void removeTaskBeforeClosing(final TaskId taskId) { activeTasksPerId.remove(taskId); final Set<TopicPartition> toBeRemoved = activeTasksPerPartition.entrySet().stream() .filter(e -> e.getValue().id().equals(taskId)) .map(Map.Entry::getKey) .collect(Collectors.toSet()); toBeRemoved.forEach(activeTasksPerPartition::remove); standbyTasksPerId.remove(taskId); allTasksPerId.remove(taskId); } void clear() { activeTasksPerId.clear(); activeTasksPerPartition.clear(); standbyTasksPerId.clear(); allTasksPerId.clear(); } // TODO: change return type to `StreamTask` Task activeTasksForInputPartition(final TopicPartition partition) { return activeTasksPerPartition.get(partition); } // TODO: change return type to `StandbyTask` Task standbyTask(final TaskId taskId) { if (!standbyTasksPerId.containsKey(taskId)) { throw new IllegalStateException("Standby task unknown: " + taskId); } return standbyTasksPerId.get(taskId); } Task task(final TaskId taskId) { if (!allTasksPerId.containsKey(taskId)) { throw new IllegalStateException("Task unknown: " + taskId); } return allTasksPerId.get(taskId); } Collection<Task> tasks(final Collection<TaskId> taskIds) { final Set<Task> tasks = new HashSet<>(); for (final TaskId taskId : taskIds) { tasks.add(task(taskId)); } return tasks; } // TODO: change return type to `StreamTask` Collection<Task> activeTasks() { return readOnlyActiveTasks; } Collection<Task> allTasks() { return readOnlyTasks; } Set<TaskId> activeTaskIds() { return readOnlyActiveTaskIds; } Set<TaskId> standbyTaskIds() { return readOnlyStandbyTaskIds; } // TODO: change return type to `StreamTask` Map<TaskId, Task> activeTaskMap() { return readOnlyActiveTasksPerId; } // TODO: change return type to `StandbyTask` Map<TaskId, Task> standbyTaskMap() { return readOnlyStandbyTasksPerId; } Map<TaskId, Task> tasksPerId() { return readOnlyTasksPerId; } boolean owned(final TaskId taskId) { return allTasksPerId.containsKey(taskId); } StreamsProducer streamsProducerForTask(final TaskId taskId) { return activeTaskCreator.streamsProducerForTask(taskId); } StreamsProducer threadProducer() { return activeTaskCreator.threadProducer(); } Map<MetricName, Metric> producerMetrics() { return activeTaskCreator.producerMetrics(); } Set<String> producerClientIds() { return activeTaskCreator.producerClientIds(); } // for testing only void addTask(final Task task) { if (task.isActive()) { activeTasksPerId.put(task.id(), task); } else { standbyTasksPerId.put(task.id(), task); } allTasksPerId.put(task.id(), task); } }
[ "noreply@github.com" ]
daijianhao.noreply@github.com
1a97a706a51c1328f65b7c42979e41beda9ef870
b163518bc085679460d8b5f9ae61dd3459e57fee
/src/chess/pieces/Knight.java
b777cb65c94115dea88b4788b1447f12b5cc667f
[]
no_license
alcoimbra/Xadrez
ff9e4d4fc3399772cebc6ca699b8d4dac1a88c56
12dfb3ded23344d26ca50e19f0b86b71d002f83d
refs/heads/master
2020-04-03T21:10:06.721010
2018-11-05T23:05:19
2018-11-05T23:05:19
155,565,169
0
0
null
null
null
null
UTF-8
Java
false
false
1,982
java
package chess.pieces; import boardGame.Board; import boardGame.Position; import chess.ChessPiece; import chess.Color; public class Knight extends ChessPiece{ public Knight() { super(); } public Knight(Board board, Color color) { super(board, color); } @Override public String toString() { return "N"; } private boolean canMove(Position position) { ChessPiece p = (ChessPiece) getBoard().piece(position); return p == null || p.getColor() != getColor(); } @Override public boolean[][] possibleMoves() { boolean[][] mat = new boolean[getBoard().getRows()][getBoard().getColumns()]; Position p = new Position(0, 0); p.setValues(position.getRow() - 1, position.getColumn() - 2); if(getBoard().positionExists(p) && canMove(p)) { mat[p.getRow()][p.getColumn()] = true; } p.setValues(position.getRow() - 2, position.getColumn() - 1); if(getBoard().positionExists(p) && canMove(p)) { mat[p.getRow()][p.getColumn()] = true; } p.setValues(position.getRow() - 2, position.getColumn() + 1); if(getBoard().positionExists(p) && canMove(p)) { mat[p.getRow()][p.getColumn()] = true; } p.setValues(position.getRow() - 1, position.getColumn() + 2); if(getBoard().positionExists(p) && canMove(p)) { mat[p.getRow()][p.getColumn()] = true; } p.setValues(position.getRow() + 1, position.getColumn() + 2); if(getBoard().positionExists(p) && canMove(p)) { mat[p.getRow()][p.getColumn()] = true; } p.setValues(position.getRow() + 2, position.getColumn() + 1); if(getBoard().positionExists(p) && canMove(p)) { mat[p.getRow()][p.getColumn()] = true; } p.setValues(position.getRow() + 2, position.getColumn() - 1); if(getBoard().positionExists(p) && canMove(p)) { mat[p.getRow()][p.getColumn()] = true; } p.setValues(position.getRow() + 1, position.getColumn() - 2); if(getBoard().positionExists(p) && canMove(p)) { mat[p.getRow()][p.getColumn()] = true; } return mat; } }
[ "algcoimbra01@gmail.com" ]
algcoimbra01@gmail.com
32f90a1738896ec15e2ea93e8cc2b18e61948399
27d1e2b597c969fb3ade8de7572e68d6ff2e2bfb
/src/com/nardah/Animation.java
7f0a63b4bd6b7f5249ba9e8d065804bb80a07ab7
[]
no_license
Rune-Status/artembatutin-nardah_client
b9d50561ad194a8e094a597959bac44e81a691c8
a6a8fb6ab1a83b8a6e4b1bc155fdac31f7aa655c
refs/heads/master
2020-10-01T22:34:21.060536
2018-08-30T05:05:31
2018-08-30T05:05:31
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,105
java
package com.nardah; public final class Animation { public static void unpackConfig(StreamLoader archive) { Buffer buffer = new Buffer(archive.getDataForName("seq.dat")); final int length = buffer.readUShort(); if (animations == null) { animations = new Animation[length]; } for (int i = 0; i < length; i++) { if (animations[i] == null) { animations[i] = new Animation(); } animations[i].decode(buffer); } } public int method258(int i) { int j = durations[i]; if (j == 0) { Frame class36 = Frame.method531(primaryFrames[i] ); if (class36 != null) j = durations[i] = class36.anInt636; } if (j == 0) j = 1; return j; } private void decode(Buffer buffer) { while(true) { final int opcode = buffer.readUByte(); if (opcode == 0) { break; } else if (opcode == 1) { frameCount = buffer.readUShort(); primaryFrames = new int[frameCount]; secondaryFrames = new int[frameCount]; durations = new int[frameCount]; for (int i = 0; i < frameCount; i++) { durations[i] = buffer.readUShort(); } for (int i = 0; i < frameCount; i++) { primaryFrames[i] = buffer.readUShort(); secondaryFrames[i] = -1; } for (int i = 0; i < frameCount; i++) { primaryFrames[i] += buffer.readUShort() << 16; } // for (int i = 0; i < frameCount; i++) { // walking works but godswords break // primaryFrames[i] = buffer.readInt(); // secondaryFrames[i] = -1; // } // for (int i = 0; i < frameCount; i++) { // walking breaks godswords work // primaryFrames[i] = buffer.readUShort(); // secondaryFrames[i] = -1; // } // // for (int i = 0; i < frameCount; i++) { // primaryFrames[i] =+ buffer.readUShort() << 16; // } } else if (opcode == 2) { loopOffset = buffer.readUShort(); } else if (opcode == 3) { int len = buffer.readUByte(); interleaveOrder = new int[len + 1]; for (int i = 0; i < len; i++) { interleaveOrder[i] = buffer.readUByte(); } interleaveOrder[len] = 9999999; } else if (opcode == 4) { stretches = true; } else if (opcode == 5) { forcedPriority = buffer.readUByte(); } else if (opcode == 6) { playerOffhand = buffer.readUShort(); } else if (opcode == 7) { playerMainhand = buffer.readUShort(); } else if (opcode == 8) { maxLoops = buffer.readUByte(); } else if (opcode == 9) { animatingPrecedence = buffer.readUByte(); } else if (opcode == 10) { walkingPrecedence = buffer.readUByte(); } else if (opcode == 11) { replayMode = buffer.readUByte(); } else if (opcode == 12) { int len = buffer.readUByte(); for (int i = 0; i < len; i++) { buffer.readUShort(); } for (int i = 0; i < len; i++) { buffer.readUShort(); } } else if (opcode == 13) { int len = buffer.readUByte(); for (int i = 0; i < len; i++) { buffer.read24Int(); } } } if (frameCount == 0) { frameCount = 1; primaryFrames = new int[1]; primaryFrames[0] = -1; secondaryFrames = new int[1]; secondaryFrames[0] = -1; durations = new int[1]; durations[0] = -1; } if (animatingPrecedence == -1) { animatingPrecedence = (interleaveOrder == null) ? 0 : 2; } if (walkingPrecedence == -1) { walkingPrecedence = (interleaveOrder == null) ? 0 : 2; } } private Animation() { animatingPrecedence = -1; //Stops character from moving walkingPrecedence = -1; replayMode = 1; } public static Animation animations[]; public int frameCount; public int frame[]; public int primaryFrames[]; public int secondaryFrames[]; public int[] durations; public int loopOffset = -1; public int interleaveOrder[]; public boolean stretches; public int forcedPriority = 5; public int playerOffhand = -1; public int playerMainhand = -1; public int maxLoops = 99; public int animatingPrecedence; public int walkingPrecedence; public int replayMode; public int[] delay; public int[] anIntArray354; }
[ "artembatutin@gmail.com" ]
artembatutin@gmail.com
c1cbbc3d5ab1504387ff4a272f295143020024e1
924ba2915cc1748ed5dc4dfeb4a0b8cff70328f8
/pairpro/src/java/servlet/PMF.java
bd38f400641a74ee345c7dfb806163b23f9eb978
[]
no_license
praliness/kaimin
222f611ad038957337d4debddf51f92765eec359
56b602e5a1794a3248d522532e92275a0d78fdf0
refs/heads/master
2021-01-21T18:18:09.199334
2015-07-10T02:58:21
2015-07-10T02:58:21
37,696,789
0
0
null
2015-06-19T02:17:57
2015-06-19T02:17:57
null
UTF-8
Java
false
false
175
java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package servlet; /** * * @author g13960ym */ public class PMF { }
[ "g13960ym@s30410.tsuda.ac.jp" ]
g13960ym@s30410.tsuda.ac.jp
050dcd1c14df0e272f2ac0636c8233f8b084dcca
bd2b572627b1825679016284e53aa7c511679f9e
/app/src/main/java/com/arunditti/android/mygardenapp/provider/PlantContract.java
85dca384bf0bd92a009bed477f5c4a0ef5e90da9
[]
no_license
arunditti/MyGardenApp
5883f7dd8701409f3c350fc2489b2f8b625e2270
1fd97f0d034ea280a53521e8c4c15790ba00697b
refs/heads/master
2020-03-22T03:53:12.616129
2018-07-02T20:17:59
2018-07-02T20:17:59
139,458,112
0
0
null
null
null
null
UTF-8
Java
false
false
1,863
java
package com.arunditti.android.mygardenapp.provider; /** * Created by arunditti on 7/1/18. */ /* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import android.net.Uri; import android.provider.BaseColumns; public class PlantContract { // The authority, which is how your code knows which Content Provider to access public static final String AUTHORITY = "com.arunditti.android.mygardenapp"; // The base content URI = "content://" + <authority> public static final Uri BASE_CONTENT_URI = Uri.parse("content://" + AUTHORITY); // Define the possible paths for accessing data in this contract // This is the path for the "plants" directory public static final String PATH_PLANTS = "plants"; public static final long INVALID_PLANT_ID = -1; public static final class PlantEntry implements BaseColumns { // TaskEntry content URI = base content URI + path public static final Uri CONTENT_URI = BASE_CONTENT_URI.buildUpon().appendPath(PATH_PLANTS).build(); public static final String TABLE_NAME = "plants"; public static final String COLUMN_PLANT_TYPE = "plantType"; public static final String COLUMN_CREATION_TIME = "createdAt"; public static final String COLUMN_LAST_WATERED_TIME = "lastWateredAt"; } }
[ "arunditti@gmail.com" ]
arunditti@gmail.com
8da0edceb69d7d5811fabb0843e43b28730cc9db
c27eb489520af29ff4c7f4ad39d18d39ecc06c2f
/orm/plugin/runtime/org.jboss.tools.hibernate.runtime.common/src/org/jboss/tools/hibernate/runtime/common/AbstractQueryExporterFacade.java
d53fbf2ca38e3ba48f361fecdbbd8d7465929706
[]
no_license
brian-vosburgh/jbosstools-hibernate
00e1e380a652ef1936e05cbfeaeef16c38b4672e
b7503b09e7233bb9218cbbed1ac80915c84da9a7
refs/heads/master
2021-01-16T21:19:16.078040
2020-05-15T13:57:55
2020-05-15T13:57:55
47,771,757
0
0
null
2015-12-10T15:53:21
2015-12-10T15:53:21
null
UTF-8
Java
false
false
750
java
package org.jboss.tools.hibernate.runtime.common; import java.util.List; import org.jboss.tools.hibernate.runtime.spi.IQueryExporter; public abstract class AbstractQueryExporterFacade extends AbstractFacade implements IQueryExporter { public AbstractQueryExporterFacade( IFacadeFactory facadeFactory, Object target) { super(facadeFactory, target); } @Override public void setQueries(List<String> queryStrings) { Util.invokeMethod( getTarget(), "setQueries", new Class[] { List.class }, new Object[] { queryStrings }); } @Override public void setFilename(String filename) { Util.invokeMethod( getTarget(), "setFileName", new Class[] { String.class }, new Object[] { filename }); } }
[ "koen.aers@gmail.com" ]
koen.aers@gmail.com
bea464bdd45a6a0c44b7e9ccd618fd290bb7fcfa
c4470a361dfc5c8c69d75e28de28827cf1e19fe8
/src/com/company/Main.java
364c8410ee2cb97b7a4cc7be76852fee9b3020f1
[]
no_license
ZamiraBai/HomeWork2.1
a44dc76cdbc5fda1bd24e09d2b830c40e8cc8cb4
d0d8640672e54935723158f9da110f79bbe2c6f2
refs/heads/master
2020-07-11T07:57:17.390071
2019-08-26T13:38:41
2019-08-26T13:38:41
204,483,523
0
0
null
null
null
null
UTF-8
Java
false
false
339
java
package com.company; import java.util.Random; public class Main<Public> { public static void main(String[] args) { Random age = new Random(); int number; for (int counter = 0; counter <= 10; counter ++) { number = age.nextInt(107); System.out.println(number + " "); } } }
[ "baimurzaeva@hotmail.com" ]
baimurzaeva@hotmail.com
57e9852c0b6c2d8d5cb40da8cd5137f4f9a7bb32
154a004485645ad8f1ab5c240fb6fe30458727d4
/project4 8 Puzzle/CertifyHeap.java
5bae766b410836cc45cd22e3e6f9f34de8081e92
[]
no_license
Angela1116/CS210-Intermediate-Computing-with-Data-Structures
2b8d254c9c262a9a687fa4fcc3e296e8b20a0786
0f149e9d7aae1250f95e004282384fc5b1d822ba
refs/heads/main
2023-02-24T21:48:51.875696
2021-01-27T23:00:50
2021-01-27T23:00:50
324,012,664
0
0
null
null
null
null
UTF-8
Java
false
false
1,186
java
import stdlib.StdIn; import stdlib.StdOut; public class CertifyHeap { // Returns true if a[] represents a max-heap, and false otherwise. public static boolean isMaxHeap(Comparable[] a) { // Set n to the number of elements in a. int n = a.length; if (a[0].equals(null)) { return false; } // For each node 1 <= i <= n / 2, if a[i] is less than either of its children, return // false, meaning a[] does not represent a max-heap. If no such i exists, return true. for (int i = 1; i <= (n/2); i++) { // int pos = n/2; if ((2*i) < n && less(a[i], a[2*i])) { return false; } if ((2*i+1) < n && less(a[i], a[2*i+1])) { return false; } } return true; } // Returns true of v is less than w, and false otherwise. private static boolean less(Comparable v, Comparable w) { return (v.compareTo(w) < 0); } // Unit tests the library. [DO NOT EDIT] public static void main(String[] args) { String[] a = StdIn.readAllStrings(); StdOut.println(isMaxHeap(a)); } }
[ "noreply@github.com" ]
Angela1116.noreply@github.com
acac766f08e258d43a46db57b0e2303531b261e2
3f20bb61c8fd58cce69a73aa07299148de32b550
/src/ar/edu/ort/t5/grp1/misgastosdiarios/Reporte.java
29a61a88bab6e3415024a9fdab28b58d7048ed84
[]
no_license
lmchao/MisGastosDiarios
ed934e721d81b1722daa8789c0286f6aca26ef36
780185a9259fcacf5070aa559b464751c54d196c
refs/heads/master
2020-12-30T11:39:49.434083
2017-06-28T03:07:54
2017-06-28T03:07:54
91,512,812
0
1
null
null
null
null
UTF-8
Java
false
false
499
java
package ar.edu.ort.t5.grp1.misgastosdiarios; public class Reporte { private Categoria categoria; private float importe; private float porcentaje; public Reporte(Categoria categoria, float importe, float porcentaje) { super(); this.categoria = categoria; this.importe = importe; this.porcentaje = porcentaje; } public Categoria getCategoria() { return categoria; } public float getImporte() { return importe; } public float getPorcentaje() { return porcentaje; } }
[ "Leandro.Chao@turner.com" ]
Leandro.Chao@turner.com
6d02fac480bbca739024a701cc1029fbfb9b302c
64acf11f1198b6b3d8a28cfbfbf034e6cadbfcea
/20210427/src/package02/Ex14Test.java
d481f849c798036e6037af036e9fe7b54091373b
[]
no_license
jaewoong0119/smart
3470bc04bc4bd1ce30d403fe989efb70473a7aa2
5f9b3cf12531070d0ecf1badab8b688312560e16
refs/heads/main
2023-04-15T10:29:17.642805
2021-04-29T00:48:49
2021-04-29T00:48:49
362,643,784
0
0
null
null
null
null
UHC
Java
false
false
770
java
package package02; public class Ex14Test { public static void main(String[] args) { Ex09 ex; Ex08 ex1 = new Ex09(); //자동 형변환 Ex08 ex2 = ex1; ex = (Ex09)ex2; //강제 형변환 ex.num1 = 300; ex.num2 = 400; ex.add(); ex1.add(); ex2.add(); objPrint(ex1); Ex08 [] ex3 = new Ex08[3]; ex3[0] = new Ex09(); ex3[1] = new Ex09(); ex3[3] = new Ex09(); Ex08 [] ex4 = ex3; ex = (Ex09)ex4[0]; ex.num1 = 10; ex.num2 = 30; ex.add(); ex3[0].add(); objArrayPrint(ex3); } public static void objArrayPrint(Ex08 [] ex04) { Ex09 ex = (Ex09)ex04[0]; ex.add(); } public static void objPrint(Ex08 ex02) { Ex09 ex = (Ex09)ex02; ex.add(); ex.num1 = 1500; ex.num2 = 2000; } }
[ "user@220.127.75.115" ]
user@220.127.75.115
a7dbb4a13ceb20de45d18b0c9a3bb22e8191628b
7e7cc3e9e6e55b865c28ef2cbe8d8dd2450823f7
/messenger/src/client/controller/RegisterController.java
6de016c58672466af634c19a50c310fd4fa5c130
[]
no_license
YeongchanSeo/CrownTalk
c3a9a5f0db0e2a802c931ebfac429e4784ac340f
a971e15a160c8ec7b43b2b3d53849d1dd4ef8138
refs/heads/master
2021-01-21T18:33:12.919813
2017-05-22T13:12:51
2017-05-22T13:12:51
92,054,167
0
0
null
null
null
null
UHC
Java
false
false
2,729
java
package client.controller; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.net.Socket; import javax.swing.JOptionPane; import client.view.MemberShipUI; public class RegisterController { private Socket socket; private PrintWriter writer; private MemberShipUI ui; public RegisterController(Socket socket, MemberShipUI ui){ this.socket = socket; this.ui = ui; try{ writer = new PrintWriter(socket.getOutputStream()); } catch(Exception e){ } } public boolean askRegister(String name, String memberNum, String ID, String nickName, String password){ writer.println(name); writer.flush(); writer.println(memberNum); writer.flush(); writer.println(ID); writer.flush(); writer.println(nickName); writer.flush(); writer.println(password); writer.flush(); System.out.println(name); try{ Thread.sleep(100); } catch(InterruptedException ie){ System.out.println("인터럽트"); } return responseRegister(); } private boolean responseRegister(){ try{ BufferedReader reader = new BufferedReader( new InputStreamReader(socket.getInputStream())); String str = reader.readLine(); System.out.println(str); if(str == null) return false; if(str.equals("회원가입 완료")){ JOptionPane.showMessageDialog(ui, "회원가입을 축하합니다.", "가입 완료", JOptionPane.INFORMATION_MESSAGE); ui.dispose(); } else if(str.equals("회원가입 실패")){ JOptionPane.showMessageDialog(ui, "사용중인 아이디입니다.", "가입 실패", JOptionPane.ERROR_MESSAGE); } else if(str.equals("이름공백")){ JOptionPane.showMessageDialog(ui, "이름을 기입해주세요.", "가입 실패", JOptionPane.ERROR_MESSAGE); } else if(str.equals("주민등록번호공백")){ JOptionPane.showMessageDialog(ui, "주민등록번호를 기입해주세요.", "가입 실패", JOptionPane.ERROR_MESSAGE); } else if(str.equals("아이디공백")){ JOptionPane.showMessageDialog(ui, "아이디를 기입해주세요.", "가입 실패", JOptionPane.ERROR_MESSAGE); } else if(str.equals("닉네임공백")){ JOptionPane.showMessageDialog(ui, "닉네임을 기입해주세요.", "가입 실패", JOptionPane.ERROR_MESSAGE); } else if(str.equals("비밀번호공백")){ JOptionPane.showMessageDialog(ui, "비밀번호를 기입해주세요.", "가입 실패", JOptionPane.ERROR_MESSAGE); } } catch(IOException ioe){ System.out.println("회원가입 에러"); } return false; } }
[ "Yeongchan@user" ]
Yeongchan@user
9233e1e8a429a08b69b0d796fbca66335ae2a562
36301bb8643f5c3253aa4055f40d1bb7f154c87a
/app/src/main/java/robin/com/wifisensor/util/exif/ExifReader.java
e697df6d8b0c4c26edf0fa7edd5178e81dd7edb6
[]
no_license
huangbo1141/wifisensor
06ba0ea9fe1eff009cc7e36c2bb8648a5145f105
696b2d9f1c630c6a0109e386ecda03b5ea4b2d32
refs/heads/master
2021-07-16T21:22:10.214759
2017-05-23T15:40:59
2017-05-23T15:40:59
105,983,235
0
0
null
null
null
null
UTF-8
Java
false
false
2,705
java
package robin.com.wifisensor.util.exif; import android.util.Log; import java.io.IOException; import java.io.InputStream; /** * This class reads the EXIF header of a JPEG file and stores it in * ExifData. */ public class ExifReader { private static final String TAG = "ExifReader"; private final ExifInterface mInterface; ExifReader(ExifInterface iRef) { mInterface = iRef; } /** * Parses the inputStream and and returns the EXIF data in an * ExifData. * * throws ExifInvalidFormatException * throws IOException */ protected ExifData read(InputStream inputStream) throws ExifInvalidFormatException, IOException { ExifParser parser = ExifParser.parse(inputStream, mInterface); ExifData exifData = new ExifData(parser.getByteOrder()); ExifTag tag = null; int event = parser.next(); while (event != ExifParser.EVENT_END) { switch (event) { case ExifParser.EVENT_START_OF_IFD: exifData.addIfdData(new IfdData(parser.getCurrentIfd())); break; case ExifParser.EVENT_NEW_TAG: tag = parser.getTag(); if (!tag.hasValue()) { parser.registerForTagValue(tag); } else { exifData.getIfdData(tag.getIfd()).setTag(tag); } break; case ExifParser.EVENT_VALUE_OF_REGISTERED_TAG: tag = parser.getTag(); if (tag.getDataType() == ExifTag.TYPE_UNDEFINED) { parser.readFullTagValue(tag); } exifData.getIfdData(tag.getIfd()).setTag(tag); break; case ExifParser.EVENT_COMPRESSED_IMAGE: byte buf[] = new byte[parser.getCompressedImageSize()]; if (buf.length == parser.read(buf)) { exifData.setCompressedThumbnail(buf); } else { Log.w(TAG, "Failed to read the compressed thumbnail"); } break; case ExifParser.EVENT_UNCOMPRESSED_STRIP: buf = new byte[parser.getStripSize()]; if (buf.length == parser.read(buf)) { exifData.setStripBytes(parser.getStripIndex(), buf); } else { Log.w(TAG, "Failed to read the strip bytes"); } break; } event = parser.next(); } return exifData; } }
[ "bohuang29@hotmail.com" ]
bohuang29@hotmail.com
7eb4f3c934a6ee14a375d711ac6f41f647d9eb1c
082b9ca75814f366826a52ad81e016b72e6cf26f
/springMVC/BankAppMVC/src/com/capgemini/bankapp/dao/BankAccountDao.java
178d86eaed82c739f8fb7d40fb625d49e9f9409f
[]
no_license
kethinenipranavi/java-assignments
a1ffd1bbd89db51a07e35bdcea51374758dc4a46
c1b3a73f21080873d381b51ca805944de4b580a7
refs/heads/master
2020-04-27T13:00:41.498460
2019-05-06T04:34:25
2019-05-06T04:34:25
174,352,284
0
0
null
null
null
null
UTF-8
Java
false
false
741
java
package com.capgemini.bankapp.dao; import java.util.List; import com.capgemini.bankapp.exception.BankAccountNotFoundException; import com.capgemini.bankapp.model.BankAccount; public interface BankAccountDao { public boolean addNewBankAccount(BankAccount account); public boolean updateAccountDetails(long accountId,String accountHolderName, String accountType); public boolean deleteBankAccount(long accountId); public List<BankAccount> findAllBankAccounts(); public BankAccount searchAccount(long accountId) throws BankAccountNotFoundException; public double getBalance(long accountId) throws BankAccountNotFoundException ; public void updateBalance(long accountId,double newBalance) throws BankAccountNotFoundException ; }
[ "kethineni.pranavi@capgemini.com" ]
kethineni.pranavi@capgemini.com
ed341005966d7f10c9d95603ecab1d225adff828
631e366a37d5de26dda6273605b8132f161855c7
/src/test/java/com/hellofresh/challenge/WebTest.java
c079b477cdaf3db8ea28d8df9ec61e9fb0a35b8e
[]
no_license
himanshu323/web-test
1508fa3856739c2c801b4087564683bb45d4d8be
545912c5e157d046d81ea5ef3a7a950c8d2e9fb1
refs/heads/master
2022-07-14T23:33:04.658594
2019-10-10T08:57:43
2019-10-10T08:57:43
214,025,114
0
0
null
2022-06-29T17:41:45
2019-10-09T21:15:15
HTML
UTF-8
Java
false
false
6,903
java
//package com.hellofresh.challenge; // //import static org.testng.AssertJUnit.assertEquals; //import static org.testng.AssertJUnit.assertTrue; //import org.testng.annotations.Test; //import org.testng.annotations.BeforeMethod; //import org.openqa.selenium.By; //import org.openqa.selenium.WebDriver; //import org.openqa.selenium.WebElement; //import org.openqa.selenium.chrome.ChromeDriver; //import org.openqa.selenium.support.ui.ExpectedConditions; //import org.openqa.selenium.support.ui.Select; //import org.openqa.selenium.support.ui.WebDriverWait; //import org.testng.annotations.BeforeMethod; // //import java.util.Date; // //import static junit.framework.TestCase.assertTrue; // //public class WebTest { // WebDriver driver; // WebDriverWait wait; // // String existingUserEmail = "hf_challenge_123456@hf123456.com"; // String existingUserPassword = "12345678"; // // @BeforeMethod // @BeforeMethod // public void setUp() { // System.setProperty("webdriver.chrome.driver", "src/test/resources/chromedriver"); // driver = new ChromeDriver(); // wait = new WebDriverWait(driver, 10, 50); // driver.get("http://automationpractice.com/index.php"); // } // // @Test // public void signInTest() { // wait.until(ExpectedConditions.visibilityOfElementLocated(By.className("login"))).click(); // String timestamp = String.valueOf(new Date().getTime()); // String email = "hf_challenge_" + timestamp + "@hf" + timestamp.substring(7) + ".com"; // String name = "Firstname"; // String surname = "Lastname"; // driver.findElement(By.id("email_create")).sendKeys(email); // driver.findElement(By.id("SubmitCreate")).click(); // wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("id_gender2"))).click(); // driver.findElement(By.id("customer_firstname")).sendKeys(name); // driver.findElement(By.id("customer_lastname")).sendKeys(surname); // driver.findElement(By.id("passwd")).sendKeys("Qwerty"); // Select select = new Select(driver.findElement(By.id("days"))); // select.selectByValue("1"); // select = new Select(driver.findElement(By.id("months"))); // select.selectByValue("1"); // select = new Select(driver.findElement(By.id("years"))); // select.selectByValue("2000"); // driver.findElement(By.id("company")).sendKeys("Company"); // driver.findElement(By.id("address1")).sendKeys("Qwerty, 123"); // driver.findElement(By.id("address2")).sendKeys("zxcvb"); // driver.findElement(By.id("city")).sendKeys("Qwerty"); // select = new Select(driver.findElement(By.id("id_state"))); // select.selectByVisibleText("Colorado"); // driver.findElement(By.id("postcode")).sendKeys("12345"); // driver.findElement(By.id("other")).sendKeys("Qwerty"); // driver.findElement(By.id("phone")).sendKeys("12345123123"); // driver.findElement(By.id("phone_mobile")).sendKeys("12345123123"); // driver.findElement(By.id("alias")).sendKeys("hf"); // driver.findElement(By.id("submitAccount")).click(); // WebElement heading = wait.until(ExpectedConditions.visibilityOfElementLocated(By.cssSelector("h1"))); // // assertEquals(heading.getText(), "MY ACCOUNT"); // assertEquals(driver.findElement(By.className("account")).getText(), name + " " + surname); // assertTrue(driver.findElement(By.className("info-account")).getText().contains("Welcome to your account.")); // assertTrue(driver.findElement(By.className("logout")).isDisplayed()); // assertTrue(driver.getCurrentUrl().contains("controller=my-account")); // } // // @Test // public void logInTest() { // String fullName = "Joe Black"; // wait.until(ExpectedConditions.visibilityOfElementLocated(By.className("login"))).click(); // driver.findElement(By.id("email")).sendKeys(existingUserEmail); // driver.findElement(By.id("passwd")).sendKeys(existingUserPassword); // driver.findElement(By.id("SubmitLogin")).click(); // WebElement heading = wait.until(ExpectedConditions.visibilityOfElementLocated(By.cssSelector("h1"))); // // assertEquals("MY ACCOUNT", heading.getText()); // assertEquals(fullName, driver.findElement(By.className("account")).getText()); // assertTrue(driver.findElement(By.className("info-account")).getText().contains("Welcome to your account.")); // assertTrue(driver.findElement(By.className("logout")).isDisplayed()); // assertTrue(driver.getCurrentUrl().contains("controller=my-account")); // } // // @Test // public void checkoutTest() { // wait.until(ExpectedConditions.visibilityOfElementLocated(By.className("login"))).click(); // driver.findElement(By.id("email")).sendKeys(existingUserEmail); // driver.findElement(By.id("passwd")).sendKeys(existingUserPassword); // driver.findElement(By.id("SubmitLogin")).click(); // wait.until(ExpectedConditions.visibilityOfElementLocated(By.linkText("Women"))).click(); // driver.findElement(By.xpath("//a[@title='Faded Short Sleeve T-shirts']/ancestor::li")).click(); // driver.findElement(By.xpath("//a[@title='Faded Short Sleeve T-shirts']/ancestor::li")).click(); // wait.until(ExpectedConditions.visibilityOfElementLocated(By.name("Submit"))).click(); // wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//*[@id='layer_cart']//a[@class and @title='Proceed to checkout']"))).click(); // wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//*[contains(@class,'cart_navigation')]/a[@title='Proceed to checkout']"))).click(); // wait.until(ExpectedConditions.visibilityOfElementLocated(By.name("processAddress"))).click(); // wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("uniform-cgv"))).click(); // driver.findElement(By.name("processCarrier")).click(); // wait.until(ExpectedConditions.visibilityOfElementLocated(By.className("bankwire"))).click(); // wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//*[@id='cart_navigation']/button"))).click(); // WebElement heading = wait.until(ExpectedConditions.visibilityOfElementLocated(By.cssSelector("h1"))); // // assertEquals("ORDER CONFIRMATION", heading.getText()); // assertTrue(driver.findElement(By.xpath("//li[@class='step_done step_done_last four']")).isDisplayed()); // assertTrue(driver.findElement(By.xpath("//li[@id='step_end' and @class='step_current last']")).isDisplayed()); // assertTrue(driver.findElement(By.xpath("//*[@class='cheque-indent']/strong")).getText().contains("Your order on My Store is complete.")); // assertTrue(driver.getCurrentUrl().contains("controller=order-confirmation")); // } //}
[ "himanshu.arora1@publicissapient.com" ]
himanshu.arora1@publicissapient.com
2fe30574f99ee3f3b811a2c56aa31d0857aae8a7
7b4fd58090aa7013137ba2734d7f256b812861e1
/src/Ellias/rm/com/tencent/tmassistantsdk/openSDK/a/a.java
8965fa87d9ddbd00f78619685cf07e5563f84a5d
[]
no_license
daihuabin/Ellias
e37798a6a2e63454f80de512319ece885b6a2237
fd010991a5677e6aa104b927b82fc3d6da801887
refs/heads/master
2023-03-16T21:12:33.908495
2020-02-10T15:42:22
2020-02-10T15:42:22
null
0
0
null
null
null
null
UTF-8
Java
false
false
211
java
package com.tencent.tmassistantsdk.openSDK.a; public class a { } /* Location: D:\rm_src\classes_dex2jar\ * Qualified Name: com.tencent.tmassistantsdk.openSDK.a.a * JD-Core Version: 0.6.0 */
[ "sevarsti@sina.com" ]
sevarsti@sina.com
a6e91066c3f647facae83c092d9d7fb127be8cfa
0964f785c0aed268c21d80425fb0113bd83b0416
/src/main/java/main/App.java
a2d2b15ee116595e3f7b6e698a75ab7853157f44
[]
no_license
skbandari/spring
fd05e9054fe6cb36854ea6903ea2ecd74dabd15f
9214e28dfdbaa4c834db9a8cbdba66348db31855
refs/heads/master
2020-03-29T19:35:18.067788
2020-03-04T23:20:36
2020-03-04T23:20:36
150,271,113
0
0
null
null
null
null
UTF-8
Java
false
false
848
java
package main; import beans.MyBean; import config.AppContextConfig; import org.springframework.context.ApplicationContext; import org.springframework.context.ConfigurableApplicationContext; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; public class App { public static void main(String[] args) { //Instantiate the IOC Container // ApplicationContext context = new ClassPathXmlApplicationContext("app-context-config.xml"); ApplicationContext context = new AnnotationConfigApplicationContext(AppContextConfig.class); //Exctract the MyBean bean MyBean myBean = context.getBean("myBean", MyBean.class); myBean.hello(); ((ConfigurableApplicationContext) context).close(); } }
[ "saikrishnabandari@hotmail.co.uk" ]
saikrishnabandari@hotmail.co.uk
2d03b5d33fcfeaf6b0f9c3afc55e87bb3b4b03e8
050b9db1768fa74464678d92314e12a9a7984254
/src/main/java/com/lwei/thread/singleton/Run1.java
f926a3ef5db39eecb1c4a10502067ff7d67ef7b3
[]
no_license
guangyongluo/JavaStudy
54532e87f87ae2a0c5a76e4ad073b3364fd4dfda
f997f725e76781b3217fac5294fc5a3e998f9318
refs/heads/master
2021-01-11T03:07:54.734269
2018-05-16T13:03:06
2018-05-16T13:03:06
71,088,905
1
1
null
null
null
null
UTF-8
Java
false
false
163
java
package com.lwei.thread.singleton; public class Run1 { public static void main(String[] args) { MyThread1 t1 = new MyThread1(); t1.start(); } }
[ "llooww@mail.ustc.edu.cn" ]
llooww@mail.ustc.edu.cn
51ff1b3de141f78ffe890ae2d8cca9a877a56fac
058fc75527f8cec75ef7f0f794130bd291e798f7
/src/main/java/com/assisisolutions/blog/wiremockexamples/UserService.java
5ebf62525519263172243414719aa5df47d05473
[ "Apache-2.0" ]
permissive
gibbonsite/wiremock-examples
5b331c3f0dc8556df18b4df9510fe06a46fc06f9
af32bcb8a17503a3934657216e8d3da36d37e430
refs/heads/main
2023-03-18T03:09:16.701669
2021-02-20T16:42:28
2021-02-20T17:41:05
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,853
java
package com.assisisolutions.blog.wiremockexamples; import org.springframework.beans.factory.annotation.Value; import org.springframework.core.ParameterizedTypeReference; import org.springframework.http.HttpEntity; import org.springframework.http.HttpMethod; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Service; import org.springframework.web.client.RestTemplate; import java.net.URI; import java.util.List; @Service public class UserService { private String baseUrl; private RestTemplate restTemplate; public UserService(@Value("${userservice.url}") String baseUrl, RestTemplate restTemplate) { this.baseUrl = baseUrl; this.restTemplate = restTemplate; } public List<User> getUsers() { ResponseEntity<List<User>> responseEntity = restTemplate.exchange( baseUrl + "/users", HttpMethod.GET, null, new ParameterizedTypeReference<>() { }); return responseEntity.getBody(); } public List<User> getUsersByName(String username) { ResponseEntity<List<User>> responseEntity = restTemplate.exchange( baseUrl + "/users?name={name}", HttpMethod.GET, null, new ParameterizedTypeReference<>() { }, username); return responseEntity.getBody(); } public String createUser(String username) { ResponseEntity<Void> responseEntity = restTemplate.exchange( baseUrl + "/users", HttpMethod.POST, new HttpEntity<>(new User(username)), Void.class); URI location = responseEntity.getHeaders().getLocation(); int p = location.getPath().lastIndexOf('/'); return location.getPath().substring(p + 1); } }
[ "frans.flippo@momentum.co.za" ]
frans.flippo@momentum.co.za
1868b82d329cfbc5bcf08f2e9f1add8df3ddbf79
92b8d8f6274941543cf41c19bc40d0a41be44fe6
/gnu/expr/KawaScriptEngine.java
835b799d1cf0ba66e8f655aec908dc2b8fd4286c
[ "MIT" ]
permissive
spurious/kawa-mirror
02a869242ae6a4379a3298f10a7a8e610cf78529
6abc1995da0a01f724b823a64c846088059cd82a
refs/heads/master
2020-04-04T06:23:40.471010
2017-01-16T16:54:58
2017-01-16T16:54:58
51,633,398
6
0
null
null
null
null
UTF-8
Java
false
false
4,893
java
package gnu.expr; import javax.script.*; import java.io.*; import gnu.mapping.*; import gnu.kawa.io.CharArrayInPort; import gnu.kawa.io.InPort; import gnu.kawa.io.OutPort; import gnu.kawa.io.Path; import gnu.text.SourceError; import gnu.text.SourceMessages; import gnu.text.SyntaxException; public class KawaScriptEngine extends AbstractScriptEngine implements Compilable //, Invocable { AbstractScriptEngineFactory factory; public KawaScriptEngine(AbstractScriptEngineFactory factory) { this.factory = factory; context.setBindings(createBindings(), ScriptContext.ENGINE_SCOPE); context.setReader(InPort.inDefault()); context.setWriter(OutPort.outDefault()); context.setErrorWriter(OutPort.errDefault()); } public AbstractScriptEngineFactory getFactory() { return factory; } public Bindings createBindings() { SimpleEnvironment env = new SimpleEnvironment(); Bindings bindings = new KawaScriptBindings(env); return bindings; } public Object eval(Reader in, ScriptContext context) throws ScriptException { return eval(in instanceof InPort ? (InPort) in : new InPort(in), context); } public Object eval(String string, ScriptContext context) throws ScriptException { return eval(new CharArrayInPort(string), context); } public Object eval(InPort in, ScriptContext context) throws ScriptException { KawaCompiledScript compiled = compile(in, context); return compiled.eval(context); } public KawaCompiledScript compile(String string) throws ScriptException { return compile(new CharArrayInPort(string), getContext()); } public KawaCompiledScript compile(Reader in) throws ScriptException { return compile(in instanceof InPort ? (InPort) in : new InPort(in), getContext()); } public KawaCompiledScript compile(InPort port, ScriptContext context) throws ScriptException { SourceMessages messages = new SourceMessages(); try { return compile(port, context, messages); } catch (SyntaxException ex) { messages = ex.getMessages(); // Presumably a no-op. SourceError err = messages.getErrors(); if (messages.seenErrors()) { while (err.severity == 'w' && err.next != null) err = err.next; } throw new ScriptException(err.message, err.filename, err.line, err.column); } catch (Exception ex) { throw new ScriptException(ex); } } public KawaCompiledScript compile(InPort port, ScriptContext context, SourceMessages messages) throws SyntaxException, IOException { Language saveLang = Language.setSaveCurrent(factory.language); Environment env = factory.getEnvironment(context); Environment saveEnv = Environment.setSaveCurrent(env); try { Compilation comp = factory.language.parse(port, messages, Language.PARSE_IMMEDIATE|Language.PARSE_INTERACTIVE_MODULE); if (messages.seenErrors()) throw new SyntaxException(messages); ModuleExp mexp = comp.getModule(); String filename = (String) get(ScriptEngine.FILENAME); java.net.URL url; if (filename != null) url = Path.toURL(filename); else if (port instanceof CharArrayInPort) url = null; else { Path portpath = port.getPath(); url = portpath == null ? null : portpath.toURL(); } Writer errorWriter = context.getErrorWriter(); OutPort errorPort = (errorWriter instanceof OutPort ? (OutPort) errorWriter : new OutPort(errorWriter)); Object inst = mexp.evalModule1(env, comp, url, errorPort); return new KawaCompiledScript(this, mexp, inst); } finally { Language.restoreCurrent(saveLang); Environment.restoreCurrent(saveEnv); } } } class KawaCompiledScript extends CompiledScript { KawaScriptEngine engine; CompiledModule cmodule; public KawaCompiledScript(KawaScriptEngine engine, ModuleExp mexp, Object cookie) { this.engine = engine; this.cmodule = new CompiledModule(mexp, cookie, engine.factory.language); } public Object eval(ScriptContext context) throws ScriptException { try { return cmodule.evalToResultValue(engine.factory.getEnvironment(context), CallContext.getInstance()); } catch (Throwable ex) { if (ex instanceof Exception) throw new ScriptException((Exception) ex); else if (ex instanceof Error) throw (Error) ex; else throw new RuntimeException(ex); } } public KawaScriptEngine getEngine() { return engine; } }
[ "bothner@5e0a886f-7f45-49c5-bc19-40643649e37f" ]
bothner@5e0a886f-7f45-49c5-bc19-40643649e37f
798e9d939aa05e1031eadf43b4d954d3047d95bd
36ce3ad90952d215c219311b01c9bed561a7ded8
/src/main/java/lib/logging/LogManager.java
fd216a78df5a3b15a0089f22bf6f466b0931c3db
[]
no_license
Team3230/TestTrajLib
c74606b9a3d92a51889781b32c9fbf6b1c31c095
710786402d92983607d95477a27a7961aeaf621c
refs/heads/master
2020-09-26T09:43:49.295314
2019-12-06T02:27:57
2019-12-06T02:27:57
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,731
java
/*----------------------------------------------------------------------------*/ /* Copyright (c) 2018 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of */ /* the project. */ /*----------------------------------------------------------------------------*/ package lib.logging; import java.util.HashMap; /** * A system in which to manage all logs going into the Robot.java class in order to allow all logs to be passed through a single method */ public class LogManager{ private HashMap<String, LoggableClass> activeLogs; private Object lock = new Object(); private static LogManager mInstance; public static LogManager getInstance(){ if(mInstance == null){ mInstance = new LogManager(); } return mInstance; } private LogManager(){ activeLogs = new HashMap<>(); } public synchronized void addLoggable(LoggableClass Loggable) { synchronized (lock) { if (Loggable != null && !activeLogs.containsKey(Loggable.getClass().getName())) { activeLogs.put(Loggable.getClass().getName(), Loggable); } } } /** * Gets the logPeriodicIO() method from each logger */ public void logPeriodicIO(){ activeLogs.forEach((k, v) -> v.logPeriodicIO()); } /** * Get the loggers out of the created hash maps * @return the active loggers */ public HashMap<String, LoggableClass> getLoggers(){ return activeLogs; } }
[ "akcopinga@gmail.com" ]
akcopinga@gmail.com
96706200b2c05b2306b9ac8b77172ab2499f13e7
73d34ab881787a27686ce6dc4642c5cb1a33acb1
/src/main/java/com/lebo/repository/mybatis/GiveGoodsDao.java
9c643c1084252a7eb0201e686a9cf28d4b80f8cb
[]
no_license
wei345/lebo
400f9748b86496e37fc0c0936818d98a8383badb
0a00fd4e5e2e3e850e1cc44b8bbf3d6d55bf7c3c
refs/heads/master
2021-01-10T21:14:52.106586
2014-03-08T07:22:29
2014-03-08T07:22:29
38,961,797
0
0
null
null
null
null
UTF-8
Java
false
false
271
java
package com.lebo.repository.mybatis; import com.lebo.entity.GiveGoods; import com.lebo.repository.MyBatisRepository; /** * @author: Wei Liu * Date: 13-11-5 * Time: PM2:58 */ @MyBatisRepository public interface GiveGoodsDao { void insert(GiveGoods giveGoods); }
[ "weiliu345@gmail.com" ]
weiliu345@gmail.com
b0208762047dc389c275d84b202ef3d3425c68ca
c2668eadf110e33d07913b818d0884e81563b5af
/Marketplace/src/java/Marketplace/Delete.java
e52220a9f79015eb228905c1e77e94acd43ce456
[]
no_license
utamid/TugasBesar2_JavaAndWebService
9006ae8599e1f33b6fa2fd7b02ea0e096ee2900c
fab923083c8c33a885e5f0f2dbca2b96cbd14fb9
refs/heads/master
2021-01-01T17:07:26.306210
2016-11-26T05:36:41
2016-11-26T05:36:41
98,003,153
0
0
null
null
null
null
UTF-8
Java
false
false
1,569
java
/* * 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 Marketplace; import connection.connectDB; import connection.request; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.SQLException; import java.util.ArrayList; import java.util.logging.Level; import java.util.logging.Logger; import javax.jws.WebService; import javax.jws.WebMethod; import javax.jws.WebParam; import map.map; /** * * @author User */ @WebService(serviceName = "Delete") public class Delete { /** * Web service operation */ @WebMethod(operationName = "deleteproduct") public map deleteproduct(@WebParam(name = "token") String token, @WebParam(name = "id_product") String id_product) { request req = new request(); ArrayList<String> vtoken = req.requestValidatedToken(token); connectDB connDB = new connectDB(); Connection conn = connDB.connectMP(); int i = 0; PreparedStatement sql; try { sql = conn.prepareStatement("UPDATE product SET deleted = true WHERE id_product = ?"); sql.setString(1, id_product); i = sql.executeUpdate(); } catch (SQLException ex) { Logger.getLogger(Delete.class.getName()).log(Level.SEVERE, null, ex); } map m = new map(vtoken.get(0), vtoken.get(1), i, null, null, null); connDB.closeConn(); return m; } }
[ "Vitra Chandra" ]
Vitra Chandra
5fcb34bcb2b175938ebf8dff9665fa9ae74b8cc5
82681d6579109cca624ac68a7966b176dfaa9bbb
/sample/src/test/java/LOOPS/LOOPS/LargestElement.java
852125f64987217eb9a3b8332e3ce29989f9b2a3
[]
no_license
Gundavenkatesh007/NEW-JAVA-PROJECT1
aedf14440b237e3ed26133eb40569e63737f531a
1fc6ea23f3d9fbe0a1e08ccccdba31f196411d17
refs/heads/master
2023-08-03T21:02:42.072264
2021-09-20T13:30:08
2021-09-20T13:30:08
408,473,386
0
0
null
null
null
null
UTF-8
Java
false
false
325
java
package LOOPS.LOOPS; public class LargestElement { public static void main(String[] args) { int arr[] = {50,45,30,90,10}; int max=arr[0]; for(int i = 0;i < arr.length;i++) { if(arr[i]>max) max=arr[i]; } System.out.println("the largest number in the array :" +max); } }
[ "admin@DESKTOP-L0BKA5N.Dlink" ]
admin@DESKTOP-L0BKA5N.Dlink
ef9f69a20fe80911b7d86786b5a0a00a3f24ae9c
e7f99e04974982256eb973b547495d25fc6dacc5
/src/main/java/core/exceptions/CloudErrorType.java
78099ea6d99feb1184457bcc331e3d8eaba3988d
[]
no_license
vladmunthiu/dasein-nextgen
ac73c81b6738c788278ba8ec2f6e02f540e311cf
36e337ece425707d97db86e4666643e76417d9c9
refs/heads/master
2021-01-10T01:28:25.145186
2016-02-24T15:23:25
2016-02-24T15:23:25
52,278,856
0
0
null
null
null
null
UTF-8
Java
false
false
174
java
package core.exceptions; /** * Created by vmunthiu on 10/12/2015. */ public enum CloudErrorType { GENERAL, COMMUNICATION, AUTHENTICATION, THROTTLING, CAPACITY, QUOTA }
[ "vlad_munthiu@dell.com" ]
vlad_munthiu@dell.com
9f98beeeed755384ed2ce611475950e6ea483393
bf7b4c21300a8ccebb380e0e0a031982466ccd83
/middlewareConcepts2014-master/Assignment3/lib/jacorb-3.4/src/org/jacorb/poa/gui/poa/AOMPanel.java
0aad949697bb2a23b067d211e249ad1d9b29bfee
[]
no_license
Puriakshat/Tuberlin
3fe36b970aabad30ed95e8a07c2f875e4912a3db
28dcf7f7edfe7320c740c306b1c0593a6c1b3115
refs/heads/master
2021-01-19T07:30:16.857479
2014-11-06T18:49:16
2014-11-06T18:49:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
9,085
java
package org.jacorb.poa.gui.poa; /* * JacORB - a free Java ORB * * Copyright (C) 1997-2012 Gerald Brose / The JacORB Team. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the Free * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ import org.jacorb.poa.gui.beans.FillLevelBar; /** * @author Reimo Tiedemann, FU Berlin * @version 1.01, 05/07/99, RT */ public class AOMPanel extends java.awt.Panel implements java.awt.event.ActionListener { private DetailsButtonController controller; private java.awt.Button ivjDetailsButton = null; private org.jacorb.poa.gui.beans.FillLevelBar ivjFillLevelBar = null; private java.awt.Label ivjLabel1 = null; private java.awt.Label ivjLabel2 = null; /** * Comment */ private void _actionDetailsButtonPressed() { if (controller != null) { controller._actionDetailsButtonPressed("aom"); } } /** * Method to handle events for the ActionListener interface. * @param e java.awt.event.ActionEvent */ /* WARNING: THIS METHOD WILL BE REGENERATED. */ public void actionPerformed(java.awt.event.ActionEvent e) { // user code begin {1} // user code end if ((e.getSource() == getDetailsButton()) ) { connEtoC1(e); } // user code begin {2} // user code end } /** * connEtoC1: (DetailsButton.action.actionPerformed(java.awt.event.ActionEvent) --> AOMPanel.detailsButtonPressed()V) * @param arg1 java.awt.event.ActionEvent */ /* WARNING: THIS METHOD WILL BE REGENERATED. */ private void connEtoC1(java.awt.event.ActionEvent arg1) { try { // user code begin {1} // user code end this._actionDetailsButtonPressed(); // user code begin {2} // user code end } catch (java.lang.Throwable ivjExc) { // user code begin {3} // user code end handleException(ivjExc); } } FillLevelBar _getAOMBar() { return getFillLevelBar(); } /** * Return the DetailsButton property value. * @return java.awt.Button */ /* WARNING: THIS METHOD WILL BE REGENERATED. */ private java.awt.Button getDetailsButton() { if (ivjDetailsButton == null) { try { ivjDetailsButton = new java.awt.Button(); ivjDetailsButton.setName("DetailsButton"); ivjDetailsButton.setLocation(33, 170); ivjDetailsButton.setBackground(java.awt.SystemColor.control); ivjDetailsButton.setSize(23, 23); ivjDetailsButton.setFont(new java.awt.Font("dialog", 0, 8)); ivjDetailsButton.setActionCommand("..."); ivjDetailsButton.setLabel("..."); // user code begin {1} // user code end } catch (java.lang.Throwable ivjExc) { // user code begin {2} // user code end handleException(ivjExc); } }; return ivjDetailsButton; } /** * Return the FillLevelBar property value. * @return org.jacorb.poa.gui.beans.FillLevelBar */ /* WARNING: THIS METHOD WILL BE REGENERATED. */ private org.jacorb.poa.gui.beans.FillLevelBar getFillLevelBar() { if (ivjFillLevelBar == null) { try { ivjFillLevelBar = new org.jacorb.poa.gui.beans.FillLevelBar(); ivjFillLevelBar.setName("FillLevelBar"); ivjFillLevelBar.setLocation(32, 35); ivjFillLevelBar.setBackground(java.awt.SystemColor.control); ivjFillLevelBar.setSize(50, 130); // user code begin {1} // user code end } catch (java.lang.Throwable ivjExc) { // user code begin {2} // user code end handleException(ivjExc); } }; return ivjFillLevelBar; } /** * Return the Label1 property value. * @return java.awt.Label */ /* WARNING: THIS METHOD WILL BE REGENERATED. */ private java.awt.Label getLabel1() { if (ivjLabel1 == null) { try { ivjLabel1 = new java.awt.Label(); ivjLabel1.setName("Label1"); ivjLabel1.setLocation(10, 10); ivjLabel1.setText("Active Object"); ivjLabel1.setBackground(java.awt.SystemColor.control); ivjLabel1.setSize(70, 12); ivjLabel1.setForeground(java.awt.Color.black); ivjLabel1.setFont(new java.awt.Font("dialog", 2, 10)); ivjLabel1.setAlignment(1); // user code begin {1} // user code end } catch (java.lang.Throwable ivjExc) { // user code begin {2} // user code end handleException(ivjExc); } }; return ivjLabel1; } /** * Return the Label2 property value. * @return java.awt.Label */ /* WARNING: THIS METHOD WILL BE REGENERATED. */ private java.awt.Label getLabel2() { if (ivjLabel2 == null) { try { ivjLabel2 = new java.awt.Label(); ivjLabel2.setName("Label2"); ivjLabel2.setLocation(10, 22); ivjLabel2.setText("Map"); ivjLabel2.setBackground(java.awt.SystemColor.control); ivjLabel2.setSize(70, 12); ivjLabel2.setForeground(java.awt.Color.black); ivjLabel2.setFont(new java.awt.Font("dialog", 2, 10)); ivjLabel2.setAlignment(1); // user code begin {1} // user code end } catch (java.lang.Throwable ivjExc) { // user code begin {2} // user code end handleException(ivjExc); } }; return ivjLabel2; } /** * Called whenever the part throws an exception. * @param exception java.lang.Throwable */ private void handleException(Throwable exception) { /* Uncomment the following lines to print uncaught exceptions to stdout */ // System.out.println("--------- UNCAUGHT EXCEPTION ---------"); // exception.printStackTrace(System.out); } /** * Initializes connections */ /* WARNING: THIS METHOD WILL BE REGENERATED. */ private void initConnections() { // user code begin {1} // user code end getDetailsButton().addActionListener(this); } /** * Initialize the class. */ /* WARNING: THIS METHOD WILL BE REGENERATED. */ private void initialize() { // user code begin {1} // user code end setName("AOMPanel"); setLayout(null); setBackground(java.awt.SystemColor.control); setSize(90, 200); add(getLabel1(), getLabel1().getName()); add(getLabel2(), getLabel2().getName()); add(getFillLevelBar(), getFillLevelBar().getName()); add(getDetailsButton(), getDetailsButton().getName()); initConnections(); // user code begin {2} // user code end } void _init(DetailsButtonController _controller) { controller = _controller; } /** * AOMPanel constructor comment. * @param layout java.awt.LayoutManager */ public AOMPanel(java.awt.LayoutManager layout) { super(layout); } /** * main entrypoint - starts the part when it is run as an application * @param args java.lang.String[] */ public static void main(java.lang.String[] args) { try { java.awt.Frame frame; try { Class aFrameClass = Class.forName("com.ibm.uvm.abt.edit.TestFrame"); frame = (java.awt.Frame)aFrameClass.newInstance(); } catch (java.lang.Throwable ivjExc) { frame = new java.awt.Frame(); } AOMPanel aAOMPanel; aAOMPanel = new AOMPanel(); frame.add("Center", aAOMPanel); frame.setSize(aAOMPanel.getSize()); frame.setVisible(true); } catch (Throwable exception) { System.err.println("Exception occurred in main() of java.awt.Panel"); exception.printStackTrace(System.out); } } public void paint(java.awt.Graphics g) { g.setColor(getBackground()); g.fill3DRect(0, 0, getBounds().width, getBounds().height, true); } /** * Constructor */ /* WARNING: THIS METHOD WILL BE REGENERATED. */ public AOMPanel() { super(); initialize(); } }
[ "puri.akshat@gmail.com" ]
puri.akshat@gmail.com
347dbdcc15e82bfb79c169bbeadda035733634f1
7f061646f91ad3136671b39c3eb041aec277ac0a
/src/ca/ucalgary/cpsc/ase/common/entity/Invocation.java
97105377e2cdc22a9252f33c40198f59cb202049
[]
no_license
nurolahzade/tdr_common
10c6f3cd2c5adf80a8cca0ff92132a1ae2123140
ab894d46530f877192cb8dfc862862121e5569b3
refs/heads/master
2021-01-10T05:47:46.755386
2014-01-27T05:53:56
2014-01-27T05:53:56
51,035,620
0
0
null
null
null
null
UTF-8
Java
false
false
78
java
package ca.ucalgary.cpsc.ase.common.entity; public interface Invocation { }
[ "mnurolah@ucalgary.ca" ]
mnurolah@ucalgary.ca
ca8b64514bd6e25f4cae384a494084f341133d1d
b61d8e7909d38552c7e01f0707e87ea016b83745
/schetau_server/src/main/java/io/github/datacanvasio/schetau/db/model/Signal.java
ac84a05ffb1b88951844168f59da2c37c3eddebe
[ "Apache-2.0" ]
permissive
DataCanvasIO/schetau
bf06f552fce9b35264a0d3ea6defd675a9d952b2
c6d65df989c68806a4e339211dd683020a5a83cc
refs/heads/master
2023-03-07T21:03:42.243505
2021-02-26T10:00:13
2021-02-26T10:00:13
327,284,476
1
0
null
null
null
null
UTF-8
Java
false
false
781
java
/* * Copyright 2020 DataCanvas * * 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.github.datacanvasio.schetau.db.model; import lombok.Data; @Data public class Signal { private Long signalId; private String signature; private Long countDown; }
[ "jiaoyg@zetyun.com" ]
jiaoyg@zetyun.com
41c7194d28234a71af054b05521a9d7cd9eda69f
e21dd83a2f36bef9927ed57af92fffff123c5301
/java/by/example/root/myapplication22/NoteActivity.java
4f6072367cdd4a2b2d89c7e012c4efaaf6a34ee0
[]
no_license
sairJt/MyApplication22
8daaaba6139c00fe8c75ae7a385ae838933a04f8
1b83eb787a35f7b19aa13141cf0828ed7f2598ef
refs/heads/master
2021-05-04T22:19:46.401083
2018-02-05T18:37:09
2018-02-05T18:37:09
120,028,198
0
0
null
null
null
null
UTF-8
Java
false
false
14,675
java
package by.example.root.myapplication22; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.database.sqlite.SQLiteException; import android.graphics.Color; import android.graphics.Point; import android.graphics.Typeface; import android.os.Build; import android.os.Bundle; import android.speech.RecognizerIntent; import android.support.v7.app.AppCompatActivity; import android.text.InputType; import android.text.Spannable; import android.text.Spanned; import android.text.SpannedString; import android.text.TextUtils; import android.text.style.ForegroundColorSpan; import android.text.style.StyleSpan; import android.text.style.UnderlineSpan; import android.view.ActionMode; import android.view.Display; import android.view.Menu; import android.view.MenuItem; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import android.view.WindowManager; import android.view.inputmethod.InputMethodManager; import android.widget.EditText; import android.widget.LinearLayout; import java.util.ArrayList; import java.util.Date; public class NoteActivity extends AppCompatActivity { private boolean isDrawModeOn; private boolean isTextModeOn; private DrawingView drawingView; private static final float SMALL_BRUSH = 5, MEDIUM_BRUSH = 10, LARGE_BRUSH = 20; private static final int REQUEST_CODE = 1234; private DatabaseHandler dbHandler; private static final double MENU_MARGIN_RELATIVE_MODIFIER = 0.3; private LinearLayout mSliderLayout; private LinearLayout mDrawLayout; private int noteID; private EditText noteTitle; private EditText editText; private Spannable spannable; private AlertDialog alertDialogSaveNote; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_note); noteTitle = (EditText) findViewById(R.id.activity_note_title); editText = (EditText) findViewById(R.id.editText); mSliderLayout = (LinearLayout) findViewById(R.id.formatTextSlider); mDrawLayout = (LinearLayout) findViewById(R.id.drawPanelSlider); drawingView = (DrawingView) findViewById(R.id.drawing); isDrawModeOn = false; isTextModeOn = true; ViewGroup.LayoutParams paramsTextFormat = mSliderLayout.getLayoutParams(); paramsTextFormat.height = calculateMenuMargin(); ViewGroup.LayoutParams paramsDrawPanel = mDrawLayout.getLayoutParams(); paramsDrawPanel.height = calculateMenuMargin(); dbHandler = new DatabaseHandler(getApplicationContext()); spannable = editText.getText(); alertDialogSaveNote = initAlertDialogSaveNote(); Intent intent = getIntent(); noteID = Integer.parseInt(intent.getStringExtra("id")); disableSoftInputFromAppearing(editText); manageContextMenuBar(editText); if (noteID != -1) { loadNote(noteID); } editText.setOnTouchListener(new View.OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { if (isDrawModeOn) { drawingView.onTouchEvent(event); return true; } else { return false; } } }); } @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_note, menu); return true; } private AlertDialog initAlertDialogSaveNote() { AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle(this.getString(R.string.save_note_title)).setMessage(this.getString(R.string.save_note_confirmation)); builder.setPositiveButton(this.getString(R.string.ok_bt), new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { finish(); } }); builder.setNegativeButton(this.getString(R.string.cancel_bt), new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { } }); return builder.create(); } @Override public void onBackPressed() { View formatTextSliderView = findViewById(R.id.formatTextSlider); View drawPanelSliderView = findViewById(R.id.drawPanelSlider); if (formatTextSliderView.getVisibility() == View.VISIBLE) { formatTextSliderView.setVisibility(View.GONE); } else if (drawPanelSliderView.getVisibility() == View.VISIBLE) { drawPanelSliderView.setVisibility(View.GONE); } else { saveOrUpdateNote(null); } } public void toggleTextFormatMenu( MenuItem item) { View formatTextSliderView = findViewById(R.id.formatTextSlider); View drawPanelSliderView = findViewById(R.id.drawPanelSlider); if (formatTextSliderView.getVisibility() == View.VISIBLE) { formatTextSliderView.setVisibility(View.GONE); } else { if (drawPanelSliderView.getVisibility() == View.VISIBLE) { drawPanelSliderView.setVisibility(View.GONE); } formatTextSliderView.setVisibility(View.VISIBLE); } setDrawModeOn(formatTextSliderView.getVisibility() != View.VISIBLE && drawPanelSliderView.getVisibility() == View.VISIBLE); } public void toggleDrawMenu( MenuItem item) { View formatTextSliderView = findViewById(R.id.formatTextSlider); View drawPanelSliderView = findViewById(R.id.drawPanelSlider); if (drawPanelSliderView.getVisibility() == View.VISIBLE) { drawPanelSliderView.setVisibility(View.GONE); } else { if (formatTextSliderView.getVisibility() == View.VISIBLE) { formatTextSliderView.setVisibility(View.GONE); } hideSoftKeyboard(); drawPanelSliderView.setVisibility(View.VISIBLE); } setDrawModeOn(drawPanelSliderView.getVisibility() == View.VISIBLE); } private void setDrawModeOn(boolean isOn) { isDrawModeOn = isOn; isTextModeOn = !isOn; } private int calculateMenuMargin() { WindowManager wm = (WindowManager) getSystemService(Context.WINDOW_SERVICE); Display display = wm.getDefaultDisplay(); Point size = new Point(); display.getSize(size); int height = size.y; return (int) Math.round(height * MENU_MARGIN_RELATIVE_MODIFIER); } public void toggleKeyboard( MenuItem item) { InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0); if (findViewById(R.id.drawPanelSlider).getVisibility() == View.VISIBLE) { findViewById(R.id.drawPanelSlider).setVisibility(View.GONE); } } private void hideSoftKeyboard() { if (this.getCurrentFocus() != null) { try { InputMethodManager imm = (InputMethodManager) this.getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(this.getCurrentFocus().getApplicationWindowToken(), 0); } catch (RuntimeException e) { } } } private static void disableSoftInputFromAppearing(EditText editText) { if (Build.VERSION.SDK_INT >= 16) { editText.setRawInputType(InputType.TYPE_CLASS_TEXT); editText.setTextIsSelectable(true); } else { editText.setRawInputType(InputType.TYPE_NULL); editText.setFocusable(true); } } private void manageContextMenuBar(EditText editText) { editText.setCustomSelectionActionModeCallback(new ActionMode.Callback() { public boolean onPrepareActionMode(ActionMode mode, Menu menu) { return true; } public void onDestroyActionMode(ActionMode mode) { if (findViewById(R.id.formatTextSlider).getVisibility() == View.VISIBLE) { findViewById(R.id.formatTextSlider).setVisibility(View.GONE); } } public boolean onCreateActionMode(ActionMode mode, Menu menu) { if (findViewById(R.id.formatTextSlider).getVisibility() == View.GONE) { findViewById(R.id.formatTextSlider).setVisibility(View.VISIBLE); } return true; } public boolean onActionItemClicked(ActionMode mode, MenuItem item) { return false; } }); } public void formatTextActionPerformed(View view) { EditText editTextLocal = (EditText) findViewById(R.id.editText); spannable = editTextLocal.getText(); int posStart = editTextLocal.getSelectionStart(); int posEnd = editTextLocal.getSelectionEnd(); if (view.getTag().toString().equals("bold")) { spannable.setSpan(new StyleSpan(Typeface.BOLD), posStart, posEnd, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); } else if (view.getTag().toString().equals("italic")) { spannable.setSpan(new StyleSpan(Typeface.ITALIC), posStart, posEnd, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); } else if (view.getTag().toString().equals("underline")) { spannable.setSpan(new UnderlineSpan(), posStart, posEnd, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); } else if (view.getTag().toString().equals("textBlack")) { spannable.setSpan(new ForegroundColorSpan(Color.BLACK), posStart, posEnd, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); } else if (view.getTag().toString().equals("textRed")) { spannable.setSpan(new ForegroundColorSpan(Color.RED), posStart, posEnd, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); } else if (view.getTag().toString().equals("textBlue")) { spannable.setSpan(new ForegroundColorSpan(Color.BLUE), posStart, posEnd, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); } else if (view.getTag().toString().equals("textGreen")) { spannable.setSpan(new ForegroundColorSpan(Color.GREEN), posStart, posEnd, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); } else if (view.getTag().toString().equals("textYellow")) { spannable.setSpan(new ForegroundColorSpan(Color.YELLOW), posStart, posEnd, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); } editTextLocal.setText(spannable); } private void loadNote(int noteID) { try { Note n = dbHandler.getNote(noteID); editText.setText(n.getSpannable()); editText.setSelection(editText.getText().toString().length()); noteTitle.setText(n.getTitle()); drawingView.setBitmap(n.getImage()); }catch (SQLiteException e){ e.printStackTrace(); } } public void saveOrUpdateNote(MenuItem menu) { spannable = editText.getText(); String title = noteTitle.getText().toString(); Note note = new Note(); note.setTitle(title); note.setSpannable(spannable); note.setImage(drawingView.getCanvasBitmap()); note.setDateUpdate(new Date()); if (noteID != -1) { note.setId(noteID); } new SaveOrUpdateNoteTask(this).execute(note); hideSoftKeyboard(); finish(); } public void speakButtonClicked(MenuItem menuItem) { startVoiceRecognitionActivity(); } private void startVoiceRecognitionActivity() { Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH); intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM); intent.putExtra(RecognizerIntent.EXTRA_PROMPT, R.string.voice_hint); startActivityForResult(intent, REQUEST_CODE); } @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == REQUEST_CODE && resultCode == RESULT_OK) { ArrayList<String> matches = data.getStringArrayListExtra( RecognizerIntent.EXTRA_RESULTS); if (matches.size() > 0) { if (editText.getText().toString().length() == 0) { editText.setText(matches.get(0)); editText.setSelection(editText.getText().toString().length()); } else { Spanned spanText = (SpannedString) TextUtils.concat(editText.getText(), " " + matches.get(0)); editText.setText(spanText); editText.setSelection(editText.getText().toString().length()); } } } super.onActivityResult(requestCode, resultCode, data); } public void changeColor(View v) { if (v.getTag().toString().equals("black")) { drawingView.setPaintColor(Color.BLACK); } else if (v.getTag().toString().equals("red")) { drawingView.setPaintColor(Color.RED); } else if (v.getTag().toString().equals("blue")) { drawingView.setPaintColor(Color.BLUE); } else if (v.getTag().toString().equals("green")) { drawingView.setPaintColor(Color.GREEN); } else if (v.getTag().toString().equals("yellow")) { drawingView.setPaintColor(Color.YELLOW); } } public void changeBrushSize(View v) { if (v.getTag().toString().equals("small")) { drawingView.setBrushSize(SMALL_BRUSH); } else if (v.getTag().toString().equals("medium")) { drawingView.setBrushSize(MEDIUM_BRUSH); } else if (v.getTag().toString().equals("large")) { drawingView.setBrushSize(LARGE_BRUSH); } } public void eraseOrPaintMode(View v) { drawingView.setErase(v.getTag().toString().equals("erase")); } public void wipeCanvas(View v) { drawingView.startNew(); } }
[ "noreply@github.com" ]
sairJt.noreply@github.com