Skip to content

Commit

Permalink
Merge branch 'develop' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
purejava committed Jan 31, 2024
2 parents 4d573b2 + 4be2d00 commit 6ef2071
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 24 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Expand Up @@ -28,10 +28,10 @@ jobs:
restore-keys: |
${{ runner.os }}-maven-
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: java
- name: Build
run: mvn -B compile
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
2 changes: 1 addition & 1 deletion LICENSE
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020-2023 Ralph Plawetzki
Copyright (c) 2020-2024 Ralph Plawetzki

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
8 changes: 4 additions & 4 deletions README.md
@@ -1,8 +1,8 @@
# kdewallet
![KWallet](KWallet.png)

[![Java CI with Maven](https://github.com/purejava/kdewallet/workflows/Java%20CI%20with%20Maven/badge.svg)](https://github.com/purejava/kdewallet/actions?query=workflow%3A%22Java+CI+with+Maven%22)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/b1379afd2db3447abfbdca82fbdc2b7a)](https://www.codacy.com/gh/purejava/kdewallet/dashboard?utm_source=github.com&utm_medium=referral&utm_content=purejava/kdewallet&utm_campaign=Badge_Grade)
[![Publish to Maven Central](https://github.com/purejava/kdewallet/workflows/Publish%20to%20Maven%20Central/badge.svg)](https://github.com/purejava/kdewallet/actions?query=workflow%3A%22Publish+to+Maven+Central%22)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/b1379afd2db3447abfbdca82fbdc2b7a)](https://app.codacy.com/gh/purejava/kdewallet/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
[![Maven Central](https://img.shields.io/maven-central/v/org.purejava/kdewallet.svg?label=Maven%20Central)](https://central.sonatype.com/search?q=kdewallet&smo=true&namespace=org.purejava)
[![License](https://img.shields.io/github/license/purejava/kdewallet.svg)](https://github.com/purejava/kdewallet/blob/master/LICENSE)

Expand All @@ -19,7 +19,7 @@ Add `kdewallet` as a dependency to your project.
<dependency>
<groupId>org.purejava</groupId>
<artifactId>kdewallet</artifactId>
<version>1.4.0</version>
<version>1.5.0</version>
</dependency>
```

Expand Down Expand Up @@ -74,4 +74,4 @@ Thanks to David M., who wrote an improved version of [Java DBus](https://github.
Thanks to Sebastian Wiesendahl, who implemented the original core messaging interface to DBus in his [secret-service](https://github.com/swiesend/secret-service) library.

## Copyright
Copyright (C) 2020-2023 Ralph Plawetzki
Copyright (C) 2020-2024 Ralph Plawetzki
20 changes: 10 additions & 10 deletions pom.xml
Expand Up @@ -6,7 +6,7 @@

<groupId>org.purejava</groupId>
<artifactId>kdewallet</artifactId>
<version>1.4.0</version>
<version>1.5.0</version>
<packaging>jar</packaging>

<name>kdewallet</name>
Expand Down Expand Up @@ -47,13 +47,13 @@
<dependency>
<groupId>com.github.hypfvieh</groupId>
<artifactId>dbus-java-core</artifactId>
<version>4.3.1</version>
<version>5.0.0</version>
</dependency>

<dependency>
<groupId>com.github.hypfvieh</groupId>
<artifactId>dbus-java-transport-native-unixsocket</artifactId>
<version>4.3.1</version>
<version>5.0.0</version>
</dependency>

<!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api -->
Expand Down Expand Up @@ -82,14 +82,14 @@
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>2.0.9</version>
<version>2.0.11</version>
</dependency>

<!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-simple -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>2.0.9</version>
<version>2.0.11</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand All @@ -112,11 +112,11 @@
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<version>3.12.1</version>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.2</version>
<version>3.2.5</version>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
Expand All @@ -136,7 +136,7 @@
<!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>4.0.0-M12</version>
<version>4.0.0-M13</version>
</plugin>
<plugin>
<artifactId>maven-project-info-reports-plugin</artifactId>
Expand All @@ -149,7 +149,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<version>3.12.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -183,7 +183,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.2</version>
<version>3.2.5</version>
<dependencies>
<!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-engine -->
<dependency>
Expand Down
Expand Up @@ -2,7 +2,6 @@

import org.freedesktop.dbus.connections.impl.DBusConnection;
import org.freedesktop.dbus.exceptions.DBusException;
import org.freedesktop.dbus.messages.MethodCall;
import org.freedesktop.dbus.types.Variant;
import org.purejava.kwallet.Static;
import org.slf4j.Logger;
Expand All @@ -29,11 +28,8 @@ public MessageHandler(DBusConnection connection) {

public Object[] send(String service, String path, String iface, String method, String signature, Object... args) {
try {
var message = new MethodCall(
service,
path,
iface,
method, (byte) 0, signature, args);
var msgFactory = connection.getMessageFactory();
var message = msgFactory.createMethodCall(service, path, iface, method, (byte) 0, signature, args);

if (LOG.isTraceEnabled()) LOG.trace(String.valueOf(message));
connection.sendMessage(message);
Expand All @@ -47,7 +43,7 @@ public Object[] send(String service, String path, String iface, String method, S
LOG.debug(Arrays.deepToString(parameters));
}

if (response instanceof org.freedesktop.dbus.errors.Error) {
if (response instanceof org.freedesktop.dbus.messages.Error) {
var error = response.getName();
switch (error) {
case "org.freedesktop.DBus.Error.NoReply",
Expand Down

0 comments on commit 6ef2071

Please sign in to comment.