Skip to content

Commit 79bef4a

Browse files
authored
Merge pull request #7 from umjammer/0.2.13
0.2.13
2 parents de4409d + 7b67071 commit 79bef4a

File tree

449 files changed

+4944
-5565
lines changed

Some content is hidden

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

449 files changed

+4944
-5565
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ name: "CodeQL"
77

88
on:
99
push:
10-
branches: [vavi]
10+
branches: [main]
1111
pull_request:
1212
# The branches below must be a subset of the branches above
13-
branches: [vavi]
13+
branches: [main]
1414
# schedule:
1515
# - cron: '0 0 * * 5'
1616

.github/workflows/maven.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ name: Java CI
55

66
on:
77
push:
8-
branches: [ vavi ]
8+
branches: [ main ]
99
pull_request:
10-
branches: [ vavi ]
10+
branches: [ main ]
1111

1212
jobs:
1313
build:

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ all formats are mounted by fuse also!
3131
| ibm (dmg:jfat(fat16)) || | | | | | | | | partition |
3232
| pc98 (jfat(fat16)) || | | | | | | | | partition |
3333
| raw (exfat) || | | | | | | | | virtual partition |
34-
| vdisk (nhd:pc98:fat16) || | | | | | | | | [virtual disk](vavi-nio-file-emu), partition |
35-
| fuse (vdisk(nhd):pc98:fat16) || | | | | | | | | [fuse](vavi-net-fuse), virtualDisk, partition |
34+
| vdisk (nhd:pc98:fat16) || | | | | | | | | [virtual disk](https://github.com/umjammer/vavi-nio-file-emu), partition |
35+
| fuse (vdisk(nhd):pc98:fat16) || | | | | | | | | [fuse](https://github.com/umjammer/vavi-net-fuse), virtualDisk, partition |
3636
| vdisk (d88:pc98:n88) | 🚧 | | | | | | | | | not solid image is not supported by DeviceAPI |
37-
| vdisk (fdi:pc98:fat12) || | | | | | | | | [virtual disk](vavi-nio-file-emu), partition |
37+
| vdisk (fdi:pc98:fat12) || | | | | | | | | [virtual disk](https://github.com/umjammer/vavi-nio-file-emu), partition |
3838

3939
## Install
4040

core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>vavi</groupId>
66
<artifactId>vavi-nio-file-jnode</artifactId>
7-
<version>0.2.12</version>
7+
<version>0.2.13</version>
88
</parent>
99

1010
<artifactId>jnode-core</artifactId>

core/src/main/java/org/jnode/driver/ApiNotFoundException.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,30 +27,28 @@
2727
*/
2828
public class ApiNotFoundException extends DeviceException {
2929

30-
/**
31-
*
32-
*/
30+
/** */
3331
public ApiNotFoundException() {
3432
super();
3533
}
3634

3735
/**
38-
* @param message
39-
* @param cause
36+
* @param message the message
37+
* @param cause the cause
4038
*/
4139
public ApiNotFoundException(String message, Throwable cause) {
4240
super(message, cause);
4341
}
4442

4543
/**
46-
* @param cause
44+
* @param cause the cause
4745
*/
4846
public ApiNotFoundException(Throwable cause) {
4947
super(cause);
5048
}
5149

5250
/**
53-
* @param s
51+
* @param s the message
5452
*/
5553
public ApiNotFoundException(String s) {
5654
super(s);

core/src/main/java/org/jnode/driver/Device.java

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,12 @@ public class Device {
4444
/**
4545
* The API's implemented by this device
4646
*/
47-
private final HashMap<Class<? extends DeviceAPI>, DeviceAPI> apis =
48-
new HashMap<>();
47+
private final HashMap<Class<? extends DeviceAPI>, DeviceAPI> apis = new HashMap<>();
4948

5049
/**
5150
* Create a new instance
5251
*
53-
* @param bus
54-
* @param id
52+
* @param id the new id
5553
*/
5654
public Device(String id) {
5755
this.id = id;
@@ -66,9 +64,9 @@ public final String getId() {
6664
}
6765

6866
/**
69-
* Change the id of this device, only called by devicemanager
67+
* Change the id of this device, only called by device-manager
7068
*
71-
* @param newId
69+
* @param newId the new id
7270
*/
7371
final void setId(String newId) {
7472
this.id = newId;
@@ -86,8 +84,8 @@ public final boolean isStarted() {
8684
/**
8785
* Add an API implementation to the list of API's implemented by this device.
8886
*
89-
* @param apiInterface
90-
* @param apiImplementation
87+
* @param apiInterface the api interface
88+
* @param apiImplementation the api implementation
9189
*/
9290
@SuppressWarnings({"unchecked", "rawtypes"})
9391
public final <T extends DeviceAPI> void registerAPI(Class<T> apiInterface, T apiImplementation) {
@@ -113,7 +111,7 @@ public final <T extends DeviceAPI> void registerAPI(Class<T> apiInterface, T api
113111
/**
114112
* Remove an API implementation from the list of API's implemented by this device.
115113
*
116-
* @param apiInterface
114+
* @param apiInterface the api interface
117115
*/
118116
public final void unregisterAPI(Class<? extends DeviceAPI> apiInterface) {
119117
apis.remove(apiInterface);
@@ -122,11 +120,11 @@ public final void unregisterAPI(Class<? extends DeviceAPI> apiInterface) {
122120
/**
123121
* Does this device implement the given API?
124122
*
125-
* @param apiInterface
123+
* @param apiInterface the api interface
126124
* @return boolean
127125
*/
128126
public final boolean implementsAPI(Class<? extends DeviceAPI> apiInterface) {
129-
//lookup is classname based to handle multi isolate uscases
127+
// lookup is class name based to handle multi isolate use cases
130128
for (Class<?> clazz : apis.keySet()) {
131129
if (clazz.getName().equals(apiInterface.getName())) {
132130
return true;
@@ -147,12 +145,12 @@ public final Set<Class<? extends DeviceAPI>> implementedAPIs() {
147145
/**
148146
* Gets the implementation of a given API.
149147
*
150-
* @param apiInterface
148+
* @param apiInterface the api interface
151149
* @return The api implementation (guaranteed not null)
152150
* @throws ApiNotFoundException The given api has not been found
153151
*/
154152
public final <T extends DeviceAPI> T getAPI(Class<T> apiInterface) throws ApiNotFoundException {
155-
//lookup is classname based to handle multi isolate uscases
153+
// lookup is class name based to handle multi isolate use cases
156154
Class<?> apiInterface2 = null;
157155
for (Class<?> clazz : apis.keySet()) {
158156
if (clazz.getName().equals(apiInterface.getName())) {
@@ -169,7 +167,6 @@ public final <T extends DeviceAPI> T getAPI(Class<T> apiInterface) throws ApiNot
169167

170168
/**
171169
* @return The short description
172-
* @see org.jnode.system.resource.ResourceOwner#getShortDescription()
173170
*/
174171
public String getShortDescription() {
175172
return getId();

core/src/main/java/org/jnode/driver/DeviceException.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,36 +21,34 @@
2121
package org.jnode.driver;
2222

2323
/**
24-
* Generic exception of devices in the device framework.
24+
* Generic exception to devices in the device framework.
2525
*
2626
* @author Ewout Prangsma ([email protected])
2727
*/
2828
public class DeviceException extends RuntimeException {
2929

30-
/**
31-
*
32-
*/
30+
/** */
3331
public DeviceException() {
3432
super();
3533
}
3634

3735
/**
38-
* @param message
39-
* @param cause
36+
* @param message the message
37+
* @param cause the cause
4038
*/
4139
public DeviceException(String message, Throwable cause) {
4240
super(message, cause);
4341
}
4442

4543
/**
46-
* @param cause
44+
* @param cause the cause
4745
*/
4846
public DeviceException(Throwable cause) {
4947
super(cause);
5048
}
5149

5250
/**
53-
* @param s
51+
* @param s the s
5452
*/
5553
public DeviceException(String s) {
5654
super(s);

0 commit comments

Comments
 (0)