File tree Expand file tree Collapse file tree 4 files changed +8
-14
lines changed Expand file tree Collapse file tree 4 files changed +8
-14
lines changed Original file line number Diff line number Diff line change 1818
1919#nullable enable
2020
21- using System . Diagnostics . CodeAnalysis ;
22-
2321namespace OpenQA . Selenium
2422{
2523 /// <summary>
@@ -35,8 +33,8 @@ public class DefaultFileDetector : IFileDetector
3533 /// <param name="keySequence">The sequence to test for file existence.</param>
3634 /// <returns>This method always returns <see langword="false"/> in this implementation.</returns>
3735 public bool IsFile (
38- #if NET
39- [ NotNullWhen ( true ) ]
36+ #if NET8_0_OR_GREATER
37+ [ System . Diagnostics . CodeAnalysis . NotNullWhen ( true ) ]
4038#endif
4139 string ? keySequence )
4240 {
Original file line number Diff line number Diff line change 2121using System ;
2222using System . Collections . Generic ;
2323using System . Collections . ObjectModel ;
24- using System . Diagnostics . CodeAnalysis ;
2524using System . Globalization ;
2625using System . IO ;
2726using System . IO . Compression ;
@@ -249,8 +248,8 @@ public override IFileDetector FileDetector
249248 /// <summary>
250249 /// Gets a value indicating whether a DevTools session is active.
251250 /// </summary>
252- #if NET
253- [ MemberNotNullWhen ( true , nameof ( devToolsSession ) ) ]
251+ #if NET8_0_OR_GREATER
252+ [ System . Diagnostics . CodeAnalysis . MemberNotNullWhen ( true , nameof ( devToolsSession ) ) ]
254253#endif
255254 public bool HasActiveDevToolsSession
256255 {
Original file line number Diff line number Diff line change 1616// limitations under the License.
1717// </copyright>
1818
19- using System . Diagnostics . CodeAnalysis ;
20-
2119#nullable enable
2220
2321namespace OpenQA . Selenium
@@ -35,8 +33,8 @@ public interface IFileDetector
3533 /// <param name="keySequence">The sequence to test for file existence.</param>
3634 /// <returns><see langword="true"/> if the key sequence represents a file; otherwise, <see langword="false"/>.</returns>
3735 bool IsFile (
38- #if NET
39- [ NotNullWhen ( true ) ]
36+ #if NET8_0_OR_GREATER
37+ [ System . Diagnostics . CodeAnalysis . NotNullWhen ( true ) ]
4038#endif
4139 string ? keySequence ) ;
4240 }
Original file line number Diff line number Diff line change 1616// limitations under the License.
1717// </copyright>
1818
19- using System . Diagnostics . CodeAnalysis ;
2019using System . IO ;
2120
2221#nullable enable
@@ -36,8 +35,8 @@ public class LocalFileDetector : IFileDetector
3635 /// <param name="keySequence">The sequence to test for file existence.</param>
3736 /// <returns><see langword="true"/> if the key sequence represents a file; otherwise, <see langword="false"/>.</returns>
3837 public bool IsFile (
39- #if NET
40- [ NotNullWhen ( true ) ]
38+ #if NET8_0_OR_GREATER
39+ [ System . Diagnostics . CodeAnalysis . NotNullWhen ( true ) ]
4140#endif
4241 string ? keySequence )
4342 {
You can’t perform that action at this time.
0 commit comments