Skip to content

Commit 7046026

Browse files
author
Drozdov Artyom
committed
add: missing license headers
1 parent 3f3ea4f commit 7046026

File tree

3 files changed

+69
-24
lines changed

3 files changed

+69
-24
lines changed

AndroidAnnotations/androidannotations-api/src/main/java/org/androidannotations/annotations/SupposeUiThread.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/**
2+
* Copyright (C) 2010-2014 eBusiness Information, Excilys Group
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
5+
* use this file except in compliance with the License. You may obtain a copy of
6+
* the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed To in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13+
* License for the specific language governing permissions and limitations under
14+
* the License.
15+
*/
116
package org.androidannotations.annotations;
217

318
import org.androidannotations.api.BackgroundExecutor;

AndroidAnnotations/functional-test-1-5-tests/src/test/java/org/androidannotations/test15/supposethread/SupposeThreadTest.java

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/**
2+
* Copyright (C) 2010-2014 eBusiness Information, Excilys Group
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
5+
* use this file except in compliance with the License. You may obtain a copy of
6+
* the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed To in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13+
* License for the specific language governing permissions and limitations under
14+
* the License.
15+
*/
116
package org.androidannotations.test15.supposethread;
217

318
import java.util.concurrent.CountDownLatch;
@@ -73,7 +88,7 @@ public void testSupposeUiAndUi() throws Exception {
7388

7489
final AtomicBoolean run = new AtomicBoolean(false);
7590

76-
scheduler.pause();
91+
scheduler.pause();
7792
bean.uiSupposedAndUi(new Runnable() {
7893
@Override
7994
public void run() {
@@ -85,8 +100,8 @@ public void run() {
85100
throw new IllegalStateException("Runnable wasn't post through handler, but was invoked");
86101
}
87102

88-
scheduler.unPause();
89-
scheduler.advanceToLastPostedRunnable();
103+
scheduler.unPause();
104+
scheduler.advanceToLastPostedRunnable();
90105

91106
if (!run.get()) {
92107
throw new IllegalStateException("Runnable wasn't invoked");
Lines changed: 36 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,50 @@
1+
/**
2+
* Copyright (C) 2010-2014 eBusiness Information, Excilys Group
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
5+
* use this file except in compliance with the License. You may obtain a copy of
6+
* the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed To in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13+
* License for the specific language governing permissions and limitations under
14+
* the License.
15+
*/
116
package org.androidannotations.test15.ebean;
217

318
import org.androidannotations.annotations.*;
419

520
@EBean
621
public class ThreadControlledBean {
722

8-
public static final String SERIAL1 = "serial1";
9-
public static final String SERIAL2 = "serial2";
23+
public static final String SERIAL1 = "serial1";
24+
public static final String SERIAL2 = "serial2";
1025

11-
@SupposeUiThread
12-
public void uiSupposed() {
13-
}
26+
@SupposeUiThread
27+
public void uiSupposed() {
28+
}
1429

15-
@SupposeBackground
16-
public void backgroundSupposed() {
17-
}
30+
@SupposeBackground
31+
public void backgroundSupposed() {
32+
}
1833

19-
@SupposeBackground(serial = {SERIAL1, SERIAL2})
20-
public void serialBackgroundSupposed() {
21-
}
34+
@SupposeBackground(serial = {SERIAL1, SERIAL2})
35+
public void serialBackgroundSupposed() {
36+
}
2237

23-
@SupposeUiThread
24-
@UiThread
25-
public void uiSupposedAndUi(Runnable delegate) {
26-
delegate.run();
27-
}
38+
@SupposeUiThread
39+
@UiThread
40+
public void uiSupposedAndUi(Runnable delegate) {
41+
delegate.run();
42+
}
2843

29-
@SupposeBackground(serial = SERIAL1)
30-
@Background(serial = SERIAL2)
31-
public void backgroundSupposeAndBackground(Runnable delegate) {
32-
delegate.run();
33-
}
44+
@SupposeBackground(serial = SERIAL1)
45+
@Background(serial = SERIAL2)
46+
public void backgroundSupposeAndBackground(Runnable delegate) {
47+
delegate.run();
48+
}
3449

3550
}

0 commit comments

Comments
 (0)