Skip to content

Commit 8bb12b4

Browse files
committed
[FAB-4879] Convert CRLF to LF in source files
Change-Id: I056cb7171812cb50283d019535c22dd695128995 Signed-off-by: Arnaud J Le Hors <[email protected]>
1 parent fbafeea commit 8bb12b4

File tree

19 files changed

+927
-927
lines changed

19 files changed

+927
-927
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
1-
/*
2-
Copyright DTCC 2016 All Rights Reserved.
3-
4-
Licensed under the Apache License, Version 2.0 (the "License");
5-
you may not use this file except in compliance with the License.
6-
You may obtain a copy of 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,
12-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
See the License for the specific language governing permissions and
14-
limitations under the License.
15-
*/
16-
17-
package org.hyperledger.fabric.shim.fsm;
18-
19-
public class CBDesc {
20-
21-
public final CallbackType type;
22-
public final String trigger;
23-
public final Callback callback;
24-
25-
/**
26-
*
27-
* @param type
28-
* @param trigger
29-
* @param callback
30-
*/
31-
public CBDesc(CallbackType type, String trigger, Callback callback) {
32-
this.type = type;
33-
this.trigger = trigger;
34-
this.callback = callback;
35-
}
36-
37-
}
1+
/*
2+
Copyright DTCC 2016 All Rights Reserved.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of 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,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
package org.hyperledger.fabric.shim.fsm;
18+
19+
public class CBDesc {
20+
21+
public final CallbackType type;
22+
public final String trigger;
23+
public final Callback callback;
24+
25+
/**
26+
*
27+
* @param type
28+
* @param trigger
29+
* @param callback
30+
*/
31+
public CBDesc(CallbackType type, String trigger, Callback callback) {
32+
this.type = type;
33+
this.trigger = trigger;
34+
this.callback = callback;
35+
}
36+
37+
}
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
/*
2-
Copyright DTCC 2016 All Rights Reserved.
3-
4-
Licensed under the Apache License, Version 2.0 (the "License");
5-
you may not use this file except in compliance with the License.
6-
You may obtain a copy of 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,
12-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
See the License for the specific language governing permissions and
14-
limitations under the License.
15-
*/
16-
17-
package org.hyperledger.fabric.shim.fsm;
18-
19-
public interface Callback {
20-
21-
public void run(Event event);
22-
23-
}
1+
/*
2+
Copyright DTCC 2016 All Rights Reserved.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of 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,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
package org.hyperledger.fabric.shim.fsm;
18+
19+
public interface Callback {
20+
21+
public void run(Event event);
22+
23+
}
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,58 @@
1-
/*
2-
Copyright DTCC 2016 All Rights Reserved.
3-
4-
Licensed under the Apache License, Version 2.0 (the "License");
5-
you may not use this file except in compliance with the License.
6-
You may obtain a copy of 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,
12-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
See the License for the specific language governing permissions and
14-
limitations under the License.
15-
*/
16-
17-
package org.hyperledger.fabric.shim.fsm;
18-
19-
public class CallbackKey {
20-
21-
String target;
22-
CallbackType type;
23-
24-
public CallbackKey(String target, CallbackType type) {
25-
this.target = target;
26-
this.type = type;
27-
}
28-
29-
@Override
30-
public int hashCode() {
31-
final int prime = 31;
32-
int result = 1;
33-
result = prime * result + ((target == null) ? 0 : target.hashCode());
34-
result = prime * result + ((type == null) ? 0 : type.hashCode());
35-
return result;
36-
}
37-
38-
@Override
39-
public boolean equals(Object obj) {
40-
if (this == obj)
41-
return true;
42-
if (obj == null)
43-
return false;
44-
if (getClass() != obj.getClass())
45-
return false;
46-
CallbackKey other = (CallbackKey) obj;
47-
if (target == null) {
48-
if (other.target != null)
49-
return false;
50-
} else if (!target.equals(other.target))
51-
return false;
52-
if (type != other.type)
53-
return false;
54-
return true;
55-
}
56-
57-
58-
}
1+
/*
2+
Copyright DTCC 2016 All Rights Reserved.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of 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,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
package org.hyperledger.fabric.shim.fsm;
18+
19+
public class CallbackKey {
20+
21+
String target;
22+
CallbackType type;
23+
24+
public CallbackKey(String target, CallbackType type) {
25+
this.target = target;
26+
this.type = type;
27+
}
28+
29+
@Override
30+
public int hashCode() {
31+
final int prime = 31;
32+
int result = 1;
33+
result = prime * result + ((target == null) ? 0 : target.hashCode());
34+
result = prime * result + ((type == null) ? 0 : type.hashCode());
35+
return result;
36+
}
37+
38+
@Override
39+
public boolean equals(Object obj) {
40+
if (this == obj)
41+
return true;
42+
if (obj == null)
43+
return false;
44+
if (getClass() != obj.getClass())
45+
return false;
46+
CallbackKey other = (CallbackKey) obj;
47+
if (target == null) {
48+
if (other.target != null)
49+
return false;
50+
} else if (!target.equals(other.target))
51+
return false;
52+
if (type != other.type)
53+
return false;
54+
return true;
55+
}
56+
57+
58+
}
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
/*
2-
Copyright DTCC 2016 All Rights Reserved.
3-
4-
Licensed under the Apache License, Version 2.0 (the "License");
5-
you may not use this file except in compliance with the License.
6-
You may obtain a copy of 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,
12-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
See the License for the specific language governing permissions and
14-
limitations under the License.
15-
*/
16-
17-
package org.hyperledger.fabric.shim.fsm;
18-
19-
public enum CallbackType {
20-
21-
NONE,
22-
BEFORE_EVENT,
23-
LEAVE_STATE,
24-
ENTER_STATE,
25-
AFTER_EVENT;
26-
27-
}
1+
/*
2+
Copyright DTCC 2016 All Rights Reserved.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of 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,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
package org.hyperledger.fabric.shim.fsm;
18+
19+
public enum CallbackType {
20+
21+
NONE,
22+
BEFORE_EVENT,
23+
LEAVE_STATE,
24+
ENTER_STATE,
25+
AFTER_EVENT;
26+
27+
}

0 commit comments

Comments
 (0)