Skip to content

Commit 677c71d

Browse files
committed
all: reindent repository
1 parent 5ebdd80 commit 677c71d

File tree

540 files changed

+70103
-67825
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

540 files changed

+70103
-67825
lines changed

Sources/sdk-stubs/src/main/java/sun/misc/Unsafe.java

Lines changed: 147 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -32,86 +32,153 @@
3232
* embedded in the MessagePack library. At runtime, Unsafe class is intentionally missing as
3333
* MessagePack use reflection to detect it at runtime.
3434
*/
35-
public class Unsafe
36-
{
37-
public Object allocateInstance(Class<?> clazz) throws InstantiationException { /* null implementation */ return null; }
35+
public class Unsafe {
36+
37+
public Object allocateInstance(Class<?> clazz) throws InstantiationException {
38+
/* null implementation */return null;
39+
}
40+
41+
public int arrayIndexScale(Class arrayClass) {
42+
/* null implementation */return 0;
43+
}
44+
45+
public int arrayBaseOffset(Class arrayClass) {
46+
/* null implementation */return 0;
47+
}
48+
49+
public void copyMemory(long srcAddress, long targetAddress, long length) {
50+
/* null implementation */
51+
}
52+
53+
public void copyMemory(
54+
byte[] src,
55+
long srcIndex,
56+
byte[] target,
57+
long targetIndex,
58+
long length
59+
) {
60+
/* null implementation */
61+
}
62+
63+
public void copyMemory(
64+
Object srcBase,
65+
long srcOffset,
66+
Object destBase,
67+
long destOffset,
68+
long bytes
69+
) {
70+
/* null implementation */
71+
}
72+
73+
public boolean getBoolean(Object o, long offset) {
74+
/* null implementation */return false;
75+
}
76+
77+
public boolean getBoolean(long address) {
78+
/* null implementation */return false;
79+
}
80+
81+
public byte getByte(Object o, long offset) {
82+
/* null implementation */return 0;
83+
}
84+
85+
public byte getByte(long address) {
86+
/* null implementation */return 0;
87+
}
88+
89+
public float getFloat(Object o, long offset) {
90+
/* null implementation */return 0;
91+
}
92+
93+
public double getDouble(Object o, long offset) {
94+
/* null implementation */return 0;
95+
}
96+
97+
public short getShort(Object o, long offset) {
98+
/* null implementation */return 0;
99+
}
100+
101+
public int getInt(Object o, long offset) {
102+
/* null implementation */return 0;
103+
}
104+
105+
public int getInt(long address) {
106+
/* null implementation */return 0;
107+
}
108+
109+
public long getLong(Object o, long offset) {
110+
/* null implementation */return 0;
111+
}
112+
113+
public long getLong(long address) {
114+
/* null implementation */return 0;
115+
}
116+
117+
public Object getObject(Object o, long offset) {
118+
/* null implementation */return null;
119+
}
120+
121+
public long objectFieldOffset(java.lang.reflect.Field f) {
122+
/* null implementation */return 0;
123+
}
124+
125+
public void putBoolean(Object o, long offset, boolean x) {
126+
/* null implementation */
127+
}
128+
129+
public void putBoolean(long address, boolean x) {
130+
/* null implementation */
131+
}
132+
133+
public void putByte(Object o, long offset, byte x) {
134+
/* null implementation */
135+
}
136+
137+
public void putByte(long address, byte x) {
138+
/* null implementation */
139+
}
140+
141+
public void putFloat(Object o, long offset, float x) {
142+
/* null implementation */
143+
}
144+
145+
public void putDouble(Object o, long offset, double x) {
146+
/* null implementation */
147+
}
148+
149+
public void putShort(Object o, long offset, short x) {
150+
/* null implementation */
151+
}
152+
153+
public void putInt(Object o, long offset, int x) {
154+
/* null implementation */
155+
}
156+
157+
public void putInt(long address, int x) {
158+
/* null implementation */
159+
}
160+
161+
public void putLong(Object o, long offset, long x) {
162+
/* null implementation */
163+
}
164+
165+
public void putLong(long address, long x) {
166+
/* null implementation */
167+
}
168+
169+
public void putObject(Object o, long offset, Object x) {
170+
/* null implementation */
171+
}
38172

39-
public int arrayIndexScale(Class arrayClass) { /* null implementation */ return 0; }
173+
public Object staticFieldBase(java.lang.reflect.Field f) {
174+
/* null implementation */return null;
175+
}
40176

41-
public int arrayBaseOffset(Class arrayClass) { /* null implementation */ return 0; }
177+
public long staticFieldOffset(java.lang.reflect.Field f) {
178+
/* null implementation */return 0;
179+
}
42180

43-
public void copyMemory(long srcAddress,
44-
long targetAddress,
45-
long length)
46-
{ /* null implementation */ }
47-
48-
public void copyMemory(byte[] src,
49-
long srcIndex,
50-
byte[] target,
51-
long targetIndex,
52-
long length)
53-
{ /* null implementation */ }
54-
55-
public void copyMemory(Object srcBase,
56-
long srcOffset,
57-
Object destBase,
58-
long destOffset,
59-
long bytes)
60-
{ /* null implementation */ }
61-
62-
public boolean getBoolean(Object o, long offset) { /* null implementation */ return false; }
63-
64-
public boolean getBoolean(long address) { /* null implementation */ return false; }
65-
66-
public byte getByte(Object o, long offset) { /* null implementation */ return 0; }
67-
68-
public byte getByte(long address) { /* null implementation */ return 0; }
69-
70-
public float getFloat(Object o, long offset) { /* null implementation */ return 0; }
71-
72-
public double getDouble(Object o, long offset) { /* null implementation */ return 0; }
73-
74-
public short getShort(Object o, long offset) { /* null implementation */ return 0; }
75-
76-
public int getInt(Object o, long offset) { /* null implementation */ return 0; }
77-
78-
public int getInt(long address) { /* null implementation */ return 0; }
79-
80-
public long getLong(Object o, long offset) { /* null implementation */ return 0; }
81-
82-
public long getLong(long address) { /* null implementation */ return 0; }
83-
84-
public Object getObject(Object o, long offset) { /* null implementation */ return null; }
85-
86-
public long objectFieldOffset(java.lang.reflect.Field f) { /* null implementation */ return 0; }
87-
88-
public void putBoolean(Object o, long offset, boolean x) { /* null implementation */ }
89-
90-
public void putBoolean(long address, boolean x) { /* null implementation */ }
91-
92-
public void putByte(Object o, long offset, byte x) { /* null implementation */ }
93-
94-
public void putByte(long address, byte x) { /* null implementation */ }
95-
96-
public void putFloat(Object o, long offset, float x) { /* null implementation */ }
97-
98-
public void putDouble(Object o, long offset, double x) { /* null implementation */ }
99-
100-
public void putShort(Object o, long offset, short x) { /* null implementation */ }
101-
102-
public void putInt(Object o, long offset, int x) { /* null implementation */ }
103-
104-
public void putInt(long address, int x) { /* null implementation */ }
105-
106-
public void putLong(Object o, long offset, long x) { /* null implementation */ }
107-
108-
public void putLong(long address, long x) { /* null implementation */ }
109-
110-
public void putObject(Object o, long offset, Object x) { /* null implementation */ }
111-
112-
public Object staticFieldBase(java.lang.reflect.Field f) { /* null implementation */ return null; }
113-
114-
public long staticFieldOffset(java.lang.reflect.Field f) { /* null implementation */ return 0; }
115-
116-
public void freeMemory(long address) { /* null implementation */ }
117-
}
181+
public void freeMemory(long address) {
182+
/* null implementation */
183+
}
184+
}
Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,37 @@
11
package com.batch.android;
22

3-
import android.content.Context;
3+
import static org.junit.Assert.assertNotNull;
4+
import static org.junit.Assert.assertTrue;
45

6+
import android.content.Context;
57
import androidx.test.core.app.ApplicationProvider;
68
import androidx.test.ext.junit.runners.AndroidJUnit4;
79
import androidx.test.filters.SmallTest;
8-
910
import com.batch.android.di.providers.AdvertisingIDProvider;
10-
1111
import org.junit.Before;
1212
import org.junit.Test;
1313
import org.junit.runner.RunWith;
1414

15-
import static org.junit.Assert.assertNotNull;
16-
import static org.junit.Assert.assertTrue;
17-
1815
/**
1916
* Test AdvertisingID object
2017
*
2118
*/
2219
@RunWith(AndroidJUnit4.class)
2320
@SmallTest
24-
public class AdvertisingIDTest
25-
{
26-
/**
27-
* Test advertising ID value
28-
*
29-
* @throws Exception
30-
*/
31-
@Test
32-
public void testAdvertisingID() throws Exception
33-
{
34-
AdvertisingID device = AdvertisingIDProvider.get();
35-
36-
Thread.sleep(2000);
37-
38-
assertTrue(device.isReady());
39-
assertNotNull(device.get());
40-
}
21+
public class AdvertisingIDTest {
22+
23+
/**
24+
* Test advertising ID value
25+
*
26+
* @throws Exception
27+
*/
28+
@Test
29+
public void testAdvertisingID() throws Exception {
30+
AdvertisingID device = AdvertisingIDProvider.get();
31+
32+
Thread.sleep(2000);
33+
34+
assertTrue(device.isReady());
35+
assertNotNull(device.get());
36+
}
4137
}
Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
package com.batch.android;
22

33
import android.app.Application;
4-
54
import com.google.firebase.FirebaseApp;
65

7-
public class TestApplication extends Application
8-
{
9-
@Override
10-
public void onCreate()
11-
{
12-
super.onCreate();
13-
FirebaseApp.initializeApp(this);
14-
Batch.setConfig(new com.batch.android.Config("FAKE_API_KEY"));
15-
}
6+
public class TestApplication extends Application {
7+
8+
@Override
9+
public void onCreate() {
10+
super.onCreate();
11+
FirebaseApp.initializeApp(this);
12+
Batch.setConfig(new com.batch.android.Config("FAKE_API_KEY"));
13+
}
1614
}

0 commit comments

Comments
 (0)